2021-08-17 08:20:03 -07:00
|
|
|
|
2025-09-22 15:14:04 +01:00
|
|
|
|
2021-10-08 22:14:45 +01:00
|
|
|
|
2022-10-10 15:15:50 +01:00
|
|
|
|
2021-10-09 08:54:15 +01:00
|
|
|
|
2023-02-13 12:54:07 +00:00
|
|
|
|
2021-10-08 22:14:45 +01:00
|
|
|
|
2023-02-13 12:54:07 +00:00
|
|
|
|
2021-10-08 22:14:45 +01:00
|
|
|
|
2022-07-07 21:25:20 +01:00
|
|
|
|
|
|
|
|
|
2021-10-08 22:14:45 +01:00
|
|
|
|
2023-09-14 14:32:49 -05:00
|
|
|
|
2026-03-20 14:39:39 +00:00
|
|
|
|
|
|
|
|
|
2024-09-13 13:53:37 -04:00
|
|
|
|
Ensure consistent fixture package naming (#9378)
* tighten up turbo dependencies to avoid having to manually build
* test: ensure that fixture packages always start with `fixture-`
* refactor: consolidate fixture package names with consistent `fixture-` prefix
Updates all 63 fixture package names to use a consistent naming scheme with logical categorization:
- Core workers: fixture-worker-basic, fixture-worker-ai, fixture-worker-typescript, etc.
- Pages functions: fixture-pages-functions, fixture-pages-workerjs, etc.
- Database/storage: fixture-d1-basic, fixture-secrets-store, etc.
- Module handling: fixture-import-wasm, fixture-no-bundle-import, etc.
- Development tools: fixture-interactive-dev, fixture-local-mode, etc.
Also updates test files that reference specific fixture package names to maintain compatibility.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* add CI_OS env var to the check run to ensure correct turbo remote caching
* fixup! refactor: consolidate fixture package names with consistent `fixture-` prefix
* fixup! test: ensure that fixture packages always start with `fixture-`
* revert unnecessary change
---------
Co-authored-by: Claude <noreply@anthropic.com>
2025-05-28 13:08:48 +01:00
|
|
|
|
2026-03-18 16:03:35 +00:00
|
|
|
|
|
|
|
|
|
chore: add CI validation for external package dependencies (#11898)
* chore: add CI validation for external package dependencies
Add a validation check that ensures packages explicitly declare their
external (non-bundled) dependencies to prevent dependency chain poisoning.
- Add tools/deployments/validate-package-dependencies.ts validation script
- Add check:package-deps npm script and integrate into pnpm check
- Create scripts/deps.ts allowlists for packages with external dependencies:
- miniflare (12 deps)
- @cloudflare/vite-plugin (8 deps)
- @cloudflare/vitest-pool-workers (7 deps)
- @cloudflare/kv-asset-handler (1 dep)
- @cloudflare/workers-editor-shared (1 dep)
- Update CONTRIBUTING.md with documentation on managing dependencies
- Add unit tests for the validation logic (22 tests)
* fix(kv-asset-handler): bundle mime dependency instead of keeping it external
Move mime from dependencies to devDependencies so it gets bundled into
the distributable. This follows the project's practice of bundling
dependencies to prevent dependency chain poisoning.
* fix(miniflare): bundle acorn and acorn-walk dependencies
Move acorn and acorn-walk from dependencies to devDependencies so they
get bundled into the distributable. These are pure JavaScript parsing
libraries with no special runtime requirements, so they can be safely
bundled.
* chore: bundle more dependencies to reduce supply chain risk
Move 13 dependencies from dependencies to devDependencies so they get
bundled into the distributed packages rather than being installed as
transitive dependencies by users.
Packages updated:
- miniflare: bundle exit-hook, glob-to-regexp, stoppable, youch
- @cloudflare/vitest-pool-workers: bundle birpc, devalue, get-port, semver
- @cloudflare/vite-plugin: bundle @remix-run/node-fetch-server, defu,
get-port, picocolors, tinyglobby
Also updates the EXTERNAL_DEPENDENCIES comments to explain WHY each
remaining dependency cannot be bundled (native binaries, optional native
bindings, runtime resolution needs) rather than just describing how
they are used.
* fix(vitest-pool-workers): bundle dependencies that were moved to devDependencies
* chore: add changeset for dependency bundling
* fixup: remove unnecessary stuff from CONTRIBUTING
2026-01-14 21:11:35 +00:00
|
|
|
|
2025-09-22 15:14:04 +01:00
|
|
|
|
2023-09-14 14:32:49 -05:00
|
|
|
|
2026-03-11 16:24:33 +00:00
|
|
|
|
2023-09-14 14:32:49 -05:00
|
|
|
|
2026-03-18 16:03:35 +00:00
|
|
|
|
|
|
|
|
|
2025-02-19 13:00:37 +00:00
|
|
|
|
2024-05-24 12:10:07 +01:00
|
|
|
|
2024-07-05 15:06:05 +01:00
|
|
|
|
2025-07-01 09:39:31 +01:00
|
|
|
|
|
|
|
|
|
2023-06-12 12:57:01 -05:00
|
|
|
|
2024-06-21 15:11:52 +01:00
|
|
|
|
2022-11-28 21:26:53 +00:00
|
|
|
|
2022-07-07 21:25:20 +01:00
|
|
|
|
2024-02-27 11:28:18 +00:00
|
|
|
|
2025-11-20 18:47:45 +00:00
|
|
|
|
|
|
|
|
|
2025-02-17 20:26:10 +00:00
|
|
|
|
2024-10-25 17:56:31 +01:00
|
|
|
|
2024-01-22 14:32:32 -06:00
|
|
|
|
2024-06-14 18:59:32 +01:00
|
|
|
|
2023-09-01 15:20:45 -05:00
|
|
|
|
2025-03-11 20:26:18 +00:00
|
|
|
|
2024-06-14 18:59:32 +01:00
|
|
|
|
2026-03-18 16:03:35 +00:00
|
|
|
|
2026-03-11 13:11:10 +00:00
|
|
|
|
2026-03-18 16:03:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-03-20 14:39:39 +00:00
|
|
|
|
2026-01-05 11:42:32 +01:00
|
|
|
|
2024-10-25 17:56:31 +01:00
|
|
|
|
2024-09-13 18:05:45 +01:00
|
|
|
|
2022-07-07 21:25:20 +01:00
|
|
|
|
|
|
|
|
|
2025-06-12 11:27:21 +01:00
|
|
|
|
2024-10-03 20:06:09 +02:00
|
|
|
|
2021-12-15 13:51:35 +00:00
|
|
|
|
|
|
|
|
|
2025-06-26 17:44:51 +01:00
|
|
|
|
2024-10-03 20:06:09 +02:00
|
|
|
|
2023-09-06 16:08:36 +01:00
|
|
|
|
2026-03-18 16:03:35 +00:00
|
|
|
|
2023-09-06 16:08:36 +01:00
|
|
|
|
2023-09-15 01:35:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-30 13:32:26 +00:00
|
|
|
|
2025-02-21 17:20:34 +01:00
|
|
|
|
2026-03-20 14:39:39 +00:00
|
|
|
|
2023-09-15 01:35:53 +01:00
|
|
|
|
2023-09-06 16:08:36 +01:00
|
|
|
|
2023-10-30 13:32:26 +00:00
|
|
|
|
2025-04-07 17:52:33 +01:00
|
|
|
|
2025-07-16 11:11:48 +01:00
|
|
|
|
2025-08-04 09:02:44 +01:00
|
|
|
|
Add Node.js 24 and 25 compatibility to the test suites for Miniflare, Wrangler, and vitest-pool-workers packages (#11858)
* test: fix Node 24/25 miniflare tests
Vite strips `//# sourceMappingURL=` comments from string literals during transformation,
which was causing the inline source map test to fail. This fix moves the worker script
with the inline source map to an external fixture file that is loaded at runtime,
bypassing Vite's transformation and allowing the test to work correctly on all Node.js versions.
* test: fix Node 25 wrangler tests by mocking undici globals
Extend the undici mock in vitest.setup.ts to also replace FormData,
Headers, Request, and Response with their global equivalents. This
allows MSW to properly intercept and parse requests in Node 25 where
native fetch/FormData classes differ from undici's implementations.
Also update FormData snapshot assertions in pages/deploy.test.ts to use
a new formDataToObject() helper that produces consistent output across
Node versions, since the internal representation of FormData varies.
* fix: patch buffer-equal-constant-time for Node 25 compatibility
Node 25 removed SlowBuffer from the buffer module (it was deprecated
in Node 24). The buffer-equal-constant-time package (last updated in
2013) accesses SlowBuffer.prototype without checking if it exists,
causing a crash.
This patch adds guards to check if SlowBuffer is defined before
accessing its prototype. The fix is backwards compatible with older
Node versions.
This is a transitive dependency through:
verdaccio -> @verdaccio/signature -> jsonwebtoken -> jws -> jwa -> buffer-equal-constant-time
* test: disable native webstorage for wrangler tests on Node 25+
Node 25 has native localStorage enabled by default, which conflicts with MSW.
Use a helper script to conditionally add --no-experimental-webstorage flag
to NODE_OPTIONS only on Node 25+, since this flag doesn't exist in Node 20-24.
2026-01-12 10:08:24 +00:00
|
|
|
|
2026-03-26 11:30:54 +00:00
|
|
|
|
|
|
|
|
|
2023-09-06 16:08:36 +01:00
|
|
|
|
2021-08-17 08:20:03 -07:00
|
|
|
|
|
|
|
|
|