diff --git a/.github/workflows/nodejs-publish.yml b/.github/workflows/nodejs-publish.yml index a1c007004..a4ee8efb9 100644 --- a/.github/workflows/nodejs-publish.yml +++ b/.github/workflows/nodejs-publish.yml @@ -47,6 +47,12 @@ jobs: path: ./nodejs/artifacts - name: Move artifacts run: npm run artifacts + - name: Add the licence texts to every package + run: | + for dir in . npm/*/; do + cp ../LICENSE-MIT ../LICENSE-APACHE "$dir" + done + shell: bash - name: List packages run: ls -R ./npm shell: bash diff --git a/CHANGELOG.md b/CHANGELOG.md index cba241699..869bdae1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 *When editing this file, please respect a line length of 100.* +## [0.36.1] - 2026-10-06 + +### Changed +- Relicensed from GPL-3.0 with a linking exception to MIT OR Apache-2.0, at your option. The + `LICENSE` file is replaced by `LICENSE-MIT` and `LICENSE-APACHE`, and the crate, Python and + Node.js package metadata declare `MIT OR Apache-2.0`. The last release under GPL-3.0 with the + linking exception is 0.36.0. + ## [0.36.0] - 2026-05-13 ### Added diff --git a/Cargo.toml b/Cargo.toml index ff0813b1a..ad24aed2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ license = "MIT OR Apache-2.0" name = "self_encryption" readme = "README.md" repository = "https://github.com/WithAutonomi/self_encryption" -version = "0.36.0" +version = "0.36.1" [features] default = [] diff --git a/nodejs/Cargo.toml b/nodejs/Cargo.toml index 282623a6f..1b646bf30 100644 --- a/nodejs/Cargo.toml +++ b/nodejs/Cargo.toml @@ -12,7 +12,7 @@ crate-type = ["cdylib"] hex = "0.4.3" napi = { version = "2.12.2", default-features = false, features = ["napi4", "napi6", "tokio_rt", "serde-json"] } napi-derive = "2.12.2" -self_encryption = { version = "0.36.0", path = ".." } +self_encryption = { version = "0.36.1", path = ".." } [build-dependencies] napi-build = "2.0.1" diff --git a/nodejs/npm/darwin-arm64/package.json b/nodejs/npm/darwin-arm64/package.json index 8e33b32d8..1299150b4 100644 --- a/nodejs/npm/darwin-arm64/package.json +++ b/nodejs/npm/darwin-arm64/package.json @@ -14,9 +14,11 @@ ], "main": "self-encryption.darwin-arm64.node", "files": [ - "self-encryption.darwin-arm64.node" + "self-encryption.darwin-arm64.node", + "LICENSE-MIT", + "LICENSE-APACHE" ], - "license": "MIT", + "license": "MIT OR Apache-2.0", "engines": { "node": ">= 10" } diff --git a/nodejs/npm/darwin-x64/package.json b/nodejs/npm/darwin-x64/package.json index bcd9a4d69..ddbded05d 100644 --- a/nodejs/npm/darwin-x64/package.json +++ b/nodejs/npm/darwin-x64/package.json @@ -14,9 +14,11 @@ ], "main": "self-encryption.darwin-x64.node", "files": [ - "self-encryption.darwin-x64.node" + "self-encryption.darwin-x64.node", + "LICENSE-MIT", + "LICENSE-APACHE" ], - "license": "MIT", + "license": "MIT OR Apache-2.0", "engines": { "node": ">= 10" } diff --git a/nodejs/npm/linux-x64-gnu/package.json b/nodejs/npm/linux-x64-gnu/package.json index fd2bab2db..d0583e6a7 100644 --- a/nodejs/npm/linux-x64-gnu/package.json +++ b/nodejs/npm/linux-x64-gnu/package.json @@ -14,9 +14,11 @@ ], "main": "self-encryption.linux-x64-gnu.node", "files": [ - "self-encryption.linux-x64-gnu.node" + "self-encryption.linux-x64-gnu.node", + "LICENSE-MIT", + "LICENSE-APACHE" ], - "license": "MIT", + "license": "MIT OR Apache-2.0", "engines": { "node": ">= 10" }, diff --git a/nodejs/npm/win32-x64-msvc/package.json b/nodejs/npm/win32-x64-msvc/package.json index 5a0055f64..34277a37a 100644 --- a/nodejs/npm/win32-x64-msvc/package.json +++ b/nodejs/npm/win32-x64-msvc/package.json @@ -14,9 +14,11 @@ ], "main": "self-encryption.win32-x64-msvc.node", "files": [ - "self-encryption.win32-x64-msvc.node" + "self-encryption.win32-x64-msvc.node", + "LICENSE-MIT", + "LICENSE-APACHE" ], - "license": "MIT", + "license": "MIT OR Apache-2.0", "engines": { "node": ">= 10" } diff --git a/nodejs/package-lock.json b/nodejs/package-lock.json index be1ee2d31..a15182b1b 100644 --- a/nodejs/package-lock.json +++ b/nodejs/package-lock.json @@ -7,7 +7,7 @@ "": { "name": "@withautonomi/self-encryption", "version": "0.1.1", - "license": "GPL-3.0", + "license": "MIT OR Apache-2.0", "devDependencies": { "@napi-rs/cli": "^2.18.4", "@types/node": "^22.13.10",