@rolldown/browser 1.0.0-beta.8-commit.a29b7fb → 1.0.0-beta.9

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.
@@ -3,7 +3,7 @@ import path from "pathe";
3
3
  import colors from "ansis";
4
4
 
5
5
  //#region package.json
6
- var version = "1.0.0-beta.8-commit.a29b7fb";
6
+ var version = "1.0.0-beta.9";
7
7
 
8
8
  //#endregion
9
9
  //#region src/builtin-plugin/utils.ts
@@ -39,8 +39,8 @@ function dynamicImportVarsPlugin(config) {
39
39
  function importGlobPlugin(config) {
40
40
  return new BuiltinPlugin("builtin:import-glob", config);
41
41
  }
42
- function reportPlugin(config) {
43
- return new BuiltinPlugin("builtin:report", config);
42
+ function reporterPlugin(config) {
43
+ return new BuiltinPlugin("builtin:reporter", config);
44
44
  }
45
45
  function manifestPlugin(config) {
46
46
  return new BuiltinPlugin("builtin:manifest", config);
@@ -91,6 +91,9 @@ function isolatedDeclarationPlugin(config) {
91
91
  function assetPlugin(config) {
92
92
  return new BuiltinPlugin("builtin:asset", config);
93
93
  }
94
+ function webWorkerPostPlugin() {
95
+ return new BuiltinPlugin("builtin:web-worker-post");
96
+ }
94
97
 
95
98
  //#endregion
96
99
  //#region src/utils/misc.ts
@@ -608,7 +611,7 @@ function getSortedPlugins(hookName, plugins) {
608
611
  }
609
612
 
610
613
  //#endregion
611
- //#region ../../node_modules/.pnpm/valibot@1.0.0_typescript@5.8.3/node_modules/valibot/dist/index.js
614
+ //#region ../../node_modules/.pnpm/valibot@1.1.0_typescript@5.8.3/node_modules/valibot/dist/index.js
612
615
  var store;
613
616
  /* @__NO_SIDE_EFFECTS__ */
614
617
  function getGlobalConfig(config2) {
@@ -661,8 +664,8 @@ function _addIssue(context, label, dataset, config2, other) {
661
664
  abortPipeEarly: config2.abortPipeEarly
662
665
  };
663
666
  const isSchema = context.kind === "schema";
664
- const message = other?.message ?? context.message ?? /* @__PURE__ */ getSpecificMessage(context.reference, issue.lang) ?? (isSchema ? /* @__PURE__ */ getSchemaMessage(issue.lang) : null) ?? config2.message ?? /* @__PURE__ */ getGlobalMessage(issue.lang);
665
- if (message !== void 0) issue.message = typeof message === "function" ? message(issue) : message;
667
+ const message2 = other?.message ?? context.message ?? /* @__PURE__ */ getSpecificMessage(context.reference, issue.lang) ?? (isSchema ? /* @__PURE__ */ getSchemaMessage(issue.lang) : null) ?? config2.message ?? /* @__PURE__ */ getGlobalMessage(issue.lang);
668
+ if (message2 !== void 0) issue.message = typeof message2 === "function" ? message2(issue) : message2;
666
669
  if (isSchema) dataset.typed = false;
667
670
  if (dataset.issues) dataset.issues.push(issue);
668
671
  else dataset.issues = [issue];
@@ -804,7 +807,7 @@ function any() {
804
807
  };
805
808
  }
806
809
  /* @__NO_SIDE_EFFECTS__ */
807
- function array(item, message) {
810
+ function array(item, message2) {
808
811
  return {
809
812
  kind: "schema",
810
813
  type: "array",
@@ -812,7 +815,7 @@ function array(item, message) {
812
815
  expects: "Array",
813
816
  async: false,
814
817
  item,
815
- message,
818
+ message: message2,
816
819
  get "~standard"() {
817
820
  return /* @__PURE__ */ _getStandardProps(this);
818
821
  },
@@ -852,14 +855,14 @@ function array(item, message) {
852
855
  };
853
856
  }
854
857
  /* @__NO_SIDE_EFFECTS__ */
855
- function boolean(message) {
858
+ function boolean(message2) {
856
859
  return {
857
860
  kind: "schema",
858
861
  type: "boolean",
859
862
  reference: boolean,
860
863
  expects: "boolean",
861
864
  async: false,
862
- message,
865
+ message: message2,
863
866
  get "~standard"() {
864
867
  return /* @__PURE__ */ _getStandardProps(this);
865
868
  },
@@ -871,7 +874,7 @@ function boolean(message) {
871
874
  };
872
875
  }
873
876
  /* @__NO_SIDE_EFFECTS__ */
874
- function custom(check2, message) {
877
+ function custom(check2, message2) {
875
878
  return {
876
879
  kind: "schema",
877
880
  type: "custom",
@@ -879,7 +882,7 @@ function custom(check2, message) {
879
882
  expects: "unknown",
880
883
  async: false,
881
884
  check: check2,
882
- message,
885
+ message: message2,
883
886
  get "~standard"() {
884
887
  return /* @__PURE__ */ _getStandardProps(this);
885
888
  },
@@ -891,14 +894,14 @@ function custom(check2, message) {
891
894
  };
892
895
  }
893
896
  /* @__NO_SIDE_EFFECTS__ */
894
- function function_(message) {
897
+ function function_(message2) {
895
898
  return {
896
899
  kind: "schema",
897
900
  type: "function",
898
901
  reference: function_,
899
902
  expects: "Function",
900
903
  async: false,
901
- message,
904
+ message: message2,
902
905
  get "~standard"() {
903
906
  return /* @__PURE__ */ _getStandardProps(this);
904
907
  },
@@ -910,7 +913,7 @@ function function_(message) {
910
913
  };
911
914
  }
912
915
  /* @__NO_SIDE_EFFECTS__ */
913
- function instance(class_, message) {
916
+ function instance(class_, message2) {
914
917
  return {
915
918
  kind: "schema",
916
919
  type: "instance",
@@ -918,7 +921,7 @@ function instance(class_, message) {
918
921
  expects: class_.name,
919
922
  async: false,
920
923
  class: class_,
921
- message,
924
+ message: message2,
922
925
  get "~standard"() {
923
926
  return /* @__PURE__ */ _getStandardProps(this);
924
927
  },
@@ -930,7 +933,7 @@ function instance(class_, message) {
930
933
  };
931
934
  }
932
935
  /* @__NO_SIDE_EFFECTS__ */
933
- function literal(literal_, message) {
936
+ function literal(literal_, message2) {
934
937
  return {
935
938
  kind: "schema",
936
939
  type: "literal",
@@ -938,7 +941,7 @@ function literal(literal_, message) {
938
941
  expects: /* @__PURE__ */ _stringify(literal_),
939
942
  async: false,
940
943
  literal: literal_,
941
- message,
944
+ message: message2,
942
945
  get "~standard"() {
943
946
  return /* @__PURE__ */ _getStandardProps(this);
944
947
  },
@@ -950,15 +953,15 @@ function literal(literal_, message) {
950
953
  };
951
954
  }
952
955
  /* @__NO_SIDE_EFFECTS__ */
953
- function looseObject(entries, message) {
956
+ function looseObject(entries2, message2) {
954
957
  return {
955
958
  kind: "schema",
956
959
  type: "loose_object",
957
960
  reference: looseObject,
958
961
  expects: "Object",
959
962
  async: false,
960
- entries,
961
- message,
963
+ entries: entries2,
964
+ message: message2,
962
965
  get "~standard"() {
963
966
  return /* @__PURE__ */ _getStandardProps(this);
964
967
  },
@@ -1018,14 +1021,14 @@ function looseObject(entries, message) {
1018
1021
  };
1019
1022
  }
1020
1023
  /* @__NO_SIDE_EFFECTS__ */
1021
- function never(message) {
1024
+ function never(message2) {
1022
1025
  return {
1023
1026
  kind: "schema",
1024
1027
  type: "never",
1025
1028
  reference: never,
1026
1029
  expects: "never",
1027
1030
  async: false,
1028
- message,
1031
+ message: message2,
1029
1032
  get "~standard"() {
1030
1033
  return /* @__PURE__ */ _getStandardProps(this);
1031
1034
  },
@@ -1061,14 +1064,14 @@ function nullish(wrapped, default_) {
1061
1064
  };
1062
1065
  }
1063
1066
  /* @__NO_SIDE_EFFECTS__ */
1064
- function number(message) {
1067
+ function number(message2) {
1065
1068
  return {
1066
1069
  kind: "schema",
1067
1070
  type: "number",
1068
1071
  reference: number,
1069
1072
  expects: "number",
1070
1073
  async: false,
1071
- message,
1074
+ message: message2,
1072
1075
  get "~standard"() {
1073
1076
  return /* @__PURE__ */ _getStandardProps(this);
1074
1077
  },
@@ -1080,15 +1083,15 @@ function number(message) {
1080
1083
  };
1081
1084
  }
1082
1085
  /* @__NO_SIDE_EFFECTS__ */
1083
- function object(entries, message) {
1086
+ function object(entries2, message2) {
1084
1087
  return {
1085
1088
  kind: "schema",
1086
1089
  type: "object",
1087
1090
  reference: object,
1088
1091
  expects: "Object",
1089
1092
  async: false,
1090
- entries,
1091
- message,
1093
+ entries: entries2,
1094
+ message: message2,
1092
1095
  get "~standard"() {
1093
1096
  return /* @__PURE__ */ _getStandardProps(this);
1094
1097
  },
@@ -1170,14 +1173,14 @@ function optional(wrapped, default_) {
1170
1173
  };
1171
1174
  }
1172
1175
  /* @__NO_SIDE_EFFECTS__ */
1173
- function promise(message) {
1176
+ function promise(message2) {
1174
1177
  return {
1175
1178
  kind: "schema",
1176
1179
  type: "promise",
1177
1180
  reference: promise,
1178
1181
  expects: "Promise",
1179
1182
  async: false,
1180
- message,
1183
+ message: message2,
1181
1184
  get "~standard"() {
1182
1185
  return /* @__PURE__ */ _getStandardProps(this);
1183
1186
  },
@@ -1189,7 +1192,7 @@ function promise(message) {
1189
1192
  };
1190
1193
  }
1191
1194
  /* @__NO_SIDE_EFFECTS__ */
1192
- function record(key, value2, message) {
1195
+ function record(key, value2, message2) {
1193
1196
  return {
1194
1197
  kind: "schema",
1195
1198
  type: "record",
@@ -1198,7 +1201,7 @@ function record(key, value2, message) {
1198
1201
  async: false,
1199
1202
  key,
1200
1203
  value: value2,
1201
- message,
1204
+ message: message2,
1202
1205
  get "~standard"() {
1203
1206
  return /* @__PURE__ */ _getStandardProps(this);
1204
1207
  },
@@ -1257,15 +1260,15 @@ function record(key, value2, message) {
1257
1260
  };
1258
1261
  }
1259
1262
  /* @__NO_SIDE_EFFECTS__ */
1260
- function strictObject(entries, message) {
1263
+ function strictObject(entries2, message2) {
1261
1264
  return {
1262
1265
  kind: "schema",
1263
1266
  type: "strict_object",
1264
1267
  reference: strictObject,
1265
1268
  expects: "Object",
1266
1269
  async: false,
1267
- entries,
1268
- message,
1270
+ entries: entries2,
1271
+ message: message2,
1269
1272
  get "~standard"() {
1270
1273
  return /* @__PURE__ */ _getStandardProps(this);
1271
1274
  },
@@ -1338,14 +1341,14 @@ function strictObject(entries, message) {
1338
1341
  };
1339
1342
  }
1340
1343
  /* @__NO_SIDE_EFFECTS__ */
1341
- function string(message) {
1344
+ function string(message2) {
1342
1345
  return {
1343
1346
  kind: "schema",
1344
1347
  type: "string",
1345
1348
  reference: string,
1346
1349
  expects: "string",
1347
1350
  async: false,
1348
- message,
1351
+ message: message2,
1349
1352
  get "~standard"() {
1350
1353
  return /* @__PURE__ */ _getStandardProps(this);
1351
1354
  },
@@ -1357,7 +1360,7 @@ function string(message) {
1357
1360
  };
1358
1361
  }
1359
1362
  /* @__NO_SIDE_EFFECTS__ */
1360
- function tuple(items, message) {
1363
+ function tuple(items, message2) {
1361
1364
  return {
1362
1365
  kind: "schema",
1363
1366
  type: "tuple",
@@ -1365,7 +1368,7 @@ function tuple(items, message) {
1365
1368
  expects: "Array",
1366
1369
  async: false,
1367
1370
  items,
1368
- message,
1371
+ message: message2,
1369
1372
  get "~standard"() {
1370
1373
  return /* @__PURE__ */ _getStandardProps(this);
1371
1374
  },
@@ -1412,7 +1415,7 @@ function _subIssues(datasets) {
1412
1415
  return issues;
1413
1416
  }
1414
1417
  /* @__NO_SIDE_EFFECTS__ */
1415
- function union(options, message) {
1418
+ function union(options, message2) {
1416
1419
  return {
1417
1420
  kind: "schema",
1418
1421
  type: "union",
@@ -1420,7 +1423,7 @@ function union(options, message) {
1420
1423
  expects: /* @__PURE__ */ _joinExpects(options.map((option) => option.expects), "|"),
1421
1424
  async: false,
1422
1425
  options,
1423
- message,
1426
+ message: message2,
1424
1427
  get "~standard"() {
1425
1428
  return /* @__PURE__ */ _getStandardProps(this);
1426
1429
  },
@@ -1451,7 +1454,7 @@ function union(options, message) {
1451
1454
  };
1452
1455
  }
1453
1456
  /* @__NO_SIDE_EFFECTS__ */
1454
- function unionAsync(options, message) {
1457
+ function unionAsync(options, message2) {
1455
1458
  return {
1456
1459
  kind: "schema",
1457
1460
  type: "union",
@@ -1459,7 +1462,7 @@ function unionAsync(options, message) {
1459
1462
  expects: /* @__PURE__ */ _joinExpects(options.map((option) => option.expects), "|"),
1460
1463
  async: true,
1461
1464
  options,
1462
- message,
1465
+ message: message2,
1463
1466
  get "~standard"() {
1464
1467
  return /* @__PURE__ */ _getStandardProps(this);
1465
1468
  },
@@ -1491,11 +1494,11 @@ function unionAsync(options, message) {
1491
1494
  }
1492
1495
  /* @__NO_SIDE_EFFECTS__ */
1493
1496
  function omit(schema, keys) {
1494
- const entries = { ...schema.entries };
1495
- for (const key of keys) delete entries[key];
1497
+ const entries2 = { ...schema.entries };
1498
+ for (const key of keys) delete entries2[key];
1496
1499
  return {
1497
1500
  ...schema,
1498
- entries,
1501
+ entries: entries2,
1499
1502
  get "~standard"() {
1500
1503
  return /* @__PURE__ */ _getStandardProps(this);
1501
1504
  }
@@ -2144,7 +2147,7 @@ function exclude(expr) {
2144
2147
  }
2145
2148
 
2146
2149
  //#endregion
2147
- //#region ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-D6FCK2GA.js
2150
+ //#region ../../node_modules/.pnpm/remeda@2.21.6/node_modules/remeda/dist/chunk-D6FCK2GA.js
2148
2151
  function u$1(o, n, a) {
2149
2152
  let t$1 = (r) => o(r, ...n);
2150
2153
  return a === void 0 ? t$1 : Object.assign(t$1, {
@@ -2154,7 +2157,7 @@ function u$1(o, n, a) {
2154
2157
  }
2155
2158
 
2156
2159
  //#endregion
2157
- //#region ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-WIMGWYZL.js
2160
+ //#region ../../node_modules/.pnpm/remeda@2.21.6/node_modules/remeda/dist/chunk-WIMGWYZL.js
2158
2161
  function u(r, n, o) {
2159
2162
  let a = r.length - n.length;
2160
2163
  if (a === 0) return r(...n);
@@ -2163,7 +2166,7 @@ function u(r, n, o) {
2163
2166
  }
2164
2167
 
2165
2168
  //#endregion
2166
- //#region ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-3IFJP4R5.js
2169
+ //#region ../../node_modules/.pnpm/remeda@2.21.6/node_modules/remeda/dist/chunk-3IFJP4R5.js
2167
2170
  function d(...r) {
2168
2171
  return u(i, r);
2169
2172
  }
@@ -2174,7 +2177,7 @@ var i = (r, t$1) => {
2174
2177
  };
2175
2178
 
2176
2179
  //#endregion
2177
- //#region ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-5NQBDF4H.js
2180
+ //#region ../../node_modules/.pnpm/remeda@2.21.6/node_modules/remeda/dist/chunk-5NQBDF4H.js
2178
2181
  function t(...n) {
2179
2182
  return u(Object.keys, n);
2180
2183
  }
@@ -4330,4 +4333,4 @@ function defineConfig(config) {
4330
4333
  const VERSION = version;
4331
4334
 
4332
4335
  //#endregion
4333
- export { BuiltinPlugin, VERSION, assetPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch };
4336
+ export { BuiltinPlugin, VERSION, assetPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolldown/browser",
3
- "version": "1.0.0-beta.8-commit.a29b7fb",
3
+ "version": "1.0.0-beta.9",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "homepage": "https://rolldown.rs/",
6
6
  "type": "module",