Skip to content

Commit 2f0f27f

Browse files
fix(shim): relicense the JSR shim package to MPL-2.0 (#299)
JSR validates the `license` field in `deno.json` against the SPDX list and rejects unrecognised identifiers. The repo's house licence `PMPL-1.0-or-later` is not on the SPDX list (it's the custom Polymath Public License), so the v0.1.2 publish failed with: Failed to publish @hyperpolymath/affinescript at 0.1.2: The license specified … was not recognized. Relicense the shim package — and only the shim package — under `MPL-2.0` (Mozilla Public License 2.0). MPL-2.0 is on the SPDX list (no `LicenseRef-` prefix needed), is OSI-approved, and is the licence the estate has been moving toward (see memory + JULIA-SUITE notes). Scope is deliberately narrow: 5 files inside `packages/affinescript-cli/` (`deno.json` + the four `SPDX-License-Identifier:` headers in `mod.js`, `mod.d.ts`, `pins.js`, `mod_test.js`). The rest of the repo stays on PMPL — this PR does NOT do a repo-wide licence sweep, the code generators that emit PMPL headers stay unchanged, and `LICENSES/` is not modified. A separate, deliberate decision is needed for any wider move; flagged in the PR description. Verification - `deno publish --dry-run`: clean, 4 files. - `deno test mod_test.js`: 6/6 green. - License field value (`MPL-2.0`) recognised by SPDX/JSR. Last blocker for the v0.1.2 JSR publish: package exists, OIDC trusted publisher is wired, types are typed, license is now SPDX. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a8f65d3 commit 2f0f27f

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/affinescript-cli/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"exports": {
55
".": "./mod.js"
66
},
7-
"license": "PMPL-1.0-or-later",
7+
"license": "MPL-2.0",
88
"publish": {
99
"exclude": ["mod_test.js"]
1010
},

packages/affinescript-cli/mod.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: PMPL-1.0-or-later
1+
// SPDX-License-Identifier: MPL-2.0
22
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
33
//
44
// Type declarations for mod.js — the @hyperpolymath/affinescript shim.

packages/affinescript-cli/mod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: PMPL-1.0-or-later
1+
// SPDX-License-Identifier: MPL-2.0
22
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
33
//
44
// @hyperpolymath/affinescript — the thin compiler shim (ADR-019 / #260 S3).

packages/affinescript-cli/mod_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: PMPL-1.0-or-later
1+
// SPDX-License-Identifier: MPL-2.0
22
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
33
//
44
// @hyperpolymath/affinescript shim tests (ADR-019 / #260 S3).

packages/affinescript-cli/pins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: PMPL-1.0-or-later
1+
// SPDX-License-Identifier: MPL-2.0
22
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
33
//
44
// ADR-019 / #260: the pin table. ONE compiler version + ONE sha256 per

0 commit comments

Comments
 (0)