From efc17b8d8ba250d0a6c000ca51f51bf63d7c8efe Mon Sep 17 00:00:00 2001 From: Erik LaBianca Date: Mon, 2 Nov 2026 13:24:15 -0500 Subject: [PATCH] Retain bundled dependency attribution in Concourse preview 0.1.1 --- .github/workflows/test.yml | 2 +- README.md | 2 + THIRD-PARTY-NOTICES.txt | 25 +++++++++++++ docs/helix/05-deploy/release-0.1.1.md | 53 +++++++++++++++++++++++++++ package.json | 2 +- scripts/build.ts | 6 ++- scripts/package-release.py | 2 +- 7 files changed, 88 insertions(+), 4 deletions(-) create mode 100644 THIRD-PARTY-NOTICES.txt create mode 100644 docs/helix/05-deploy/release-0.1.1.md diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6286723..7de3088 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -70,4 +70,4 @@ jobs: run: >- gh release create "$GITHUB_REF_NAME" release/* --verify-tag --prerelease --title "Concourse ${GITHUB_REF_NAME#v} — local qualification preview" - --notes-file docs/helix/05-deploy/release-0.1.0.md + --notes-file "docs/helix/05-deploy/release-${GITHUB_REF_NAME#v}.md" diff --git a/README.md b/README.md index 2475c04..2ca1062 100644 --- a/README.md +++ b/README.md @@ -50,3 +50,5 @@ Use the installed HELIX catalog; methodology templates are not vendored here. Concourse is available under `MIT OR Apache-2.0`, at your option. See [MIT](LICENSE-MIT) and [Apache-2.0](LICENSE-APACHE). + +Bundled dependency attribution is retained in [THIRD-PARTY-NOTICES.txt](THIRD-PARTY-NOTICES.txt). diff --git a/THIRD-PARTY-NOTICES.txt b/THIRD-PARTY-NOTICES.txt new file mode 100644 index 0000000..0ebc3de --- /dev/null +++ b/THIRD-PARTY-NOTICES.txt @@ -0,0 +1,25 @@ +Bundled third-party software + +jose 6.2.14 + +The MIT License (MIT) + +Copyright (c) 2018 Filip Skokan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/docs/helix/05-deploy/release-0.1.1.md b/docs/helix/05-deploy/release-0.1.1.md new file mode 100644 index 0000000..bcda5e4 --- /dev/null +++ b/docs/helix/05-deploy/release-0.1.1.md @@ -0,0 +1,53 @@ +--- +ddx: + id: concourse.release.0.1.1 + type: release-notes + activity: deploy + authoring: + home: repo + links: + - id: CONTRACT-001 + kind: informed_by +--- + +# Concourse 0.1.1 — local qualification preview + +## Release Scope + +Corrects third-party attribution packaging in the first preview. Concourse +remains MIT OR Apache-2.0; bundled jose 6.2.14 retains Filip Skokan's MIT notice. + +## Audience and Channels + +GitHub prerelease assets carry the complete notice in the archive and Worker +bundle. The private npm package is not registry-published. + +## Highlights + +The Worker retains dependency attribution even when copied independently from +the archive. The browser manifest derives its version from package metadata. + +## Changes and Fixes + +The existing hosted infrastructure, runtime, workerd/D1 and Chromium gates run +before publication. The source-bound receipt hashes the notice and actual bundle. + +## Breaking Changes and Required Actions + +Use 0.1.1 for new downloads. Replace 0.1.0 assets with this corrected bundle and +retain the supplied license/notice files when redistributing it. + +## Migration or Rollback Guidance + +No runtime, SQL or infrastructure behavior changes. No migration or deployment +is performed; follow the existing separately reviewed deployment procedure. + +## Known Issues and Support + +The local preview's existing limits remain: live provider/production admission, +retention/restore, moderation, Batten hosting and structured actions are unqualified. + +## References + +- [Initial scope and qualification](release-0.1.0.md) +- [Deployment procedure](first-slices.md) diff --git a/package.json b/package.json index f22e56a..25f944c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@novirhyza/concourse", - "version": "0.1.0", + "version": "0.1.1", "private": true, "type": "module", "scripts": { diff --git a/scripts/build.ts b/scripts/build.ts index 3d58dfc..0d9140f 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -1,14 +1,18 @@ import { mkdir, copyFile } from 'node:fs/promises'; +const {version} = await Bun.file('package.json').json(); +const notice = await Bun.file('THIRD-PARTY-NOTICES.txt').text(); await mkdir('dist', { recursive: true }); +await copyFile('THIRD-PARTY-NOTICES.txt', 'dist/THIRD-PARTY-NOTICES.txt'); const result = await Bun.build({ entrypoints: ['src/browser/index.ts'], outdir: 'dist', naming: 'concourse.js', target: 'browser', minify: true }); if (!result.success) throw new AggregateError(result.logs, 'Browser build failed'); await copyFile('src/browser/concourse.css', 'dist/concourse.css'); await copyFile('integrations/hugo/concourse.html', 'dist/concourse.html'); const files: Record = {}; for (const name of ['concourse.js', 'concourse.css', 'concourse.html']) files[name] = new Bun.CryptoHasher('sha256').update(await Bun.file(`dist/${name}`).bytes()).digest('hex'); -await Bun.write('dist/manifest.json', JSON.stringify({ version: '0.1.0', files }, null, 2) + '\n'); +await Bun.write('dist/manifest.json', JSON.stringify({ version, files }, null, 2) + '\n'); if (!process.argv.includes('--browser-only')) { const worker = await Bun.build({ entrypoints: ['src/server/worker.ts'], outdir: 'dist', naming: 'worker.js', target: 'browser', minify: true }); if (!worker.success) throw new AggregateError(worker.logs, 'Worker build failed'); +await Bun.write('dist/worker.js', '/*!\n' + notice + '\n*/\n' + await Bun.file('dist/worker.js').text()); } diff --git a/scripts/package-release.py b/scripts/package-release.py index 85b1bd3..8782741 100644 --- a/scripts/package-release.py +++ b/scripts/package-release.py @@ -19,7 +19,7 @@ output.mkdir() stage = output / f"concourse-{version}" stage.mkdir() -for name in ["dist", "migrations", "integrations", "deploy", "infra", "README.md", "LICENSE-MIT", "LICENSE-APACHE"]: +for name in ["dist", "migrations", "integrations", "deploy", "infra", "README.md", "LICENSE-MIT", "LICENSE-APACHE", "THIRD-PARTY-NOTICES.txt"]: source = root / name if source.is_dir(): shutil.copytree(source, stage / name, ignore=shutil.ignore_patterns(".terraform", "*.tfstate*", "*.tfplan"))