async-browser-context 0.3.2 → 0.3.3

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +116 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change history
2
2
 
3
+ ## 0.3.3
4
+
5
+ This version changes no code of the package, so it is a patch version.
6
+
7
+ - CI starts the check of `@mark1russell7/conventions`. The settings of its rules are in `package.json`, with the reason of each exception.
8
+ - The typecheck examines the legacy tests and the Vitest configuration of mutation testing.
9
+
3
10
  ## 0.3.2
4
11
 
5
12
  This version fixes a bug, so it is a patch version.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "async-browser-context",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "AsyncLocalStorage and the TC39 AsyncContext API (Variable, Snapshot) for browsers. The context stays through await, promises, timers, events and generators. A Babel preset and a Vite plugin transform async functions. On Node.js, the package uses the native AsyncLocalStorage.",
5
5
  "license": "MIT",
6
6
  "author": "Mark Russell",
@@ -145,7 +145,8 @@
145
145
  }
146
146
  },
147
147
  "devDependencies": {
148
- "@mark1russell7/rigor-generators": "^0.1.8",
148
+ "@mark1russell7/conventions": "^0.53.2",
149
+ "@mark1russell7/rigor-generators": "^0.2.0",
149
150
  "@opentelemetry/api": "^1.9.1",
150
151
  "@stryker-mutator/core": "^10.0.0",
151
152
  "@swc/core": "^1.16.18",
@@ -161,6 +162,117 @@
161
162
  "vite": "^8.3.4",
162
163
  "vitest": "^5.0.3"
163
164
  },
