@vivero/stoma-core 0.1.0-rc.1 → 0.1.0-rc.4

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 +76 -0
  2. package/package.json +2 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,76 @@
1
+ # @vivero/stoma-core
2
+
3
+ ## 0.1.0-rc.4
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [`cd6bd3a`](https://github.com/vivero-dev/stoma/commit/cd6bd3a619bc30c3369cd9e5546c6ceed537ceaa) Thanks [@JonathanBennett](https://github.com/JonathanBennett)! - ### @vivero/stoma
9
+
10
+ **Exports & TypeDoc**
11
+
12
+ - Export missing config types from the barrel: `MockConfig`, `ProxyPolicyConfig`, `ApiKeyAuthConfig`, `BasicAuthConfig`, `CorsConfig`, `RegexPatternRule`, `ValidationResult`, `ExtractClientIpOptions`, and `RequiredKeys`
13
+ - Export `ValidationResult` interface from the `request-validation` policy (was internal-only)
14
+ - Export `RequiredKeys` utility type from the SDK (marked `@internal`)
15
+ - Add `tsdoc.json` so TypeDoc recognises `@security` and `@module` block tags without warnings
16
+ - Fix broken `{@link Response}` reference in `errorToResponse` JSDoc (changed to inline code)
17
+ - Fix `{@link noopDebugLogger}` reference in `policyDebug` JSDoc (changed to prose)
18
+ - Update `README.md` architecture link from local `ARCHITECTURE.md` to the docs site
19
+
20
+ **Examples**
21
+
22
+ - Fix all upstream targets to use the correct origin (`https://stoma.vivero.dev`) with explicit `rewritePath` functions — previously some examples pointed at a non-existent `/demo-api` path on the upstream
23
+ - Rework `basic/gateway.ts` to use a catch-all `/*` route with better inline documentation and playground-friendly paths
24
+ - Fix `route-scopes` example: rename `/projects/*` to `/products/*` to match the demo API
25
+ - Fix `shadow-release` example: add `rewritePath` for the primary upstream
26
+ - Fix `cache-resilience` and `webhook-firewall` examples with correct path rewrites
27
+ - Add biome suppression comments for legitimate `any` usage in the `cloudflare-worker` browser rendering example (no DOM lib available in the Workers TS config)
28
+
29
+ **Lint & Types**
30
+
31
+ - Suppress `noBannedTypes` lint warning on the `RequiredKeys` utility type (`{}` is intentional for optional-key detection)
32
+ - Suppress `noExplicitAny` in the merge config test (stub adapter in test)
33
+ - Bump wrangler dev dependency from `^4.65.0` to `^4.68.0`
34
+
35
+ ### @vivero/stoma-cli
36
+
37
+ - Reformat test assertions in `resolve-security.test.ts` and `wrap.test.ts` for consistency
38
+
39
+ ### Docs site
40
+
41
+ - Add `llms.txt` support with four endpoints: `/llms.txt` (index with section links), `/llms-full.txt` (complete docs), `/llms-small.txt` (abridged, no API reference), and `/llms/{section}.txt` (10 per-section pages)
42
+ - Add `robots.txt` with sitemap reference
43
+ - Restore the Node.js deployment guide (`deploy/node/index.mdx`) that went missing
44
+ - Fix OG image meta tags to use absolute URLs instead of relative paths
45
+ - Add `og:image:type` meta tag
46
+ - Fill in `site.webmanifest` name fields (`Stoma — Declarative API Gateway`)
47
+ - Move Monaco editor TS compiler config to `beforeMount` so diagnostics are correct on first load
48
+ - Suppress top-level await false-positive diagnostics (TS 1375 & 1378) in the playground editor
49
+ - Register `@security` as a custom TypeDoc block tag in `astro.config.mjs`
50
+
51
+ ## 0.1.0-rc.3
52
+ ### Patch Changes
53
+
54
+
55
+
56
+ - [`c6f0576`](https://github.com/vivero-dev/stoma/commit/c6f05763d6f2ba3e8a3c6845258d57e6f8c1d693) Thanks [@JonathanBennett](https://github.com/JonathanBennett)! - fix: resolve `workspace:*` protocols in published packages
57
+
58
+ Replaces `changeset publish` with a custom publish script (`scripts/publish.mjs`) that uses `yarn pack` to resolve `workspace:*` protocols and apply `publishConfig` overrides, then `npm publish <tarball>` for OIDC trusted publishing with provenance. The prepack/postpack workaround scripts have been removed.
59
+
60
+ ## 0.1.0-rc.2
61
+ ### Patch Changes
62
+
63
+
64
+
65
+ - [`c6f0576`](https://github.com/vivero-dev/stoma/commit/c6f05763d6f2ba3e8a3c6845258d57e6f8c1d693) Thanks [@JonathanBennett](https://github.com/JonathanBennett)! - fix: publish via `yarn npm publish` to correctly resolve `workspace:*` protocols
66
+
67
+ Replaces `changeset publish` (which used `npm publish <dir>` and never resolved workspace protocols) with a custom publish script that runs `yarn npm publish` from each package directory. Yarn natively handles `workspace:*` resolution and `publishConfig` field overrides, so the prepack/postpack workaround scripts have been removed.
68
+
69
+ ## 0.1.0-rc.1
70
+ ### Patch Changes
71
+
72
+
73
+
74
+ - [`a414008`](https://github.com/vivero-dev/stoma/commit/a41400882fbe51f9f5ac7f623dec52f0e2ca1dd6) Thanks [@JonathanBennett](https://github.com/JonathanBennett)! - Fix npm publish pipeline to correctly resolve workspace protocols and apply publishConfig overrides
75
+
76
+ Adds prepack/postpack lifecycle scripts that prepare package.json for `npm publish` by resolving `workspace:*` to real versions and applying `publishConfig` field overrides (main, types, exports, bin). This replaces the previous `@changesets/cli` yarn patch approach and restores compatibility with GitHub Actions OIDC tokens for npm authentication and provenance.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vivero/stoma-core",
3
- "version": "0.1.0-rc.1",
3
+ "version": "0.1.0-rc.4",
4
4
  "description": "Shared utilities for Stoma packages — debug logging, timing helpers, and common type guards.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -62,8 +62,6 @@
62
62
  }
63
63
  },
64
64
  "scripts": {
65
- "prepack": "node ../../scripts/resolve-workspace-deps.mjs",
66
- "postpack": "node ../../scripts/resolve-workspace-deps.mjs --restore",
67
65
  "build": "tsup",
68
66
  "typecheck": "tsc --noEmit"
69
67
  },
@@ -71,4 +69,4 @@
71
69
  "tsup": "^8.5.1",
72
70
  "typescript": "^5.9.3"
73
71
  }
74
- }
72
+ }