@crossdelta/platform-sdk 0.22.0 → 0.22.2
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 +30 -0
- package/bin/cli.mjs +110 -109
- package/bin/templates/workspace/.claude/rules/cloudevents.md +85 -0
- package/bin/templates/workspace/.github/README.md +67 -0
- package/bin/templates/workspace/.github/actions/check-image-tag-exists/action.yml +27 -0
- package/bin/templates/workspace/.github/actions/check-image-tag-exists/index.js +179 -0
- package/bin/templates/workspace/.github/actions/generate-scope-matrix/action.yml +21 -0
- package/bin/templates/workspace/.github/actions/generate-scope-matrix/index.js +370 -0
- package/bin/templates/workspace/.github/actions/prepare-build-context/action.yml +167 -0
- package/bin/templates/workspace/.github/actions/setup-bun-install/action.yml.hbs +57 -0
- package/bin/templates/workspace/.github/dependabot.yml +18 -0
- package/bin/templates/workspace/.github/workflows/build-and-deploy.yml.hbs +409 -0
- package/bin/templates/workspace/.github/workflows/lint-and-tests.yml.hbs +83 -0
- package/bin/templates/workspace/.github/workflows/publish-packages.yml +228 -0
- package/bin/templates/workspace/.vscode/extensions.json +8 -0
- package/bin/templates/workspace/.vscode/settings.json +20 -0
- package/bin/templates/workspace/apps/.gitkeep +0 -0
- package/bin/templates/workspace/docs/.gitkeep +0 -0
- package/bin/templates/workspace/infra/services/.gitkeep +0 -0
- package/bin/templates/workspace/packages/.gitkeep +0 -0
- package/bin/templates/workspace/services/.gitkeep +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,36 @@ All notable changes to `@crossdelta/platform-sdk` will be documented in this fil
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.22.2] - 2026-08-24
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **`pf dev` reported a missing `@crossdelta/infrastructure` as an unreadable module error and
|
|
12
|
+
carried on.** The package is a peer dependency, so neither `bun add -g` nor `npm i -g` installs it
|
|
13
|
+
with the CLI, and bun says nothing when it is absent. The failed `/streams` import was then
|
|
14
|
+
classified as recoverable, leaving the services to create the streams: they keep whatever shape
|
|
15
|
+
they already had, so a corrected contract subject never takes effect and its events are dropped
|
|
16
|
+
without an error. The failure now stops `pf dev` and names the package, the reason and the
|
|
17
|
+
install command.
|
|
18
|
+
|
|
19
|
+
The classification was reached through `instanceof Error`, which bun never satisfies for a failed
|
|
20
|
+
import: it rejects with a `ResolveMessage` carrying `message` and `code` but not extending
|
|
21
|
+
`Error`. Every bun-side resolution failure therefore took the "unknown, so recoverable" path.
|
|
22
|
+
Error inspection now reads a `message` off any thrown object.
|
|
23
|
+
|
|
24
|
+
## [0.22.1] - 2026-08-24
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
- **The published package carried an incomplete workspace template.** `actions/upload-artifact`
|
|
28
|
+
omits every path beginning with a dot unless `include-hidden-files` is set, and the publish job
|
|
29
|
+
ships whatever the artifact contained, so `.claude/`, `.github/` and `.vscode/` never reached npm.
|
|
30
|
+
`pf new workspace` from an installed copy aborted with
|
|
31
|
+
`ENOENT ... .github/workflows/lint-and-tests.yml.hbs`, while the same command run from a repo
|
|
32
|
+
checkout succeeded.
|
|
33
|
+
|
|
34
|
+
**Use this release rather than 0.22.0**, which is affected and cannot be replaced in place. The
|
|
35
|
+
loss is invisible in the build and publish logs, so the publish job now verifies that the shipped
|
|
36
|
+
template still carries its dotted directories.
|
|
37
|
+
|
|
8
38
|
## [0.22.0] - 2026-08-24
|
|
9
39
|
|
|
10
40
|
### Changed
|