@async/db 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.1](https://github.com/async-framework/async-db/releases/tag/v0.2.1) - 2026-06-01
4
+
5
+ ### Fixed
6
+
7
+ - Made the tag release workflow retry-safe by skipping npm publish when the package version already exists, while still creating or updating the GitHub release asset.
8
+ - Updated release documentation to match the built `dist/` package allowlist, gated Release Please behavior, and manual/tag release flow.
9
+
3
10
  ## [0.2.0](https://github.com/async-framework/async-db/releases/tag/v0.2.0) - 2026-06-01
4
11
 
5
12
  ### Added
@@ -68,9 +68,9 @@ npm run db -- serve --cwd ./examples/basic
68
68
  `package.json` includes:
69
69
 
70
70
  ```txt
71
- src/**/*.js
72
- src/**/*.d.ts
73
- scripts
71
+ dist/**/*.js
72
+ dist/**/*.d.ts
73
+ !dist/**/*.test.js
74
74
  examples/*/README.md
75
75
  examples/*/example.json
76
76
  examples/*/package.json
@@ -130,11 +130,11 @@ The first check confirms the README stayed compact. The second highlights same-p
130
130
 
131
131
  Release pull requests and npm publication are handled by `.github/workflows/release.yml`.
132
132
 
133
- - Every push to `main` runs Release Please.
134
- - After `0.1.0`, Release Please opens or updates a release PR with the next version, `package.json`, `.release-please-manifest.json`, and `CHANGELOG.md`.
135
- - Merging a release PR creates the GitHub release.
136
- - When a Release Please release is created, the same workflow checks out the release commit, runs `npm run release:check`, packs the package, publishes `@async/db` to npm, and uploads the tarball to the GitHub release.
137
- - The first `0.1.0` release is seeded in `.release-please-manifest.json`; publish it by pushing the existing `v0.1.0` tag, or by running the `Release` workflow manually with `v0.1.0` after the tag exists.
133
+ - The Release Please job is opt-in behind the repository variable `RELEASE_PLEASE_CREATE_PR=true`. Keep it disabled when the organization blocks GitHub Actions from creating pull requests.
134
+ - When enabled, Release Please opens or updates a release PR with the next version, `package.json`, `.release-please-manifest.json`, and `CHANGELOG.md`.
135
+ - The tag path runs when a `v*.*.*` tag is pushed, or when the workflow is dispatched with an existing tag.
136
+ - The tag path validates that `package.json` matches the tag, runs `npm run release:check`, packs the package, publishes `@async/db` to npm when that exact version is not already present, creates the GitHub release if needed, and uploads the tarball.
137
+ - Rerunning a partially completed tag release is safe: if npm already has the package version, the workflow skips `npm publish` and still reconciles the GitHub release asset.
138
138
 
139
139
  The release workflow uses npm Trusted Publishing through GitHub Actions OIDC. Before the first automated publish, configure npm for:
140
140
 
@@ -153,16 +153,25 @@ npm publish --access public
153
153
 
154
154
  If Trusted Publishing is not configured yet, the release workflow can create the release PR and GitHub release, but npm publish will fail until npm trusts this repository and workflow.
155
155
 
156
- ## First Release
156
+ If Trusted Publishing is not configured and the npm publish step fails, publish manually from an npm account with `@async` scope write access, then rerun the tag workflow to reconcile the GitHub release:
157
157
 
158
- The first public package version is already recorded as `0.1.0` in `package.json`, `CHANGELOG.md`, and `.release-please-manifest.json`. After npm Trusted Publishing is configured:
158
+ ```bash
159
+ npm login --scope=@async --registry=https://registry.npmjs.org --auth-type=web
160
+ npm run release:check
161
+ npm pack
162
+ npm publish --access public async-db-<version>.tgz
163
+ ```
164
+
165
+ ## Tag Release
166
+
167
+ For a manual patch release, update `package.json`, `.release-please-manifest.json`, and `CHANGELOG.md`, then merge to `main` and tag the release commit:
159
168
 
160
169
  ```bash
161
- git tag v0.1.0
162
- git push origin v0.1.0
170
+ git tag v<version>
171
+ git push origin v<version>
163
172
  ```
164
173
 
165
- The tag publish path validates that the tag matches `package.json`, runs `npm run release:check`, publishes the tarball, creates the GitHub release if needed, and uploads the tarball as a release asset.
174
+ Use `NPM_CONFIG_USERCONFIG=/dev/null npm view @async/db version` when checking public npm visibility from this machine, because local npm user config may set conservative install cutoffs.
166
175
 
167
176
  ## Manual Release Checks
168
177
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@async/db",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "The Async data workflow package for fixtures, generated types, local APIs, runtime stores, and database-backed graduation.",
5
5
  "packageManager": "pnpm@10.20.0",
6
6
  "scripts": {