Commit Graph

76 Commits

Author SHA1 Message Date
Cotton Hou
4f92c63702 fix(auth): secureCompare to reuse constantTimeEqual from @oslojs/crypto (#180) 2026-04-03 20:00:51 +01:00
Matt Kane
d3cf93f171 ci: add /format comment command for PRs (#195) 2026-04-03 19:45:21 +01:00
Matt Kane
73b5a787b8 fix: use Node 24 for release workflow to get npm OIDC support (#165)
Node 22 ships npm 10.x which doesn't support trusted publishing via
OIDC (requires npm 11.5.1+). Node 24 bundles it natively, removing the
need for the `npm install -g npm@latest` step which was failing with a
`Cannot find module 'promise-retry'` error due to npm corrupting itself
during self-upgrade.
2026-04-03 09:14:45 +01:00
Casey Grzecka
403f728222 renames the Why EmDash content page to match the slug used in the astro config (#123)
Co-authored-by: Matt Kane <mkane@cloudflare.com>
2026-04-02 21:46:15 +01:00
Matt Kane
fd8f44cd24 chore: add E2E rollup job and exempt emdashbot from PR compliance (#132)
Add a rollup job that gates on all 8 E2E shards so it can be a single
required check. Exempt emdashbot from PR template validation alongside
dependabot and renovate.
2026-04-02 20:23:10 +00:00
Matt Kane
b82a5fe7d6 fix: use GitHub App token for release workflow (#130)
GITHUB_TOKEN can't trigger CI on PRs it creates, so the changesets
release PR could never pass required checks. Use a GitHub App token
instead, which triggers workflows normally.

Also pins all actions to commit SHAs and uses frozen lockfile.
2026-04-02 21:10:51 +01:00
Matt Kane
ed5df8e453 Add PR template, issue templates, and contribution policy (#126)
* chore: add PR template, issue templates, and contribution policy

Drive-by feature PRs are becoming a problem. This adds guardrails:

- PR template with type selection, checklist, and AI disclosure
- Bug report issue template (structured YAML form)
- Issue config that redirects features to Discussions and disables blank issues
- PR compliance workflow that enforces template completion and requires
  a Discussion link for feature PRs
- Contribution policy in CONTRIBUTING.md (acceptance tiers, AI PR rules)
- Agent-facing rules in AGENTS.md (follow the template, no bulk changes)

* fornat
2026-04-02 21:02:10 +01:00
Matt Kane
953815969a fix(tests): use global hookTimeout for integration test beforeAll hooks (#125)
* fix(tests): remove explicit beforeAll timeouts that override global hookTimeout

Integration tests passed 60s timeouts to beforeAll, overriding the
120s hookTimeout in vitest.smoke.config.ts. On CI the dev server
startup can consume the full 60s, leaving no time for setup + seeding.

Also bumps createTestServer's default waitForServer timeout from 60s
to 90s, leaving 30s margin within the 120s hook budget.

* fix(tests): don't remove shared node_modules symlink during cleanup

Multiple integration test suites run concurrently and share the
fixture/node_modules symlink. When the suite that created it finishes
first, its cleanup deletes the symlink, causing other suites to fail
with MODULE_NOT_FOUND when their server process tries to resolve astro.

The symlink is gitignored so it's safe to leave in place.
2026-04-02 20:33:07 +01:00
Matt Kane
7924d54072 Playground interstitial (#16) 2026-04-02 18:32:52 +01:00
Matt Kane
61b73aeb01 fix: add explicit permissions to CLA workflow, drop PAT (#121) 2026-04-02 18:07:59 +01:00
Matt Kane
f2c10fc029 chore: add CLA Assistant workflow (#114) 2026-04-02 17:55:11 +01:00
Matt Kane
ecdfa08199 Merge pull request #105 from emdash-cms/fix/smoke-test-failures
fix: resolve smoke test failures -- CLI JSON output, port collision, stale DBs
2026-04-02 16:44:44 +01:00
Matt Kane
25a327baf2 fix: set hookTimeout for smoke tests to prevent beforeAll timeouts 2026-04-02 16:30:43 +01:00
Matt Kane
8e28cfc5d6 fix: resolve smoke test failures -- CLI JSON output, port collision, stale DBs 2026-04-02 15:30:36 +01:00
Matt ‘TK’ Taylor
01af46fb83 Merge pull request #42 from emdash-cms/fix/readme-dynamic-workers-note
Update README with Dynamic Worker Loaders note
2026-04-01 23:22:23 +01:00
Matt ‘TK’ Taylor
a69d529d08 Update README.md
Co-authored-by: Fred K. Schott <622227+FredKSchott@users.noreply.github.com>
2026-04-01 23:22:12 +01:00
Matt ‘TK’ Taylor
a9d3b9feae Update README with Dynamic Worker Loaders note
Added important note about Dynamic Worker Loaders dependency for sandboxed plugins.
2026-04-01 23:10:53 +01:00
Matt Kane
b4c8248f07 Merge pull request #24 from yanthomasdev/fix-shell-globs
Fix globs in package.json scripts
2026-04-01 20:04:24 +01:00
Yan
e868a60f06 Fix globs in package.json scripts 2026-04-01 15:29:23 -03:00
Matt Kane
0363bf3a4e Merge pull request #18 from delucis/patch-1
Fix broken README links
2026-04-01 17:34:50 +01:00
Matt Kane
273d934020 Merge pull request #17 from yanthomasdev/patch-1
Fix documentation link syntax
2026-04-01 17:34:11 +01:00
Chris Swithinbank
e957663308 Fix broken README links 2026-04-01 18:20:55 +02:00
Yan
06bb3cdb0e Fix documentation link syntax 2026-04-01 13:19:06 -03:00
Matt Kane
27c2c48937 Add license 2026-04-01 16:33:52 +01:00
Matt Kane
b0110e803a Merge pull request #13 from emdash-cms/changeset-release/main
ci: release
2026-04-01 16:17:43 +01:00
Matt Kane
53329df155 Format 2026-04-01 16:16:45 +01:00
Matt Kane
78019103e0 Fix wrangler.jsonc 2026-04-01 16:12:02 +01:00
Matt Kane
de70c72aa8 fix: set all plugin versions to 0.1.0 (not 1.0.0)
Changesets treats minor on 0.0.x as a major bump per semver convention.
All packages should be 0.1.0 for the first beta release.
2026-04-01 16:10:06 +01:00
github-actions[bot]
2463da9556 ci: release 2026-04-01 15:02:06 +00:00
Matt Kane
dad55bb80a Merge pull request #15 from emdash-cms/fix/changeset-config
fix: changeset config -- ignore private packages, reduce cascade to minor
2026-04-01 15:59:49 +01:00
Matt Kane
4413226dd8 chore: fix changeset config -- ignore private packages, reduce cascade to minor 2026-04-01 15:57:41 +01:00
Matt Kane
71f390c4f1 Merge pull request #14 from emdash-cms/fix/lint-and-test-cleanup
fix: resolve all lint warnings and fix failing playground toolbar test
2026-04-01 15:42:29 +01:00
Matt Kane
755b501790 chore: add minor changeset for first beta release 2026-04-01 15:37:30 +01:00
Matt Kane
c7d2401b8b fix: resolve all lint warnings and fix failing playground toolbar test
- Fix playground-toolbar test: URL changed to github.com but test still expected docs.emdashcms.com
- create-emdash: extract selectTemplate() to eliminate unsafe/unnecessary type assertions
- create-emdash: use type-safe Object.keys filter instead of bare cast
- cloudflare/cache: use Reflect.get with typeof guard instead of double type assertion
- x402/enforcer: replace unsafe request cast with Reflect.get type guards for CF bot management
- x402/middleware: suppress unavoidable virtual module any-cast with eslint comment
2026-04-01 15:35:06 +01:00
Matt Kane
15b4b3aae2 Merge pull request #12 from emdash-cms/fix/remove-bootstrap-step
fix(create-emdash): remove manual bootstrap step from CLI output
2026-04-01 15:26:08 +01:00
Matt Kane
ca398cc3f8 format 2026-04-01 15:25:41 +01:00
Matt Kane
9db4c2cba2 fix(create-emdash): remove manual bootstrap step from CLI output 2026-04-01 15:23:54 +01:00
Matt Kane
d282bca578 Merge pull request #11 from emdash-cms/marketplace-update
fix: update database_id in wrangler.jsonc and add README.md
2026-04-01 15:05:40 +01:00
Matt Kane
bc81ad2280 fix: update database_id in wrangler.jsonc and add README.md 2026-04-01 15:05:11 +01:00
Matt 'TK' Taylor
419c77c006 Update readme docs link 2026-04-01 14:51:03 +01:00
Matt Kane
a92f503b58 Merge pull request #10 from emdash-cms/changeset-release/main
ci: release
2026-04-01 14:33:18 +01:00
github-actions[bot]
144d7e488a ci: release 2026-04-01 13:28:55 +00:00
Matt Kane
0c6c66fe44 Merge pull request #7 from emdash-cms/fix/create-emdash-spinner
fix(create-emdash): fix spinner hanging during dep install
2026-04-01 14:24:28 +01:00
Matt Kane
025a8973e6 Merge pull request #8 from emdash-cms/fix/fresh-deploy-setup-redirect
fix: redirect to setup wizard on fresh deployments
2026-04-01 14:24:11 +01:00
Matt ‘TK’ Taylor
b5b79c182e Merge pull request #9 from emdash-cms/fix/playground-link
Fix playground toolbar link to point to repo
2026-04-01 14:18:19 +01:00
Matt Kane
3c319ed641 fix: redirect to setup wizard on fresh deployments when public page is first request
On a fresh CF deployment, if the first request hits a public page, the
middleware fast-path skips runtime init. Template helpers like
getSiteSettings() then query an empty database and crash with
'no such table: options'.

Add a one-time setup probe in the middleware fast-path: check if the
migrations table exists, and redirect to the setup wizard if not.
The check is cached for the worker lifetime after first success.

Also includes release workflow update to use GitHub App token and
admin branding changeset.
2026-04-01 14:14:05 +01:00
Matt 'TK' Taylor
0553848b66 Fix playground toolbar link to point to repo 2026-04-01 14:10:30 +01:00
Matt Kane
2022b77341 fix(create-emdash): use async exec so spinner animates during install 2026-04-01 13:45:04 +01:00
Matt Kane
4925c6014f Merge pull request #6 from emdash-cms/changeset-release/main
ci: release
2026-04-01 13:36:28 +01:00
github-actions[bot]
90e31e8e43 ci: release 2026-04-01 12:35:38 +00:00