165
+ "conventions": {
166
+ "rules": {
167
+ "no-console": {
168
+ "baseline": 2,
169
+ "failFrom": "2027-01-20",
170
+ "reason": "The sources of async-browser-context had 2 console calls on 2026-11-25: a warning in src/core/hooks.ts and an error in src/core/store.ts. The count only gets lower. Each console call fails from 2027-01-20. A diagnostic of the library goes to a log record of @mark1russell7/otel-ts."
171
+ },
172
+ "no-local-paths": {
173
+ "ignore": [
174
+ "test/vitest/test-files.test.ts",
175
+ "test/vitest/test-files.ts"
176
+ ],
177
+ "reason": "The 37 texts are fake home folders (/home/test, C:Users\test): the inputs of the tests of the path functions. They name no real user, so the exception stays."
178
+ },
179
+ "typed-scripts": {
180
+ "ignore": [
181
+ "site/src/debugger/scenarios/generators.scenario.js",
182
+ "site/src/debugger/scenarios/nested.scenario.js",
183
+ "site/src/debugger/scenarios/snapshot.scenario.js",
184
+ "site/src/debugger/scenarios/timers-and-events.scenario.js",
185
+ "site/src/debugger/scenarios/two-requests.scenario.js",
186
+ "site/src/debugger/scenarios/untransformed.scenario.js",
187
+ "stryker.config.mjs",
188
+ "test/babel/program.js",
189
+ "test/bundlers/fixture/build.mjs",
190
+ "test/bundlers/fixture/next-rule/next.config.mjs",
191
+ "test/bundlers/fixture/next/app/actions.js",
192
+ "test/bundlers/fixture/next/app/cached.js",
193
+ "test/bundlers/fixture/next/app/layout.js",
194
+ "test/bundlers/fixture/next/app/page.js",
195
+ "test/bundlers/fixture/next/babel.config.js",
196
+ "test/bundlers/fixture/next/next.config.mjs",
197
+ "test/fixtures/compiled-tsc-es2015.js",
198
+ "test/fixtures/untransformed-babel.js",
199
+ "test/fixtures/untransformed-tsc-es2015.js",
200
+ "test/fixtures/untransformed-tsc-es5.js",
201
+ "test/fixtures/untransformed.js",
202
+ "test/smoke/fixture/checks.js",
203
+ "test/smoke/fixture/fake-dependency/index.js",
204
+ "test/smoke/fixture/main.js",
205
+ "test/smoke/fixture/vite.config.js"
206
+ ],
207
+ "reason": "The 25 JavaScript files of 2026-11-25 stay JavaScript: fixtures of untransformed and compiled code, the apps of the bundler and smoke tests, the debugger scenarios that the site shows as JavaScript, and configs that a tool reads as JavaScript (stryker, next). The list only gets shorter, and a new JavaScript file fails."
208
+ },
209
+ "trust-policy": {
210
+ "ignore": [
211
+ "pnpm-workspace.yaml"
212
+ ],
213
+ "reason": "pnpm-workspace.yaml has no trustPolicy on 2026-11-25. A trust policy changes which versions an install takes, so it gets its own pull request with a full CI run. The end: a pull request that fixes the repository rules of the conventions check."
214
+ },
215
+ "cue-preset": {
216
+ "ignore": [
217
+ "site/tsconfig.json"
218
+ ],
219
+ "reason": "The site has its own tsconfig.json on 2026-11-25, not a preset of @mark1russell7/cue. The end: a pull request that fixes the repository rules of the conventions check."
220
+ },
221
+ "no-build-output": {
222
+ "ignore": [
223
+ "site/build/"
224
+ ],
225
+ "reason": "Git keeps 44 files of site/build/ on 2026-11-25. The end: a pull request that fixes the repository rules of the conventions check."
226
+ },
227
+ "api-report-script": {
228
+ "off": "The repository has no API report on 2026-11-25. The end: a pull request that fixes the repository rules of the conventions check."
229
+ },
230
+ "roadmap-parses": {
231
+ "ignore": [
232
+ ".github/site.json"
233
+ ],
234
+ "reason": ".github/site.json names no roadmap on 2026-11-25. The end: a pull request that fixes the repository rules of the conventions check."
235
+ },
236
+ "runner-budget": {
237
+ "ignore": [
238
+ ".github/workflows/ci.yml",
239
+ ".github/workflows/mutation.yml",
240
+ ".github/workflows/pages.yml",
241
+ ".github/workflows/security.yml"
242
+ ],
243
+ "reason": "On 2026-11-25 the matrices of ci.yml have no max-parallel, mutation.yml has no concurrency group, and three schedules start at another minute. The end: a pull request that moves ci.yml to reusable-ci.yml of the template, with the word of the owner for the change to the release path (release.yml calls ci.yml)."
244
+ },
245
+ "main-runs-finish": {
246
+ "ignore": [
247
+ ".github/workflows/ci.yml",
248
+ ".github/workflows/security.yml"
249
+ ],
250
+ "reason": "On 2026-11-25 the concurrency groups of ci.yml and security.yml end with the ref and cancel a run in progress. The end: a pull request that moves ci.yml to reusable-ci.yml of the template, with the word of the owner for the change to the release path (release.yml calls ci.yml)."
251
+ },
252
+ "push-main-only": {
253
+ "ignore": [
254
+ ".github/workflows/ci.yml"
255
+ ],
256
+ "reason": "On 2026-11-25 ci.yml starts on each push and has no workflow_dispatch. The end: a pull request that moves ci.yml to reusable-ci.yml of the template, with the word of the owner for the change to the release path (release.yml calls ci.yml)."
257
+ },
258
+ "playwright-install": {
259
+ "ignore": [
260
+ ".github/workflows/ci.yml",
261
+ ".github/site.json"
262
+ ],
263
+ "reason": "On 2026-11-25 ci.yml and the site build install the browsers with their own command. The end: a pull request that moves ci.yml to reusable-ci.yml of the template, with the word of the owner for the change to the release path (release.yml calls ci.yml)."
264
+ },
265
+ "pages-after-release": {
266
+ "ignore": [
267
+ ".github/workflows/pages.yml"
268
+ ],
269
+ "reason": "On 2026-11-25 pages.yml does not start after the workflow Release. The end: a pull request that moves ci.yml to reusable-ci.yml of the template, with the word of the owner for the change to the release path (release.yml calls ci.yml)."
270
+ },
271
+ "shared-ci": {
272
+ "off": "ci.yml runs its own jobs: the Node.js matrix, the browser tests, the smoke test, the bundlers, Babel, the site and the release check. release.yml calls ci.yml as its verify job. The end: a pull request that moves ci.yml to reusable-ci.yml of the template, with the word of the owner for the change to the release path (release.yml calls ci.yml)."
273
+ }
274
+ }
275
+ },
164
276
  "scripts": {
165
277
  "build": "tsc -p tsconfig.build.json",
166
278
  "typecheck": "tsc -p tsconfig.json",
@@ -182,6 +294,7 @@
182
294
  "readme:media": "tsx scripts/readme-media.ts",
183
295
  "test:bundlers": "pnpm build && tsx test/bundlers/run.ts",
184
296
  "bench:size": "tsx bench/size.ts",
185
- "bench:browsers": "tsx bench/browsers.ts"
297
+ "bench:browsers": "tsx bench/browsers.ts",
298
+ "check:conventions": "conventions check"
186
299
  }
187
300
  }