From 95c3eb912351aca8ccb92c218556642fb70ee0b7 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Wed, 20 May 2026 08:29:06 +0100 Subject: [PATCH] fix(shim): relicense the JSR shim package to MPL-2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- packages/affinescript-cli/deno.json | 2 +- packages/affinescript-cli/mod.d.ts | 2 +- packages/affinescript-cli/mod.js | 2 +- packages/affinescript-cli/mod_test.js | 2 +- packages/affinescript-cli/pins.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/affinescript-cli/deno.json b/packages/affinescript-cli/deno.json index 661db63..e33a60b 100644 --- a/packages/affinescript-cli/deno.json +++ b/packages/affinescript-cli/deno.json @@ -4,7 +4,7 @@ "exports": { ".": "./mod.js" }, - "license": "PMPL-1.0-or-later", + "license": "MPL-2.0", "publish": { "exclude": ["mod_test.js"] }, diff --git a/packages/affinescript-cli/mod.d.ts b/packages/affinescript-cli/mod.d.ts index f307956..7ccd958 100644 --- a/packages/affinescript-cli/mod.d.ts +++ b/packages/affinescript-cli/mod.d.ts @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: PMPL-1.0-or-later +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // Type declarations for mod.js — the @hyperpolymath/affinescript shim. diff --git a/packages/affinescript-cli/mod.js b/packages/affinescript-cli/mod.js index 20c82d4..d4b9218 100644 --- a/packages/affinescript-cli/mod.js +++ b/packages/affinescript-cli/mod.js @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: PMPL-1.0-or-later +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // @hyperpolymath/affinescript — the thin compiler shim (ADR-019 / #260 S3). diff --git a/packages/affinescript-cli/mod_test.js b/packages/affinescript-cli/mod_test.js index d921325..abff1fc 100644 --- a/packages/affinescript-cli/mod_test.js +++ b/packages/affinescript-cli/mod_test.js @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: PMPL-1.0-or-later +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // @hyperpolymath/affinescript shim tests (ADR-019 / #260 S3). diff --git a/packages/affinescript-cli/pins.js b/packages/affinescript-cli/pins.js index 07a2c77..92baa75 100644 --- a/packages/affinescript-cli/pins.js +++ b/packages/affinescript-cli/pins.js @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: PMPL-1.0-or-later +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // ADR-019 / #260: the pin table. ONE compiler version + ONE sha256 per