Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Server #976

Closed
wants to merge 507 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
507 commits
Select commit Hold shift + click to select a range
7d85ec9
Remove gitter badge
ncb000gt Oct 7, 2016
8c4c70c
travis: use `npm test` only. `npm install` attempts to download prebu…
ksmyth Oct 11, 2016
27b3b74
updated repository field ncb000gt --> kelektiv
goatandsheep Oct 26, 2016
2488473
Add support for Promises (#458)
recrsn Dec 5, 2016
9843a21
update changelog
defunctzombie Dec 5, 2016
4836633
v1.0.0
defunctzombie Dec 5, 2016
8242b78
Fix when using destructing import and promise (#462)
dnshi Dec 8, 2016
df4f796
update changelog
defunctzombie Dec 8, 2016
941df17
v1.0.1
defunctzombie Dec 8, 2016
8becdf3
Fix for compare method not rejecting promise on error (#469)
recrsn Dec 31, 2016
f966e45
update CHANGELOG
defunctzombie Dec 31, 2016
730d6ad
upgrade nan to 2.5.0
defunctzombie Dec 31, 2016
2374fba
upgrade node-pre-gyp dep to 0.6.32
defunctzombie Dec 31, 2016
9036615
v1.0.2
defunctzombie Dec 31, 2016
cb82c05
add node v7 to appveyor config
defunctzombie Feb 19, 2017
be906fc
Make compatible with Node 8
recrsn Jul 6, 2017
45f498e
Merge pull request #527 from Agathver/node8_fix
recrsn Jul 7, 2017
a04c269
Update README to include links to new wiki page
recrsn Mar 18, 2017
f5eb5d1
Merge pull request #499 from agathver/documentation
recrsn Aug 12, 2017
af5f8c4
use npm scripts instead of node-gyp directly.
ncb000gt Oct 7, 2016
054cf76
Version bump.
ncb000gt Aug 24, 2017
5fbc8ec
fix typo: compilant => compliant
Sep 7, 2017
7d53afa
Merge pull request #542 from bodya17/master
recrsn Sep 14, 2017
6746a04
Use strict equality comparison in tests
recrsn Sep 14, 2017
ebb7417
preserve stack traces on async error callbacks
tonylukasavage Aug 25, 2017
f3a34bd
Add additional testcases for testing bcrypt implementation
recrsn Sep 14, 2017
7914916
Merge pull request #545 from agathver/test-improvements
ncb000gt Sep 23, 2017
99e2a09
Merge pull request #539 from tonylukasavage/issue-538
ncb000gt Sep 23, 2017
9540ed0
Remove support for NodeJS < 4
recrsn Oct 1, 2017
148db49
Add bindings and node-addon-api to dependencies
NickNaso Oct 5, 2017
e122796
Added some boilerplate code to start migrating the module to a N-API
NickNaso Oct 5, 2017
c9ec383
Porting of get_rounds -> GetRouds complete
NickNaso Oct 5, 2017
fead6b3
Porting of compare_sync -> CompareSync complete
NickNaso Oct 6, 2017
11378bc
Porting of encrypt_sync -> EncryptSync complete
NickNaso Oct 6, 2017
e0d0b12
Porting of compare -> Compare complete
NickNaso Oct 7, 2017
92c538e
Porting of gen_salt -> GenSalt complete
NickNaso Oct 8, 2017
efae084
Portfing of method generate_salt_sync -> GenerateSaltSync complete
NickNaso Oct 8, 2017
b5c786e
Porting of method encrypt -> Encrypt complete
NickNaso Oct 9, 2017
ed9ddef
Fix minor issue and test. All test successfully pass.
NickNaso Oct 9, 2017
dbd032f
Removed namespace
NickNaso Oct 9, 2017
9c85bb0
Removed some bad code
NickNaso Oct 9, 2017
b03a6e4
Fixed typo issue on GenerateSaltSync method
NickNaso Oct 12, 2017
93ebfb3
Update binding.gyp due to compilation problem on linux and windows
NickNaso Oct 13, 2017
f4e4555
Removed bindings
NickNaso Oct 15, 2017
bf07c28
Added namespace Name on constructorAsyncWorker
NickNaso Oct 15, 2017
17d7d6d
Fix for compilation problem on windows platform
NickNaso Oct 17, 2017
b19ba70
Removed comments on GenerateSalt method
NickNaso Oct 17, 2017
572f724
Added missing dependencies on binding.gyp
NickNaso Oct 19, 2017
62c7f29
Update node-addon-api to the last version from the GitHub repo
NickNaso Oct 19, 2017
dca5076
Set engine support to 4 or greater
NickNaso Oct 19, 2017
48efe78
Update travis config
NickNaso Oct 20, 2017
7559cba
Update binding.gyp to fox problem on macOS with node version 4 and 5
NickNaso Oct 20, 2017
90d438b
Merge pull request #550 from agathver/drop-old-node
recrsn Oct 21, 2017
7b928fb
Add NodeJS 9 to CI matrix
recrsn Nov 1, 2017
72c1a3b
Update to new version (v1.1.0) of node-addon-api
NickNaso Nov 21, 2017
5467983
Add NodeJS 9 to CI
NickNaso Nov 21, 2017
039b7ec
remove node 9 from appveyor
NickNaso Nov 21, 2017
f670313
Added on the contributors
NickNaso Nov 22, 2017
5cda155
Removed return info.Env().Undefined(); It's unnecessary if exception…
NickNaso Nov 22, 2017
30c8dc7
Updated dependencies on package.json as requested
NickNaso Nov 28, 2017
d1cb91d
Bump deps
recrsn Dec 8, 2017
096a34f
Merge pull request #554 from agathver/node-9
recrsn Dec 8, 2017
3edea5f
Merge pull request #551 from NickNaso/node-addon-api
recrsn Dec 12, 2017
f2bec20
README: comparisons resist timing attacks
david-a-wheeler Dec 21, 2017
43734e3
Merge pull request #564 from david-a-wheeler/readme-timing
recrsn Dec 29, 2017
4611940
Merge branch 'master' into napi
recrsn Jan 21, 2018
b1de58e
v1.1.0-napi
recrsn Jan 21, 2018
89e34ac
Updated 'node-addon-api' to new version 1.2.0
NickNaso Feb 19, 2018
1da0f44
fix: package.json to reduce vulnerabilities
snyk-bot Mar 11, 2018
88590ea
Merge pull request #584 from kelektiv/snyk-fix-bc668290
recrsn Mar 15, 2018
6a79eaf
fix: propagate async context
ofrobots Mar 8, 2018
04e8285
Merge pull request #580 from NickNaso/node-addon-api
recrsn Mar 15, 2018
e8cde51
Merge pull request #583 from ofrobots/async-resource
recrsn Mar 15, 2018
4c44f20
Add support for $2b$ hashes
recrsn Oct 1, 2017
0ea1b36
Merge pull request #549 from agathver/2b-hashes
recrsn Mar 16, 2018
2d45be1
Allow to choose bcrypt minor version
recrsn Apr 4, 2018
aac593c
Merge pull request #587 from agathver/hash-version-support
recrsn Apr 6, 2018
9a9ab45
Make binaries libc aware
recrsn Apr 6, 2018
dab435e
install and use any-promise (#504)
gurpreetatwal Apr 6, 2018
f00d4b8
Merge pull request #589 from agathver/libc-aware
recrsn Apr 6, 2018
ab026b2
v2.0.0
recrsn Apr 7, 2018
a8ec17b
Upgrade node-pre-gyp to fix broken binary downloads
recrsn Apr 20, 2018
eaa8e28
Add compatibility note for upgrading
recrsn Apr 20, 2018
7a720bd
Merge pull request #597 from agathver/fix-npg
recrsn Apr 20, 2018
0a7e8ae
v2.0.1
recrsn Apr 20, 2018
3fa97d5
Add node.js v10 support (#603)
pauliusuza May 3, 2018
9f6f44f
Typo fix in examples (#598)
myselfjivan May 3, 2018
fd70560
Update dependencies to fix security issues
crutchcorn Jun 15, 2018
a78d381
Update deps to fix vulnerabilities
recrsn Jun 29, 2018
849b14d
Remove NodeJS v4 support
recrsn Jun 29, 2018
50bd6cb
v3.0.0
recrsn Jul 6, 2018
d8bc343
readme: improve readability of version table
freewil Jul 6, 2018
5d242c1
readme: fix bcrypt version for node v4
freewil Jul 6, 2018
5947011
Update node-pre-gyp to 0.11.0
reinert Aug 15, 2018
18efb66
Auto-release compiled modules from Travis CI
recrsn Jul 7, 2017
251ad91
Auto-release compiled modules from Appveyor
recrsn May 3, 2018
853142b
Merge pull request #642 from reinert/master
recrsn Aug 19, 2018
1f0163f
Merge pull request #628 from freewil/patch-2
recrsn Aug 19, 2018
5dfb4ee
Merge pull request #483 from agathver/travis-automation
recrsn Aug 19, 2018
ce7c404
updated async readme
RichardWright Jan 26, 2017
2e86dd7
updating readme with pr advice
RichardWright Mar 16, 2018
d32a1a6
Merge pull request #481 from RichardWright/asyncReadMe
ncb000gt Aug 22, 2018
894fccd
changing var to const for require in readme for consistency
evanx Aug 26, 2018
14db225
deps: update nan
MylesBorins Sep 5, 2018
116993a
Merge pull request #649 from MylesBorins/update-nan
recrsn Sep 14, 2018
4f7a0d3
Merge pull request #645 from evanx/patch-1
recrsn Sep 14, 2018
0da3dc3
v3.0.1
recrsn Sep 20, 2018
79dc6ef
Fix appveyor.yml to generate artifacts in proper order
recrsn Oct 11, 2018
b75698f
Update nan
recrsn Oct 11, 2018
6554b05
Merge pull request #662 from agathver/appveyor-fix
recrsn Oct 11, 2018
b13b02e
Merge pull request #663 from agathver/nan-update
recrsn Oct 12, 2018
596ac34
v3.0.2
recrsn Oct 18, 2018
dee09bf
Execute tests on Node.js 11
kibertoad Oct 24, 2018
c47a68c
Execute tests on Node.js 11 in Appveyor
kibertoad Oct 24, 2018
dd5c93d
Merge pull request #667 from kibertoad/general/node-11
recrsn Nov 3, 2018
bd7f625
Update dependencies
recrsn Nov 18, 2018
06da387
Merge pull request #676 from agathver/update-node-pre-gyp
recrsn Nov 24, 2018
2c38ecd
Update nan
recrsn Dec 19, 2018
9266499
Merge pull request #688 from agathver/update-nan
recrsn Dec 19, 2018
1316e26
v3.0.3
recrsn Dec 19, 2018
a315e3a
Fix gcc,nan & v8 deprecations
recrsn Dec 19, 2018
236c05c
Merge pull request #689 from agathver/remove-deprecations
recrsn Dec 24, 2018
0399747
Backport updates from the NAN version to N-API
NickNaso Jan 23, 2019
88172ad
Merge branch 'napi' into bcrypt-n-api
NickNaso Jan 24, 2019
4e970cf
Skip Node.js 7 because it's at EOL.
NickNaso Jan 24, 2019
ee10554
Update node-pre-gyp-github to v1.4.3
recrsn Jan 27, 2019
f259f37
Merge pull request #699 from agathver/master
recrsn Feb 5, 2019
4112a7f
Merge pull request #698 from NickNaso/bcrypt-n-api
recrsn Feb 5, 2019
73b4227
v3.0.4
recrsn Feb 6, 2019
34600e7
Merge remote-tracking branch 'upstream/master' into napi
recrsn Feb 6, 2019
e838e70
readme writing changes for readability
kyotee Oct 27, 2018
f725979
Update NodeJS support matrix
recrsn Feb 9, 2019
942717c
Upgrade deps
recrsn Mar 8, 2019
cbfb03f
v3.0.4-napi
recrsn Mar 8, 2019
d969110
Update nan to v2.13.1
recrsn Mar 19, 2019
c81f3b9
Merge pull request #712 from agathver/update-nan
recrsn Mar 19, 2019
8a4e0cc
Remove node-pre-gyp from bundled dependencies
recrsn Mar 19, 2019
5f5beb5
v3.0.5
recrsn Mar 19, 2019
94bc247
Update nan to v2.13.2
recrsn Apr 10, 2019
896ac89
Merge pull request #716 from agathver/update-nan
recrsn Apr 11, 2019
5b9f3a6
v3.0.6
recrsn Apr 11, 2019
4ed9900
Update nan & node-pre-gyp
recrsn Jul 23, 2019
c0e9e36
Update nan & node-pre-gyp (#743)
recrsn Jul 23, 2019
bbf0099
Add NodeJS 12 to CI
recrsn Jul 23, 2019
a0025da
Update dependencies
recrsn Oct 18, 2019
4d3a977
v3.0.7
recrsn Oct 18, 2019
f6bd1cd
Add NodeJS 13 to CI
recrsn Oct 31, 2019
4bee1a8
Updated the examples to use the word response instead of res to avoid…
anderslatif Nov 1, 2019
39057dd
Changed the word used in the documentation from response to result
anderslatif Nov 1, 2019
2eabaf2
Add NodeJS 13 to CI (#762)
recrsn Nov 3, 2019
bffa114
Merge pull request #763 from anderslatif/master
ncb000gt Nov 8, 2019
ae0b145
Update nan to 0.14.0
recrsn Dec 26, 2019
e817d25
GH-720 - Update readme regarding timing attacks.
ncb000gt May 21, 2019
f7034f2
GH-720 - change to strcmp.
ncb000gt May 24, 2019
081fb70
Fixed up some confusing language.
ncb000gt May 24, 2019
a8ffc8f
Update readme to indicate truncation at 72 bytes.
cullylarson Aug 11, 2019
5dd9f07
v3.0.8
recrsn Jan 10, 2020
a26903a
Merge branch 'napi'
recrsn Jan 10, 2020
79a5df2
Drop unsupported Node versions from CI test matrix
recrsn Jan 10, 2020
8cd47f6
Updated to node-addon-api 2.0.0. Handle the error on AsyncQoeker in a…
NickNaso Jan 28, 2020
2e7101b
Removed extra spacing.
NickNaso Feb 3, 2020
08ac3e9
Minor readme tweaks
knutkirkhorn Feb 16, 2020
ed6a186
Update node-addon-api to v2.0.0
recrsn Feb 17, 2020
4adc386
v4.0.0
recrsn Feb 17, 2020
738e4e2
Update CHANGELOG.md
DRoet Feb 19, 2020
bbb6b2d
Readme: fix node version for v4.0.0
yuks Feb 25, 2020
e01e78a
Add alpine-linux to CI
recrsn Feb 24, 2020
1511821
Define _GNU_SOURCE while compiling for MUSL
recrsn Feb 24, 2020
9758e68
Prepare for uploading releases from inside docker
recrsn Feb 24, 2020
87c214f
v4.0.1
recrsn Feb 27, 2020
61f6308
Use travis to deploy future releases
recrsn Mar 5, 2020
bc114fb
Update node-addon-api to v3.0.0
recrsn May 13, 2020
41d9ba2
add linux-arm64 to build matrix
jokester May 27, 2020
4c38d38
Merge pull request #804 from jokester/add-arm64-build
recrsn May 27, 2020
9548df5
Fix overflow bug. See issue #776
techhead May 31, 2020
d9e54b4
Merge pull request #806 from techhead/2b_overflow
recrsn Jun 1, 2020
ac14738
Update CHANGELOG.md
recrsn Jun 1, 2020
dd32df1
Add z/OS support
zsw007 Apr 30, 2019
96c41e2
Mark z/OS compatibility code as such
recrsn Jun 1, 2020
15febd1
Allow using an enterprise artifactory.
ilatypov Aug 31, 2018
cf4efd9
Merge pull request #647 from ilatypov/master
recrsn Jun 1, 2020
1a81858
Pass key_len to bcrypt(). Fix for issues #774, #776
techhead Jun 1, 2020
ca1e43b
Add test for embedded NULs
techhead Jun 1, 2020
f28e916
Reword comment
recrsn Jun 1, 2020
5916a46
Merge pull request #807 from techhead/known_length
recrsn Jun 1, 2020
40770d6
Add NodeJS 14 to appveyor CI
recrsn Jun 1, 2020
1bde62c
Update node-pre-gyp to 0.15.0
recrsn Jun 1, 2020
61139e6
v5.0.0
recrsn Jun 1, 2020
8866277
Deploy on any travis tag
recrsn Jun 1, 2020
f158e6e
Allow optional use of Node Buffers.
techhead Jun 8, 2020
f503e57
Create SECURITY.md
recrsn Jun 30, 2020
4125ebc
Update README.md
recrsn Jul 1, 2020
0f93284
README.md typo fix
dogon11 Aug 22, 2020
630c897
fixes: #828
alete89 Oct 23, 2020
984ef18
remove reference to $2y$ algo identifier
alete89 Nov 3, 2020
63c8403
Merge pull request #838 from alete89/docs/improve-hash-info
recrsn Dec 6, 2020
2821c03
Merge pull request #811 from techhead/use_buffers
recrsn Jan 1, 2021
09cb4fc
Merge pull request #825 from dogon11/patch-1
recrsn Jan 6, 2021
19c06c1
Update Node version compatibility info
recrsn Jan 13, 2021
1ba55f9
Add Node 15 to CI
recrsn Feb 3, 2021
7c5d8df
Merge pull request #851 from recrsn/node-15-ci
recrsn Feb 3, 2021
bafefc3
Update packages
recrsn Feb 3, 2021
42c8b0c
Merge pull request #852 from kelektiv/update-deps
recrsn Feb 3, 2021
feb477c
Update node-pre-gyp to 1.0.0
recrsn Feb 20, 2021
6eacfe1
Merge pull request #856 from kelektiv/update-deps
recrsn Feb 21, 2021
10eacf5
Prepare v5.0.1
recrsn Feb 22, 2021
2f124bd
Fix artifact upload path
recrsn Feb 25, 2021
e70ddd4
update node-pre-gyp to 1.0.2
Mar 30, 2021
d98e2ae
Merge pull request #865 from feuxfollets1013/update-node-pre-gyp
recrsn Apr 3, 2021
f621eb0
Update README for inclusion of musl
arbourd Jul 2, 2021
a9c4d69
Merge pull request #883 from arbourd/patch-1
recrsn Aug 28, 2021
5283ad1
Refactored example with async await
lpizzinidev Sep 23, 2021
2d97681
document ESM usage (#892)
mariusa Nov 5, 2021
184200e
Version bump, security updates to sub dep npmlog
adaniels-parabol Nov 19, 2021
28ccb37
Merge pull request #905 from adaniels-parabol/patch-1
recrsn Jan 14, 2022
4c49788
Merge pull request #899 from mariusa/patch-1
recrsn Jan 14, 2022
ed47b46
fix: update travis CI Docker image repository
cokia May 13, 2022
5ce7348
Merge pull request #930 from cokia/docker-repository-change
recrsn May 14, 2022
f7f3d15
chore(appveyor): not use latest npm
cokia May 14, 2022
721a27f
chore: update Appveyor readme badge
cokia May 14, 2022
35bb3a8
Update node versions in appveyor test matrix
p-kuen Jun 6, 2022
559405f
Merge pull request #936 from p-kuen/patch-1
recrsn Jun 6, 2022
20c0e7e
Merge pull request #932 from cokia/remove-appveyor-npm-latest-version
recrsn Sep 21, 2022
a05aac4
Merge pull request #933 from cokia/update-redeme
recrsn Sep 21, 2022
229900f
Use Github actions for CI
recrsn Sep 21, 2022
cdfe6b2
Merge pull request #858 from kelektiv/github-actions
recrsn Sep 21, 2022
7f1de8f
Update dependencies
recrsn Sep 21, 2022
42e86d9
Remove old NodeJS versions
recrsn Sep 21, 2022
094dc94
Remove x86 for newer node
recrsn Sep 22, 2022
86aa111
Merge pull request #953 from kelektiv/version-update
recrsn Sep 22, 2022
fa5bc55
Fix github actions
recrsn Sep 22, 2022
8ce7edc
removed -q flags
laijonathan Sep 29, 2022
ac42d3f
added node < v16 condition
laijonathan Sep 30, 2022
e08fdff
added napi exception flag
laijonathan Sep 30, 2022
ee9117c
changed node version <16
laijonathan Sep 30, 2022
4c99e9e
fix build errors
laijonathan Oct 3, 2022
fd00ae0
reverted bcrypt.js changes
laijonathan Oct 4, 2022
5a7082a
Merge pull request #955 from kelektiv/github-actions
recrsn Oct 6, 2022
8d201d1
Move tests to use Jest
recrsn Oct 6, 2022
5a2b952
Increase test timeout
recrsn Oct 6, 2022
9d6516a
Merge pull request #958 from kelektiv/jest
recrsn Oct 6, 2022
b309eaf
Pin NAPI to v3
recrsn Oct 6, 2022
9eec9e8
Merge pull request #959 from kelektiv/release-v5-1-0
recrsn Oct 6, 2022
809ad03
Prepare for v5.1.0
recrsn Oct 6, 2022
fc225b1
Merge pull request #960 from kelektiv/release-v5-1-0
recrsn Oct 6, 2022
0884c5b
Merge pull request #894 from lpizzinidev/patch-1
recrsn Oct 6, 2022
11d2ddd
Merge pull request #968 from laijonathan/zos_fix
recrsn Oct 29, 2022
24aa2a2
Update dependencies
recrsn Aug 3, 2023
571d7ab
Merge pull request #993 from kelektiv/deps-update
recrsn Aug 3, 2023
33043f5
v5.1.1
recrsn Aug 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml}]
indent_style = space
indent_size = 2

[appveyor.yml]
end_of_line = crlf

[*.md]
trim_trailing_whitespace = false
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: ci

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
sudo apt-get install -y python3 make g++
- name: Test
run: npm test

build-alpine:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [14, 16, 18]
container:
image: node:${{ matrix.node-version }}-alpine
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
apk add make g++ python3
- name: Test
run: |
npm test --unsafe-perm
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.lock*
build
build*
*.node
*.sw[a-z]
node_modules
.idea/
62 changes: 62 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
language: node_js

services:
- docker

env:
- LINUX_CXX=g++-4.8

os:
- linux
- osx

arch:
- amd64
- arm64

node_js:
- '14'
- '16'
- '17'
- '18'

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- bc

before_install:
- echo Building for Node $TRAVIS_NODE_VERSION
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=$LINUX_CXX; $CXX --version;
fi;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then c++ --version; fi;
- npm install -g npm@latest

install: true

script:
- npm test
- "./node_modules/.bin/node-pre-gyp configure"
- "./node_modules/.bin/node-pre-gyp build"
- "./node_modules/.bin/node-pre-gyp package"
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]
then
docker image pull public.ecr.aws/docker/library/node:${TRAVIS_NODE_VERSION}-alpine
docker run -w /src --entrypoint /bin/sh -v`pwd`:/src "node:${TRAVIS_NODE_VERSION}-alpine" test_alpine.sh
fi

deploy:
provider: releases
skip_cleanup: true
api_key:
secure: j4gQ+m02izaw56EOd0gEStHAjCRfSCkohDWvpABiPzh1YPM9MvfEMSIvzzjV/0oMqi3Sy7eGyFv47EgQHZvouW0I8BIUzxuTCE5wP8z2SjABXCa/rz4WTppTc9d9ABq8JSdz80JxEwjmuwnYeMwWgOd7sT/VDiMxLYaXj0JWO7w=
file_glob: true
file: build/stage/kelektiv/node.bcrypt.js/releases/download/*/*
on:
node_js: '14'
repo: kelektiv/node.bcrypt.js
tags: true
9 changes: 0 additions & 9 deletions CHANGELOG

This file was deleted.

178 changes: 178 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
# 5.1.0 (2022-10-06)
* Update `node-pre-gyp` to 1.0.11

# 5.1.0 (2022-10-06)
* Update `node-pre-gyp` to 1.0.10
* Replace `nodeunit` with `jest` as the testing library

# 5.0.1 (2021-02-22)

* Update `node-pre-gyp` to 1.0.0

# 5.0.0 (2020-06-02)

* Fix the bcrypt "wrap-around" bug. It affects passwords with lengths >= 255.
It is uncommon but it's a bug nevertheless. Previous attempts to fix the bug
was unsuccessful.
* Experimental support for z/OS
* Fix a bug related to NUL in password input
* Update `node-pre-gyp` to 0.15.0

# 4.0.1 (2020-02-27)

* Fix compilation errors in Alpine linux

# 4.0.0 (2020-02-17)

* Switch to NAPI bcrypt
* Drop support for NodeJS 8

# 3.0.8 (2019-12-31)

* Update `node-pre-gyp` to 0.14
* Pre-built binaries for NodeJS 13

# 3.0.7 (2019-10-18)

* Update `nan` to 2.14.0
* Update `node-pre-gyp` to 0.13

# 3.0.6 (2019-04-11)

* Update `nan` to 2.13.2

# 3.0.5 (2019-03-19)

* Update `nan` to 2.13.1
* NodeJS 12 compatibility
* Remove `node-pre-gyp` from bundled dependencies

# 3.0.4-napi (2019-03-08)

* Sync N-API bcrypt with NAN bcrypt

# 3.0.4 (2019-02-07)

* Fix GCC, NAN and V8 deprecation warnings

# 3.0.3 (2018-12-19)

* Update `nan` to 2.12.1

# 3.0.2 (2018-10-18)

* Update `nan` to 2.11.1

# 3.0.1 (2018-09-20)

* Update `nan` to 2.11.0

# 3.0.0 (2018-07-06)

* Drop support for NodeJS <= 4

# 2.0.1 (2018-04-20)

* Update `node-pre-gyp` to allow downloading prebuilt modules

# 2.0.0 (2018-04-07)

* Make `2b` the default bcrypt version

# 1.1.0-napi (2018-01-21)

* Initial support for [N-API](https://nodejs.org/api/n-api.html)

# 1.0.3 (2016-08-23)

* update to nan v2.6.2 for NodeJS 8 support
* Fix: use npm scripts instead of node-gyp directly.

# 1.0.2 (2016-12-31)

* Fix `compare` promise rejection with invalid arguments

# 1.0.1 (2016-12-07)

* Fix destructuring imports with promises

# 1.0.0 (2016-12-04)

* add Promise support (commit 2488473)

# 0.8.7 (2016-06-09)

* update nan to 2.3.5 for improved node v6 support

# 0.8.6 (2016-04-20)

* update nan for node v6 support

# 0.8.5 (2015-08-12)

* update to nan v2 (adds support for iojs 3)

# 0.8.4 (2015-07-24)

* fix deprecation warning for the Encode API

# 0.8.3 (2015-05-06)

* update nan to 1.8.4 for iojs 2.x support

# 0.8.2 (2015-03-28)

* always use callback for generating random bytes to avoid blocking

# 0.8.1 (2015-01-18)
* update NaN to 1.5.0 for iojs support

# 0.8.0 (2014-08-03)
* migrate to NAN for bindings

# v0.5.0
* Fix for issue around empty string params throwing Errors.
* Method deprecation.
* Upgrade from libeio/ev to libuv. (shtylman)
** --- NOTE --- Breaks 0.4.x compatability
* EV_MULTIPLICITY compile flag.

# v0.4.1
* Thread safety fix around OpenSSL (GH-32). (bnoordhuis - through node)
* C++ code changes using delete and new instead of malloc and free. (shtylman)
* Compile options for speed, zoom. (shtylman)
* Move much of the type and variable checking to the JS. (shtylman)

# v0.4.0
* Added getRounds function that will tell you the number of rounds within a hash/salt

# v0.3.2
* Fix api issue with async salt gen first param

# v0.3.1
* Compile under node 0.5.x

# v0.3.0
* Internal Refactoring
* Remove pthread dependencies and locking
* Fix compiler warnings and a memory bug

# v0.2.4
* Use threadsafe functions instead of pthread mutexes
* salt validation to make sure the salt is of the correct size and format

# v0.2.3
* cygwin support

# v0.2.2
* Remove dependency on libbsd, use libssl instead

# v0.2.0
* Added async functionality
* API changes
* hashpw -> encrypt
* all old sync methods now end with _sync
* Removed libbsd(arc4random) dependency...now uses openssl which is more widely spread

# v0.1.2
* Security fix. Wasn't reading rounds in properly and was always only using 4 rounds
18 changes: 18 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Thanks for reporting a new issue with the node bcrypt module!

To help you resolve your issue faster please make sure you have done the following:

* Searched existing issues (even closed ones) for your same problem
* Make sure you have installed the required dependencies listed on the readme
* Read your npm error log for lines telling you what failed, usually it is a problem with not having the correct dependencies installed to build the native module

Once you have done the above and are still confident that the issue is with the module, please describe it below. Some things that really help get your issue resolved faster are:

* What went wrong?
* What did you expect to happen?
* Which version of nodejs and OS?
* If you find a bug, please write a failing test.

Thanks!

P.S. If it doesn't look like you read the above then your issue will likely be closed without further explanation. Sorry, but there are just too many issues opened with no useful information or questions which have been previously addressed.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
TESTS = test/*.js

all: test

build: clean compile

compile:
npm install .
npm run install

test: build
@./node_modules/nodeunit/bin/nodeunit \
$(TESTS)

clean:
rm -Rf lib/bindings/


.PHONY: clean test build