@cloudflare/vite-plugin 1.63.2 → 1.64.0

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/dist/index.mjs CHANGED
@@ -50149,7 +50149,7 @@ function mapWorkerMetadataBindings(bindings) {
50149
50149
  }, {});
50150
50150
  }
50151
50151
  __name$6(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
50152
- var DEFAULT_COMPAT_DATE = "2026-10-06";
50152
+ var DEFAULT_COMPAT_DATE = "2026-10-12";
50153
50153
  function constructWranglerConfig(config$2) {
50154
50154
  const mappedBindings = mapWorkerMetadataBindings(config$2.bindings);
50155
50155
  const durableObjectClassNames = config$2.bindings.filter((binding) => binding.type === "durable_object_namespace" && binding.script_name === config$2.name).map((durableObject) => durableObject.class_name);
@@ -63026,6 +63026,10 @@ const ObservabilitySchema = strictObject({
63026
63026
  destinations: array(string()).optional()
63027
63027
  }).optional()
63028
63028
  });
63029
+ const AccessSchema = strictObject({ dev: strictObject({
63030
+ aud: string(),
63031
+ identity: record(string(), unknown()).optional()
63032
+ }).optional() });
63029
63033
  const PlacementSchema = union([
63030
63034
  strictObject({
63031
63035
  mode: _enum(["off", "smart"]),
@@ -63116,6 +63120,7 @@ const BaseWorkerSchema = strictObject({
63116
63120
  limits: LimitsSchema.optional(),
63117
63121
  logpush: boolean().optional(),
63118
63122
  observability: ObservabilitySchema.optional(),
63123
+ access: AccessSchema.optional(),
63119
63124
  workersDev: boolean().optional(),
63120
63125
  previewUrls: boolean().optional(),
63121
63126
  firstPartyWorker: boolean().optional(),
@@ -63430,6 +63435,7 @@ function convertTopLevel(config$2, result) {
63430
63435
  result.limits = limits;
63431
63436
  }
63432
63437
  if (config$2.observability !== void 0) result.observability = convertObservability(config$2.observability);
63438
+ if (config$2.access !== void 0) result.access = config$2.access;
63433
63439
  if (config$2.cache !== void 0) {
63434
63440
  const cache$2 = { enabled: config$2.cache.enabled };
63435
63441
  if (config$2.cache.crossVersionCache !== void 0) cache$2.cross_version_cache = config$2.cache.crossVersionCache;
@@ -73895,6 +73901,14 @@ const resolveExtensions = [
73895
73901
  ".cts",
73896
73902
  ".ctx"
73897
73903
  ];
73904
+ /**
73905
+ * Worker source maps are written to the Worker's build output rather than its
73906
+ * public assets, so emit them by default for readable stack traces. Users can
73907
+ * opt out with Vite's `build.sourcemap` or the Worker's `upload_source_maps`.
73908
+ */
73909
+ function getWorkerSourcemap(userConfig, environmentName, workerConfig) {
73910
+ return userConfig.environments?.[environmentName]?.build?.sourcemap ?? userConfig.build?.sourcemap ?? workerConfig.upload_source_maps ?? true;
73911
+ }
73898
73912
  function createCloudflareEnvironmentOptions({ workerConfig, userConfig, mode, environmentName, isEntryWorker, isParentEnvironment, hasNodeJsCompat: hasNodeJsCompat$1 }) {
73899
73913
  const rollupOptions = isParentEnvironment ? {
73900
73914
  input: { [MAIN_ENTRY_NAME]: VIRTUAL_WORKER_ENTRY },
@@ -73921,6 +73935,7 @@ function createCloudflareEnvironmentOptions({ workerConfig, userConfig, mode, en
73921
73935
  emitAssets: true,
73922
73936
  manifest: isEntryWorker,
73923
73937
  outDir: getOutputDirectory(userConfig, environmentName),
73938
+ sourcemap: getWorkerSourcemap(userConfig, environmentName, workerConfig),
73924
73939
  copyPublicDir: false,
73925
73940
  ssr: true,
73926
73941
  ...isRolldown ? { rolldownOptions: {
@@ -91805,7 +91820,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
91805
91820
  //#endregion
91806
91821
  //#region ../remote-bindings/dist/index.mjs
91807
91822
  var import_undici = require_undici();
91808
- var version$2 = "0.0.46";
91823
+ var version$2 = "0.0.47";
91809
91824
  var NoDefaultValueProvided = class extends UserError {
91810
91825
  constructor() {
91811
91826
  super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
@@ -1,7 +1,7 @@
1
1
  //#region package.json
2
2
  var package_default = {
3
3
  name: "@cloudflare/vite-plugin",
4
- version: "1.63.2",
4
+ version: "1.64.0",
5
5
  description: "Cloudflare plugin for Vite",
6
6
  keywords: [
7
7
  "cloudflare",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/vite-plugin",
3
- "version": "1.63.2",
3
+ "version": "1.64.0",
4
4
  "description": "Cloudflare plugin for Vite",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -41,11 +41,11 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "unenv": "2.0.0-rc.24",
44
- "workerd": "1.20261006.1",
44
+ "workerd": "1.20261012.1",
45
45
  "ws": "8.21.0",
46
46
  "@cloudflare/unenv-preset": "2.16.2",
47
- "wrangler": "4.150.0",
48
- "miniflare": "5.20261006.2-beta"
47
+ "wrangler": "4.151.0",
48
+ "miniflare": "5.20261012.0-beta"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@cloudflare/workers-types": "^5.20261006.1",
@@ -69,19 +69,19 @@
69
69
  "vite": "8.1.5",
70
70
  "vite-legacy": "npm:vite@7.1.12",
71
71
  "vitest": "4.1.0",
72
- "@cloudflare/build-output-utils": "0.9.1",
73
- "@cloudflare/config": "0.25.0",
74
- "@cloudflare/containers-shared": "0.21.6",
75
- "@cloudflare/remote-bindings": "0.0.46",
72
+ "@cloudflare/config": "0.26.0",
73
+ "@cloudflare/build-output-utils": "0.9.2",
74
+ "@cloudflare/containers-shared": "0.21.7",
76
75
  "@cloudflare/mock-npm-registry": "0.0.0",
77
- "@cloudflare/runtime-types": "0.1.10",
76
+ "@cloudflare/remote-bindings": "0.0.47",
77
+ "@cloudflare/runtime-types": "0.1.11",
78
78
  "@cloudflare/workers-shared": "0.20.1",
79
79
  "@cloudflare/workers-tsconfig": "0.0.0",
80
80
  "@cloudflare/workers-utils": "0.47.2"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "vite": "^6.1.0 || ^7.0.0 || ^8.0.0",
84
- "wrangler": "^4.150.0"
84
+ "wrangler": "^4.151.0"
85
85
  },
86
86
  "workers-sdk": {
87
87
  "prerelease": true