From c2378b390bb1736fcb40768503d9c30233dba757 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Fri, 13 Sep 2024 06:26:02 +0000 Subject: [PATCH 1/2] Prepare Release using 'release-plan' --- .release-plan.json | 145 +++++++-------------------------------------- CHANGELOG.md | 11 ++++ 2 files changed, 31 insertions(+), 125 deletions(-) diff --git a/.release-plan.json b/.release-plan.json index 31f94bead..427bdd2eb 100644 --- a/.release-plan.json +++ b/.release-plan.json @@ -1,167 +1,62 @@ { "solution": { "@glimmer/compiler": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.3", - "pkgJSONPath": "./packages/@glimmer/compiler/package.json" + "oldVersion": "0.92.3" }, "@glimmer/debug": { - "impact": "patch", - "oldVersion": "0.92.2", - "newVersion": "0.92.3", - "constraints": [ - { - "impact": "patch", - "reason": "Appears in changelog section :bug: Bug Fix" - } - ], - "pkgJSONPath": "./packages/@glimmer/debug/package.json" + "oldVersion": "0.92.3" }, "@glimmer/destroyable": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/destroyable/package.json" + "oldVersion": "0.92.2" }, "@glimmer/encoder": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/encode/package.json" + "oldVersion": "0.92.2" }, "@glimmer/global-context": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/global-context/package.json" + "oldVersion": "0.92.2" }, "@glimmer/interfaces": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/interfaces/package.json" + "oldVersion": "0.92.2" }, "@glimmer/manager": { - "impact": "patch", - "oldVersion": "0.92.2", - "newVersion": "0.92.3", - "constraints": [ - { - "impact": "patch", - "reason": "Has dependency `workspace:*` on @glimmer/debug" - } - ], - "pkgJSONPath": "./packages/@glimmer/manager/package.json" + "oldVersion": "0.92.3" }, "@glimmer/node": { - "impact": "patch", - "oldVersion": "0.92.2", - "newVersion": "0.92.3", - "constraints": [ - { - "impact": "patch", - "reason": "Has dependency `workspace:*` on @glimmer/runtime" - } - ], - "pkgJSONPath": "./packages/@glimmer/node/package.json" + "oldVersion": "0.92.3" }, "@glimmer/opcode-compiler": { - "impact": "patch", - "oldVersion": "0.92.2", - "newVersion": "0.92.3", - "constraints": [ - { - "impact": "patch", - "reason": "Has dependency `workspace:*` on @glimmer/manager" - }, - { - "impact": "patch", - "reason": "Has dependency `workspace:*` on @glimmer/debug" - } - ], - "pkgJSONPath": "./packages/@glimmer/opcode-compiler/package.json" + "oldVersion": "0.92.3" }, "@glimmer/owner": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/owner/package.json" + "oldVersion": "0.92.2" }, "@glimmer/program": { - "impact": "patch", - "oldVersion": "0.92.2", - "newVersion": "0.92.3", - "constraints": [ - { - "impact": "patch", - "reason": "Has dependency `workspace:*` on @glimmer/opcode-compiler" - }, - { - "impact": "patch", - "reason": "Has dependency `workspace:*` on @glimmer/manager" - } - ], - "pkgJSONPath": "./packages/@glimmer/program/package.json" + "oldVersion": "0.92.3" }, "@glimmer/reference": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/reference/package.json" + "oldVersion": "0.92.2" }, "@glimmer/runtime": { - "impact": "patch", - "oldVersion": "0.92.2", - "newVersion": "0.92.3", - "constraints": [ - { - "impact": "patch", - "reason": "Has dependency `workspace:*` on @glimmer/program" - }, - { - "impact": "patch", - "reason": "Has dependency `workspace:*` on @glimmer/manager" - } - ], - "pkgJSONPath": "./packages/@glimmer/runtime/package.json" + "oldVersion": "0.92.3" }, "@glimmer/syntax": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/syntax/package.json" + "oldVersion": "0.92.2" }, "@glimmer/util": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/util/package.json" + "oldVersion": "0.92.2" }, "@glimmer/validator": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/validator/package.json" + "oldVersion": "0.92.2" }, "@glimmer/vm": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/vm/package.json" + "oldVersion": "0.92.2" }, "@glimmer/vm-babel-plugins": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/vm-babel-plugins/package.json" + "oldVersion": "0.92.2" }, "@glimmer/wire-format": { - "impact": "patch", - "oldVersion": "0.92.1", - "newVersion": "0.92.2", - "pkgJSONPath": "./packages/@glimmer/wire-format/package.json" + "oldVersion": "0.92.2" } }, - "description": "## Release (2024-09-12) \n\n@glimmer/debug 0.92.3 (patch)\n@glimmer/manager 0.92.3 (patch)\n@glimmer/node 0.92.3 (patch)\n@glimmer/opcode-compiler 0.92.3 (patch)\n@glimmer/program 0.92.3 (patch)\n@glimmer/runtime 0.92.3 (patch)\n\n#### :bug: Bug Fix\n* `@glimmer/debug`\n * [#1620](https://github.com/glimmerjs/glimmer-vm/pull/1620) cause patch release of glimmer debug ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n\n#### :house: Internal\n* [#1619](https://github.com/glimmerjs/glimmer-vm/pull/1619) Add turbo build before publish ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n* [#1617](https://github.com/glimmerjs/glimmer-vm/pull/1617) Use ignore-scripts during publish, as we don't need to install browsers during publish ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n\n#### Committers: 1\n- [@NullVoxPopuli](https://github.com/NullVoxPopuli)\n" + "description": "## Release (2024-09-13)\n\n\n\n#### :bug: Bug Fix\n* `@glimmer-workspace/bin`, `@glimmer-workspace/build-support`\n * [#1622](https://github.com/glimmerjs/glimmer-vm/pull/1622) Add CI step for verifying that unwanted code does not get published ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n\n#### Committers: 1\n- [@NullVoxPopuli](https://github.com/NullVoxPopuli)\n" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e8723e19..d91141f84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## Release (2024-09-13) + + + +#### :bug: Bug Fix +* `@glimmer-workspace/bin`, `@glimmer-workspace/build-support` + * [#1622](https://github.com/glimmerjs/glimmer-vm/pull/1622) Add CI step for verifying that unwanted code does not get published ([@NullVoxPopuli](https://github.com/NullVoxPopuli)) + +#### Committers: 1 +- [@NullVoxPopuli](https://github.com/NullVoxPopuli) + ## Release (2024-09-12) @glimmer/compiler 0.92.2 (patch) From 66f5664df9a7e6392ac1af488a1b534ed7547aca Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Fri, 13 Sep 2024 09:25:48 +0100 Subject: [PATCH 2/2] Update release-plan --- .release-plan.json | 97 ++++++++++++++++++++++++++++++++++++---------- bin/patch-all.mjs | 24 ++++++++++++ 2 files changed, 101 insertions(+), 20 deletions(-) create mode 100644 bin/patch-all.mjs diff --git a/.release-plan.json b/.release-plan.json index 427bdd2eb..e437359db 100644 --- a/.release-plan.json +++ b/.release-plan.json @@ -1,62 +1,119 @@ { "solution": { "@glimmer/compiler": { - "oldVersion": "0.92.3" + "oldVersion": "0.92.3", + "newVersion": "0.92.4", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/compiler/package.json" }, "@glimmer/debug": { - "oldVersion": "0.92.3" + "oldVersion": "0.92.3", + "newVersion": "0.92.4", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/debug/package.json" }, "@glimmer/destroyable": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/destroyable/package.json" }, "@glimmer/encoder": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/encoder/package.json" }, "@glimmer/global-context": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/global-context/package.json" }, "@glimmer/interfaces": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/interfaces/package.json" }, "@glimmer/manager": { - "oldVersion": "0.92.3" + "oldVersion": "0.92.3", + "newVersion": "0.92.4", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/manager/package.json" }, "@glimmer/node": { - "oldVersion": "0.92.3" + "oldVersion": "0.92.3", + "newVersion": "0.92.4", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/node/package.json" }, "@glimmer/opcode-compiler": { - "oldVersion": "0.92.3" + "oldVersion": "0.92.3", + "newVersion": "0.92.4", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/opcode-compiler/package.json" }, "@glimmer/owner": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/owner/package.json" }, "@glimmer/program": { - "oldVersion": "0.92.3" + "oldVersion": "0.92.3", + "newVersion": "0.92.4", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/program/package.json" }, "@glimmer/reference": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/reference/package.json" }, "@glimmer/runtime": { - "oldVersion": "0.92.3" + "oldVersion": "0.92.3", + "newVersion": "0.92.4", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/runtime/package.json" }, "@glimmer/syntax": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/syntax/package.json" }, "@glimmer/util": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/util/package.json" }, "@glimmer/validator": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/validator/package.json" }, "@glimmer/vm": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/vm/package.json" }, "@glimmer/vm-babel-plugins": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/vm-babel-plugins/package.json" }, "@glimmer/wire-format": { - "oldVersion": "0.92.2" + "oldVersion": "0.92.2", + "newVersion": "0.92.3", + "impact": "patch", + "pkgJSONPath": "packages/@glimmer/wire-format/package.json" } }, "description": "## Release (2024-09-13)\n\n\n\n#### :bug: Bug Fix\n* `@glimmer-workspace/bin`, `@glimmer-workspace/build-support`\n * [#1622](https://github.com/glimmerjs/glimmer-vm/pull/1622) Add CI step for verifying that unwanted code does not get published ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n\n#### Committers: 1\n- [@NullVoxPopuli](https://github.com/NullVoxPopuli)\n" -} +} \ No newline at end of file diff --git a/bin/patch-all.mjs b/bin/patch-all.mjs new file mode 100644 index 000000000..9390388cc --- /dev/null +++ b/bin/patch-all.mjs @@ -0,0 +1,24 @@ +import { readFile, writeFile } from 'node:fs/promises'; +import { existsSync } from 'node:fs'; + +let file; + +if (existsSync('.release-plan.json')) { + let buffer = await readFile('.release-plan.json'); + let string = buffer.toString(); + file = JSON.parse(string); +} + +for (let [pkgName, existing] of Object.entries(file.solution)) { + let [major, minor, patch] = existing.oldVersion.split('.'); + let newVersion = `${major}.${minor}.${Number(patch) + 1}`; + + file.solution[pkgName] = { + ...existing, + newVersion, + impact: 'patch', + pkgJSONPath: `packages/${pkgName}/package.json`, + }; +} + +await writeFile('.release-plan.json', JSON.stringify(file, null, 2));