Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


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

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
11 changes: 11 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Dependency Review'

on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
uses: voxpelli/ghatemplates/.github/workflows/dependency-review.yml@main

18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Linting

on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main

permissions:
contents: read

jobs:
lint:
uses: voxpelli/ghatemplates/.github/workflows/lint.yml@main
21 changes: 21 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Node CI

on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main

permissions:
contents: read

jobs:
test:
uses: voxpelli/ghatemplates/.github/workflows/test.yml@main
with:
node-versions: '20,22,24'
os: 'ubuntu-latest'
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Basic ones
/coverage
/coverage-ts
/node_modules
/.env
/.nyc_output
/.github/copilot-instructions.md

# We're a library, so please, no lock files
/package-lock.json
/yarn.lock

# Generated types
*.d.ts
*.d.ts.map

# Library specific ones
3 changes: 3 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

npm test
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# CHANGELOG

## Unreleased (v5.0.0)

### Breaking changes

* Dropped support for Node.js versions older than `^20.15.0 || >=22.2.0`
* Dropped callback support in async API:s, only supporting promises going forward.
* Converted to ESM with `SecurePassword` as a named export
* `SecurePassword` now needs to be created with `new`, eg `new SecurePassword()`
* Constants are their own named exports rather than static properties

### Changes

* Added type declarations
* Upgraded to `sodium-native` v5.x
* Dropped `nanoassert`

### Internal changes

* Swapped `tape` for `node:test`
* Added more tests
* Mapped the boilerplate setup to that of [voxpelli/node-module-template](https://github.com/voxpelli/node-module-template)

## v4.0.0

* Dropped support for Node.js versions older than 10
* Upgraded to `sodium-native` v3.x

## v3.0.0

* `libsodium` has changed the default algorithm from `argon2i` to the safer
Expand Down
Loading