diff --git a/.changeset/config.json b/.changeset/config.json deleted file mode 100644 index 14d2ce189..000000000 --- a/.changeset/config.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", - "changelog": [ - "@livekit/changesets-changelog-github", - { "repo": "livekit/protocol" } - ], - "commit": false, - "fixed": [["github.com/livekit/protocol", "@livekit/protocol"]], - "linked": [], - "access": "public", - "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": [], - "privatePackages": { "version": true, "tag": false } -} diff --git a/.github/workflows/changeset-check.yaml b/.github/workflows/changeset-check.yaml new file mode 100644 index 000000000..89c8e608e --- /dev/null +++ b/.github/workflows/changeset-check.yaml @@ -0,0 +1,21 @@ +# Fails a PR that changes a package without a changeset, with a comment +# that links to a prefilled changeset file. The `internal` label skips it. +name: Changeset check + +on: + pull_request: + types: [opened, synchronize, reopened, labeled, unlabeled] + branches: [main] + +permissions: + contents: read + pull-requests: write + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + with: + command: check diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index 73b9f8c8b..abe2c79db 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -17,7 +17,7 @@ name: Generate on: workflow_dispatch: push: - branches-ignore: [main] + branches-ignore: [main, "release/**"] # release/* is regenerated by verwalter: nothing to generate there permissions: contents: write # Required to commit the regenerated output diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml new file mode 100644 index 000000000..0a37fdd59 --- /dev/null +++ b/.github/workflows/pre-release.yaml @@ -0,0 +1,25 @@ +# On demand: open an rc PR from the branch the workflow is run on. Merging +# it tags 1.55.0-rc.1 and publishes under the `next` dist-tag. Changesets +# stay pending for the final release. +name: Pre-release PR + +on: + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + pr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 # the tags number the rc + - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + with: + command: pre-release + args: --target ${{ github.ref_name }} + app-client-id: ${{ secrets.VERWALTER_RELEASE_CLIENT_ID }} + app-private-key: ${{ secrets.VERWALTER_RELEASE_APP_KEY }} diff --git a/.github/workflows/release-pr.yaml b/.github/workflows/release-pr.yaml new file mode 100644 index 000000000..143380034 --- /dev/null +++ b/.github/workflows/release-pr.yaml @@ -0,0 +1,29 @@ +# Keeps one release PR open while changesets are pending. Runs on every +# push to main and regenerates the release branch from main. +name: Release PRs + +on: + push: + branches: [main] + +permissions: + contents: write + pull-requests: write + +concurrency: + group: release-prs + cancel-in-progress: true + +jobs: + pr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 # the commit that added a changeset gives its changelog line the PR and author + - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + with: + command: pr + # The App token lets the release PR trigger CI. github.token does not. + app-client-id: ${{ secrets.VERWALTER_RELEASE_CLIENT_ID }} + app-private-key: ${{ secrets.VERWALTER_RELEASE_APP_KEY }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7658c506b..e3c0d8dce 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,27 +1,52 @@ +# After a release PR merges: build, then tag both packages and create the +# GitHub release of @livekit/protocol, then publish to npm and the Go +# proxy. The step that cannot be undone comes last. +# The file name stays release.yaml: npm trusted publishing names it. name: Release on: - push: - branches: - - main - -concurrency: ${{ github.workflow }}-${{ github.ref }} + # No `branches` filter: an rc PR from pre-release.yaml targets the branch + # the workflow was run on. The condition on the first job decides which + # PRs release. + pull_request: + types: [closed] + # A failed job is re-run with "Re-run failed jobs" on the run itself: + # that keeps the merge commit. This trigger is for a run that needs a + # fixed workflow file from the branch. Anyone with write access can start + # it. `verwalter release` resumes from the current state and skips what + # is done. + workflow_dispatch: + inputs: + ref: + description: 'Commit or tag to build and publish. Set it to the release tag when the tag exists. Empty is the branch head.' + type: string + default: '' permissions: - id-token: write # Required for OIDC - contents: write # Required to create GH releases - pull-requests: write # Required to interact with PRs + contents: write + id-token: write # npm trusted publishing jobs: - release: - name: Release + # Before the tag: a commit that does not build is never tagged. + build: + # Only a release PR the tool opened: the branch prefix alone would let + # any pushed `release/*` branch trigger a publish. + if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') && github.event.pull_request.user.login == 'verwalter-release[bot]' && contains(github.event.pull_request.body, '')) runs-on: ubuntu-latest + permissions: + contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + # On a run by hand, `ref` is the released tag: the branch head can + # hold newer source than the version that is published. `publish` + # fails when the files changed since the tag. + ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} - # The published JS package is generated at build time by pnpm generate:proto, so - # protoc is a release input. Keep it on the same release as generate.yaml, or the - # published package is generated by a different compiler than the committed Go code. + # The published JS package is generated at build time, so protoc is a + # release input. Keep it on the same release as generate.yaml, or the + # published package is generated by a different compiler than the + # committed Go code. - name: Install Protoc uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0 with: @@ -30,30 +55,108 @@ jobs: - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 - - name: Use Node.js 20 + - name: Use Node.js 26 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 26 cache: "pnpm" - name: Install dependencies - run: pnpm install - - - name: Create Release Pull Request or Publish packages - id: changesets - # v2 is the release line for @changesets/cli v3. v1 detects published packages by parsing - # `changeset publish` stdout for "New tag:", which CLI v3 no longer prints, so `published` - # stays false and the Go tag below is never created. - uses: changesets/action@ae32849d5ba541f9ae29e40e22a623bc13562f51 # v2.1.2 - with: - # This expects you to have a script called ci:publish which does a build for your packages and calls changeset publish - publish-script: pnpm ci:publish - - - name: Create git tag for golang package - if: steps.changesets.outputs.published == 'true' - uses: rickstaa/action-create-tag@a1c7777fcb2fee4f19b0f283ba888afa11678b72 # v1.7.2 - id: tag_create - with: - tag: ${{format('v{0}', fromJson(steps.changesets.outputs['published-packages'])[0].version)}} - tag_exists_error: false - message: "github.com/livekit/protocol@${{fromJson(steps.changesets.outputs['published-packages'])[0].version}}" + run: pnpm install --frozen-lockfile + + - name: Build + run: pnpm --filter @livekit/protocol run build + + # The bundle leaves its dependencies external, so a missing export + # only fails when the published entry points are loaded. + - name: Load the built package + working-directory: packages/javascript + run: | + node --input-type=module -e "await import('./dist/index.mjs')" + node -e "require('./dist/index.cjs')" + + # src/gen is generated, not committed, and the package ships it. + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: javascript + path: | + packages/javascript/dist + packages/javascript/src/gen + if-no-files-found: error + + release: + needs: build + runs-on: ubuntu-latest + outputs: + released: ${{ steps.verwalter.outputs.released }} + releases: ${{ steps.verwalter.outputs.releases }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + # The merge commit itself: a push to main right after the merge + # must not move the tags. + ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} + fetch-depth: 0 + - id: verwalter + uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + with: + command: release + app-client-id: ${{ secrets.VERWALTER_RELEASE_CLIENT_ID }} + app-private-key: ${{ secrets.VERWALTER_RELEASE_APP_KEY }} + + # Publishes the build job's output to npm and asks the Go proxy for the + # tag. Skips a version a registry already has, so a re-run is safe. + publish: + needs: release + if: needs.release.outputs.released == 'true' || github.event_name == 'workflow_dispatch' + runs-on: ubuntu-latest + # One publish at a time, in arrival order. A waiting publish checks out + # after the running one ends, so it sees the newer tag and picks the + # right npm dist-tag. + concurrency: + group: publish + cancel-in-progress: false + permissions: + contents: write # the tool flips the draft release after the publish + id-token: write # npm trusted publishing + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} + fetch-depth: 0 # tags decide what is published + - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 + # No registry-url: with trusted publishing, its placeholder token + # makes the publish fail with 404. + - name: Use Node.js 26 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 26 + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + name: javascript + path: packages/javascript + - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + env: + GH_TOKEN: ${{ github.token }} + with: + command: publish + releases: ${{ needs.release.outputs.releases }} + + # The end state, asserted: `status --check` fails when a tag is not on + # the remote, the GitHub release is missing or still a draft, or npm or + # the Go proxy does not have the version. A step that was skipped + # without an error ends here. + verify: + needs: publish + runs-on: ubuntu-latest + permissions: + contents: write # reads only. A draft release is visible only with write access + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.event.pull_request.merge_commit_sha || inputs.ref || github.sha }} + fetch-depth: 0 + - uses: livekit/verwalter@39e3d7c57c2b6d96cf2d4b7771f3ab199490faba # v0.31.0 + with: + command: status + args: --check diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 000000000..9d067f7a6 --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,70 @@ +# Releasing protocol + +This repository releases with [verwalter](https://github.com/livekit/verwalter). +The commands that are the same in every repository are in the +[verwalter cheat sheet](https://github.com/livekit/verwalter/blob/main/docs/cheat-sheet.md). +This file holds what is specific to this repository. + +## Packages + +The two packages always share a version. + +| Package | Tag | Goes to | +| ----------------------------- | ----------------------------- | ------------------------------- | +| `github.com/livekit/protocol` | `v` | Go proxy. No GitHub release. | +| `@livekit/protocol` | `@livekit/protocol@` | npm, with a GitHub release | + +The version of the Go module is in `go.mod` and the root `package.json`. + +## Workflows + +| File | Starts when | Does | +| ---------------------- | ------------------------- | ---------------------------------------------------------------------------- | +| `changeset-check.yaml` | A PR is opened or updated | Fails a PR that changes a package without a changeset. | +| `release-pr.yaml` | A push to `main` | Keeps the release PR `release/main` current. | +| `release.yaml` | The release PR merges | Builds the JS package, tags both packages, publishes to npm and the Go proxy. | +| `pre-release.yaml` | Run by hand | Opens an rc PR against the branch it runs on. | + +Do not rename `release.yaml`: npm trusted publishing names the file. +`generate.yaml` does not run on `release/*` branches: verwalter +regenerates them on every push to `main`. + +## Release + +1. Merge the release PR. +2. Watch the run of `release.yaml`: `gh run list --workflow release.yaml --limit 1`. + +A release is complete when: + +- both tags are on the remote +- the tag `@livekit/protocol@` has a public GitHub release +- npm and the Go proxy have the version +- the `verify` job is green. It checks the three points above. + +## Pre-release + +`gh workflow run pre-release.yaml --ref ` opens an rc PR against +``. The merge publishes the rc to npm with the dist-tag `next`. + +## A release failed + +Find the cause first. The paths by cause are in the +[recovery section](https://github.com/livekit/verwalter/blob/main/docs/release-workflows.md#recovery). + +| Situation | Command | +| --------------------------------------------------------------- | -------------------------------------------------------------------------- | +| A job failed for a transient reason | `gh run rerun --failed` | +| The workflow file needed a fix, and the fix is on `main` | `gh workflow run release.yaml -f ref=` | +| The released commit is wrong, and npm does not have the version | `verwalter release --abandon `, then a changeset and the next version | + +A re-run of failed jobs keeps the merge commit. Prefer it to a run by +hand. Set `ref` on a run by hand: an empty `ref` releases the head of +the branch. If no tag exists yet, set `ref` to the merge commit of the +release PR. + +`publish` skips a version that a registry has. It fails when the files +of the package changed since the tag. + +A version that npm or the Go proxy has cannot be replaced. For npm, +deprecate it with `npm deprecate`. For Go, add a `retract` directive to +`go.mod`. Then release the next version. diff --git a/package.json b/package.json index 2e508a454..41ab1ac33 100644 --- a/package.json +++ b/package.json @@ -2,14 +2,8 @@ "name": "github.com/livekit/protocol", "private": true, "version": "1.54.2", - "scripts": { - "changeset": "changeset", - "ci:publish": "pnpm --filter @livekit/protocol run build && changeset publish" - }, "devDependencies": { "@babel/core": "^8.0.0", - "@changesets/cli": "^3.0.0", - "@livekit/changesets-changelog-github": "^0.2.0", "esbuild": "^0.28.0" }, "packageManager": "pnpm@12.17.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 57b18596d..378c62b46 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -176,12 +176,6 @@ importers: '@babel/core': specifier: ^8.0.0 version: 8.1.0 - '@changesets/cli': - specifier: ^3.0.0 - version: 3.0.3 - '@livekit/changesets-changelog-github': - specifier: ^0.2.0 - version: 0.2.0 esbuild: specifier: ^0.28.0 version: 0.28.2 @@ -287,82 +281,6 @@ packages: '@bufbuild/protoplugin@1.10.1': resolution: {integrity: sha512-LaSbfwabAFIvbVnbn8jWwElRoffCIxhVraO8arliVwWupWezHLXgqPHEYLXZY/SsAR+/YsFBQJa8tAGtNPJyaQ==} - '@changesets/apply-release-plan@8.1.1': - resolution: {integrity: sha512-nk2Hbq3M9NeHMdaIRBDvawKrQJzXB9sGyBUE5yWnIKtvdcNCPj75zBekJYr0gTT2ecJH3eFeTrc8eisPImcv0Q==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/assemble-release-plan@7.0.0': - resolution: {integrity: sha512-oEW8BxdA604kGGtDSCiHr5w9Tv4UWe9I2k61IBNZzCOE1kbYaJj4v+lFQNgcEZFkUc2pV/+hASErGDvpJOZCTg==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/changelog-git@1.0.0': - resolution: {integrity: sha512-3Dst2Ime2Op5nd4XmWJLPIgp11ZFqJqSkVug9izK6TDcIV4YlhPS4ECbEVR+eGI0bk0r1ItogD4j2Oli87bJrA==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/cli@3.0.3': - resolution: {integrity: sha512-L1i67bMfkK6iC/kDejuNO4pFgTRcWIObsD6Qof2woP1I4M8tj17DGlcpRaTzTv1DYSP5EMwWdEtR8X0Pj5Jg3Q==} - engines: {node: ^22.11 || ^24 || >=26, npm: '>=10.9.0', pnpm: '>=10.0.0', yarn: '>=4.5.2'} - hasBin: true - - '@changesets/config@4.0.1': - resolution: {integrity: sha512-PxpxSQLQSLDjceAgRq+4FWlU+HflDIw03mmPVipxoQx9xrXFUjmqTy3SE+n/2t+DqPdpPiLWVr5NRiLZvjyLwg==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/errors@1.0.0': - resolution: {integrity: sha512-ElN/mEzn6zmETgjwf5MclCMa9ef59sAR0lfO8VSYIsiRvbC2FbLB/92EoYw10Sl0kGixxHFiJZUSv7dA+YpR8g==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/format@0.1.3': - resolution: {integrity: sha512-zTZrJbfY81+/MsXsey6i3jQjpApz4PqRQ+nouHGDJhCa5sKCExwR9mZFQ/67lMsqZDNy2G2v3wTbzOmZ56EtaQ==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/get-dependents-graph@3.0.0': - resolution: {integrity: sha512-ji/t5wFA1zREKXRUePE6Qi+Qu2UgxCeSSGQrphezwvQZrp49B7sJ+8+wvM0tA7zPeSxYKCojDy3WWgrl+s+awg==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/get-github-info@1.0.0-next.3': - resolution: {integrity: sha512-HQXw3Kcz1hAdCQgGH4cWlKpJWcTeL8pWNJP4zDOR3igoHJQO31wzHhG29XPhxnDBK9wEdyI71Ft86KpXDOLv/Q==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/git@4.0.1': - resolution: {integrity: sha512-6vWpIAC4LkpmlqaIu37ViT5enyd9+uBwAiGqCGhASvkSHBgx4PrtTGXWTMFYpDmZbjgyonyVgMciPrW4MqtJsA==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/parse@1.0.0': - resolution: {integrity: sha512-P0iaMb9p9CRYZiTgAllEIF9AUMQHIy1G72tKlcIqJp61icZSsKQNiOPdxAMZG8m/DvZwt/oz5xEbTpike//dWg==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/pre@3.0.0': - resolution: {integrity: sha512-Zm/6YliV/a2oeWTqHJf6KxLrQwgcK1i/BRDl2m0EKZvbnxV5fG9QRhwJJGshjsZTUTS6dkfURQ2K6aAvgNw/3Q==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/read@1.0.1': - resolution: {integrity: sha512-nzvSC6RcTiWf/dsuwZFXpLzGGsRHYCL68U3uHV7srsulU93aVWY7u2GEJiDZ+4GIIElfaW5EqtKC0UHroY+LTQ==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/should-skip-package@1.0.0': - resolution: {integrity: sha512-pwqoJmbONn1XgXmZXPEExgAaT+HdZLjALFTDgIm+PnS5KeO2nLtzA2/Q+4aMFY14kFMuXKG30MObhvDzWgzDgg==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/types@6.1.0': - resolution: {integrity: sha512-rKQcJ+o1nKNgeoYRHKOS07tAMNd3YSN0uHaJOZYjBAgxfV7TUE7JE+z4BzZdQwb5hKaYbayKN5KrYV7ODb2rAA==} - - '@changesets/types@7.0.0': - resolution: {integrity: sha512-c5GoiQyt3pxiXjrWSNoP8/GRf4kG+VnKzovx1OQM8dYYALlSwgedmkPmJ+ZqGxqwg9D3Bkj85Uo4KLd5BN3A0w==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/write@1.0.1': - resolution: {integrity: sha512-q/ThtP9gcnEP6xlv7LrY26C2mHqdGBti/MmOVngt/M/oIGYkssmQGxPK9WzBNt2juVcH/vml2WQ+ra8LXYOTaA==} - engines: {node: ^22.11 || ^24 || >=26} - - '@clack/core@1.5.1': - resolution: {integrity: sha512-iHTrHA8MtVuLl2TfZySmcKv1qO2PoyC9Z7pfSDozEuV5vtY3/wcOPKJXlqJ5Oq2Cx5DDGQGAMVx6HZfRRoVEbQ==} - engines: {node: '>= 20.12.0'} - - '@clack/prompts@1.8.1': - resolution: {integrity: sha512-dlT1m5e/0yUL0kRNcQn7yGLVThkgbB0Ga/1AmfDDC/8ik6AIiSf2QLQO2zPYvefsHP0aFgxO93cVLCCfDp7kzQ==} - engines: {node: '>= 20.12.0'} - '@colordx/core@5.5.0': resolution: {integrity: sha512-3PxTH8itZzltK0U9jTwVVnjLXvnDYuq3m+QXsHkENxWiPRh4WaoLcs1SQjqgZ55kS+QyirpH5BVwzP2gMVG6EQ==} @@ -703,25 +621,6 @@ packages: '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} - '@livekit/changesets-changelog-github@0.2.0': - resolution: {integrity: sha512-HWgR0biITeIaLeBRIUpqYJ0Wacmx7JJjlqhiJtqYrGItqw0kRUe6tTB6vN0fU7tK1oh08hlgr3iYdGLNLNbrNQ==} - - '@manypkg/find-root@3.1.0': - resolution: {integrity: sha512-BcSqCyKhBVZ5YkSzOiheMCV41kqAFptW6xGqYSTjkVTl9XQpr+pqHhwgGCOHQtjDCv7Is6EFyA14Sm5GVbVABA==} - engines: {node: '>=20.0.0'} - - '@manypkg/get-packages@3.1.0': - resolution: {integrity: sha512-0TbBVyvPrP7xGYBI/cP8UP+yl/z+HtbTttAD7FMAJgn/kXOTwh5/60TsqP9ZYY710forNfyV0N8P/IE/ujGZJg==} - engines: {node: '>=20.0.0'} - - '@manypkg/tools@2.1.2': - resolution: {integrity: sha512-6QEf6yqFbETdwGITKq57aYoPfX/3K8XFNwsAlx0C1M7o8cb79sv1M3w+tWuWvIcSbNqrLF7OD7YpZMVVz335hQ==} - engines: {node: '>=20.0.0'} - - '@pnpm/deps.graph-sequencer@1100.0.1': - resolution: {integrity: sha512-pOr5+q1fLYKwFN3LAJuGZEnfXDcQ73zqgDHMtGy+K+uIoUqyY+6MeDCWFwfu+4EFuq76I5EPFofoNAI+Bmmq4A==} - engines: {node: '>=22.13'} - '@rollup/plugin-alias@5.1.1': resolution: {integrity: sha512-PR9zDb+rOzkRb2VD+EuKB7UC41vU5DIwZ5qqCpk0KJudcWAyi8rvYOhS7+L5aZCspw1stTViLgN5v6FF1p5cgQ==} engines: {node: '>=14.0.0'} @@ -1098,10 +997,6 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true - cac@7.1.0: - resolution: {integrity: sha512-LMDU/U2yA4IPIY8KT0NsNPWEYZvAMkbgyspxJ6btJaYV+WMDOHAZCmB0lsTObiHaRS1V/ztKAl7+TSkTqXyeoA==} - engines: {node: '>=20.19.0'} - caniuse-api@3.0.0: resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==} @@ -1194,9 +1089,6 @@ packages: resolution: {integrity: sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==} engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'} - dataloader@2.2.3: - resolution: {integrity: sha512-y2krtASINtPFS1rSDjacrFgn1dcUuoREVabwlOGOe4SdxenREqwjwjElAdwvbGM7kgZz9a3KVicWR7vcz8rnzA==} - debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -1226,10 +1118,6 @@ packages: domutils@3.1.0: resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==} - dotenv@8.6.0: - resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==} - engines: {node: '>=10'} - ejs@3.1.10: resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} engines: {node: '>=0.10.0'} @@ -1266,15 +1154,6 @@ packages: exsolve@1.1.1: resolution: {integrity: sha512-9U/jZUgjnSGyntRr6y5Muu1MJcwFl6kPu7k8qLF0IMNfLqvw0NZ4nnVDq0RVoZ0RvCyumib4Ez3KYrVfilrw+g==} - fast-string-truncated-width@3.0.3: - resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} - - fast-string-width@3.0.2: - resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} - - fast-wrap-ansi@0.2.2: - resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} - fdir@6.4.2: resolution: {integrity: sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ==} peerDependencies: @@ -1336,10 +1215,6 @@ packages: hookable@5.5.3: resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==} - human-id@4.2.0: - resolution: {integrity: sha512-K3GbkIWqyvvlpfhBPlbEvD97TtqBpAYA4kt+cn2lD2x2HuohzZCibcA2nOlnJT6exqvJLggoB5nv2dNf192nEA==} - hasBin: true - import-meta-resolve@4.2.0: resolution: {integrity: sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==} @@ -1366,9 +1241,6 @@ packages: resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} hasBin: true - jju@1.4.0: - resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} - js-tokens@10.0.0: resolution: {integrity: sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==} @@ -1382,15 +1254,9 @@ packages: engines: {node: '>=6'} hasBin: true - jsonc-parser@3.3.1: - resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} - knitwork@1.3.0: resolution: {integrity: sha512-4LqMNoONzR43B1W0ek0fhXMsDNW/zxa1NdFAVMY+k28pgZLovR4G3PB5MrpTxCy1QaZCqNoiaKPr5w5qZHfSNw==} - launch-editor@2.14.2: - resolution: {integrity: sha512-NHJEb30MGBCkmZXLZwz25t37QR4aY03ZzPYUJXOJaOa92uWwExI9SBQUuIznBYc1xkD7cJNGX7oc3Nl3sq2kQQ==} - lilconfig@3.1.3: resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} engines: {node: '>=14'} @@ -1457,9 +1323,6 @@ packages: resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==} engines: {node: '>=12.20.0'} - package-manager-detector@1.9.0: - resolution: {integrity: sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA==} - parents@1.0.1: resolution: {integrity: sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==} @@ -1701,13 +1564,6 @@ packages: engines: {node: '>=10'} hasBin: true - shell-quote@1.12.0: - resolution: {integrity: sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q==} - engines: {node: '>= 0.4'} - - sisteransi@1.0.5: - resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} - source-map-js@1.2.1: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} @@ -1731,10 +1587,6 @@ packages: engines: {node: '>=16'} hasBin: true - tinyexec@1.3.1: - resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} - engines: {node: '>=18'} - tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} @@ -1783,11 +1635,6 @@ packages: resolution: {integrity: sha512-u4J1hr6Y+C/hit34GwL3eIcUf3wngT8TlYUjK7tk0jxydKLAq3sYvifjdTDA6U3KCKRcQCQDGf/srjxfZF3l7g==} engines: {node: '>=18.12.0'} - yaml@2.9.1: - resolution: {integrity: sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==} - engines: {node: '>= 14.6'} - hasBin: true - snapshots: '@babel/code-frame@8.0.6': @@ -1895,128 +1742,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@changesets/apply-release-plan@8.1.1': - dependencies: - '@changesets/config': 4.0.1 - '@changesets/format': 0.1.3 - '@changesets/git': 4.0.1 - '@changesets/should-skip-package': 1.0.0 - '@changesets/types': 7.0.0 - import-meta-resolve: 4.2.0 - jsonc-parser: 3.3.1 - semver: 7.8.5 - - '@changesets/assemble-release-plan@7.0.0': - dependencies: - '@changesets/errors': 1.0.0 - '@changesets/get-dependents-graph': 3.0.0 - '@changesets/should-skip-package': 1.0.0 - '@changesets/types': 7.0.0 - semver: 7.8.5 - - '@changesets/changelog-git@1.0.0': - dependencies: - '@changesets/types': 7.0.0 - - '@changesets/cli@3.0.3': - dependencies: - '@changesets/apply-release-plan': 8.1.1 - '@changesets/assemble-release-plan': 7.0.0 - '@changesets/changelog-git': 1.0.0 - '@changesets/config': 4.0.1 - '@changesets/errors': 1.0.0 - '@changesets/get-dependents-graph': 3.0.0 - '@changesets/git': 4.0.1 - '@changesets/pre': 3.0.0 - '@changesets/read': 1.0.1 - '@changesets/should-skip-package': 1.0.0 - '@changesets/types': 7.0.0 - '@changesets/write': 1.0.1 - '@clack/prompts': 1.8.1 - '@manypkg/get-packages': 3.1.0 - '@pnpm/deps.graph-sequencer': 1100.0.1 - cac: 7.1.0 - import-meta-resolve: 4.2.0 - launch-editor: 2.14.2 - package-manager-detector: 1.9.0 - semver: 7.8.5 - tinyexec: 1.3.1 - - '@changesets/config@4.0.1': - dependencies: - '@changesets/get-dependents-graph': 3.0.0 - '@changesets/should-skip-package': 1.0.0 - '@changesets/types': 7.0.0 - '@manypkg/get-packages': 3.1.0 - picomatch: 4.0.7 - - '@changesets/errors@1.0.0': {} - - '@changesets/format@0.1.3': - dependencies: - package-manager-detector: 1.9.0 - tinyexec: 1.3.1 - - '@changesets/get-dependents-graph@3.0.0': - dependencies: - '@changesets/types': 7.0.0 - semver: 7.8.5 - - '@changesets/get-github-info@1.0.0-next.3': - dependencies: - dataloader: 2.2.3 - - '@changesets/git@4.0.1': - dependencies: - '@changesets/errors': 1.0.0 - '@changesets/types': 7.0.0 - '@manypkg/get-packages': 3.1.0 - picomatch: 4.0.7 - tinyexec: 1.3.1 - - '@changesets/parse@1.0.0': - dependencies: - '@changesets/types': 7.0.0 - yaml: 2.9.1 - - '@changesets/pre@3.0.0': - dependencies: - '@changesets/errors': 1.0.0 - '@changesets/types': 7.0.0 - '@manypkg/get-packages': 3.1.0 - - '@changesets/read@1.0.1': - dependencies: - '@changesets/git': 4.0.1 - '@changesets/parse': 1.0.0 - '@changesets/types': 7.0.0 - - '@changesets/should-skip-package@1.0.0': - dependencies: - '@changesets/types': 7.0.0 - - '@changesets/types@6.1.0': {} - - '@changesets/types@7.0.0': {} - - '@changesets/write@1.0.1': - dependencies: - '@changesets/format': 0.1.3 - '@changesets/types': 7.0.0 - human-id: 4.2.0 - - '@clack/core@1.5.1': - dependencies: - fast-wrap-ansi: 0.2.2 - sisteransi: 1.0.5 - - '@clack/prompts@1.8.1': - dependencies: - '@clack/core': 1.5.1 - fast-string-width: 3.0.2 - fast-wrap-ansi: 0.2.2 - sisteransi: 1.0.5 - '@colordx/core@5.5.0': {} '@esbuild/aix-ppc64@0.25.12': @@ -2203,29 +1928,6 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.6.0 - '@livekit/changesets-changelog-github@0.2.0': - dependencies: - '@changesets/get-github-info': 1.0.0-next.3 - '@changesets/types': 6.1.0 - dotenv: 8.6.0 - - '@manypkg/find-root@3.1.0': - dependencies: - '@manypkg/tools': 2.1.2 - - '@manypkg/get-packages@3.1.0': - dependencies: - '@manypkg/find-root': 3.1.0 - '@manypkg/tools': 2.1.2 - - '@manypkg/tools@2.1.2': - dependencies: - jju: 1.4.0 - tinyglobby: 0.2.17 - yaml: 2.9.1 - - '@pnpm/deps.graph-sequencer@1100.0.1': {} - '@rollup/plugin-alias@5.1.1(rollup@4.62.3)': optionalDependencies: rollup: 4.62.3 @@ -2464,8 +2166,6 @@ snapshots: node-releases: 2.0.51 update-browserslist-db: 1.2.3(browserslist@4.28.7) - cac@7.1.0: {} - caniuse-api@3.0.0: dependencies: browserslist: 4.28.7 @@ -2578,8 +2278,6 @@ snapshots: dependencies: css-tree: 2.2.1 - dataloader@2.2.3: {} - debug@4.4.3(supports-color@7.2.0): dependencies: ms: 2.1.3 @@ -2608,8 +2306,6 @@ snapshots: domelementtype: 2.3.0 domhandler: 5.0.3 - dotenv@8.6.0: {} - ejs@3.1.10: dependencies: jake: 10.9.2 @@ -2684,16 +2380,6 @@ snapshots: exsolve@1.1.1: {} - fast-string-truncated-width@3.0.3: {} - - fast-string-width@3.0.2: - dependencies: - fast-string-truncated-width: 3.0.3 - - fast-wrap-ansi@0.2.2: - dependencies: - fast-string-width: 3.0.2 - fdir@6.4.2(picomatch@4.0.7): optionalDependencies: picomatch: 4.0.7 @@ -2741,8 +2427,6 @@ snapshots: hookable@5.5.3: {} - human-id@4.2.0: {} - import-meta-resolve@4.2.0: {} is-core-module@2.15.1: @@ -2766,23 +2450,14 @@ snapshots: jiti@2.7.0: {} - jju@1.4.0: {} - js-tokens@10.0.0: {} jsesc@3.1.0: {} json5@2.2.3: {} - jsonc-parser@3.3.1: {} - knitwork@1.3.0: {} - launch-editor@2.14.2: - dependencies: - picocolors: 1.1.1 - shell-quote: 1.12.0 - lilconfig@3.1.3: {} lodash.memoize@4.1.2: {} @@ -2839,8 +2514,6 @@ snapshots: obug@3.0.0: {} - package-manager-detector@1.9.0: {} - parents@1.0.1: dependencies: path-platform: 0.11.15 @@ -3093,10 +2766,6 @@ snapshots: semver@7.8.5: {} - shell-quote@1.12.0: {} - - sisteransi@1.0.5: {} - source-map-js@1.2.1: {} stylehacks@7.0.11(postcss@8.5.25): @@ -3121,8 +2790,6 @@ snapshots: picocolors: 1.1.1 sax: 1.6.1 - tinyexec@1.3.1: {} - tinyglobby@0.2.17: dependencies: fdir: 6.5.0(picomatch@4.0.7) @@ -3209,5 +2876,3 @@ snapshots: util-deprecate@1.0.2: {} verkit@0.5.0: {} - - yaml@2.9.1: {} diff --git a/verwalter.toml b/verwalter.toml new file mode 100644 index 000000000..a544b448f --- /dev/null +++ b/verwalter.toml @@ -0,0 +1,18 @@ +#:schema https://raw.githubusercontent.com/livekit/verwalter/main/schemas/v1.json + +[versioning] +fixed = [["github.com/livekit/protocol", "@livekit/protocol"]] + +# The Go module. The tag v is the Go release, with no GitHub +# release, as before. The root package.json keeps carrying the version. +[packages."github.com/livekit/protocol"] +path = "." +versioning.files = ["go.mod", "package.json"] +release.mode = "tag" +publish.registry = "goproxy" + +[packages."@livekit/protocol"] +path = "packages/javascript" +versioning.files = ["package.json"] +release.tag = "{package}@{version}" +publish.registry = "npm"