@rolldown/browser 1.0.0-beta.55 → 1.0.0-beta.57

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.
Files changed (39) hide show
  1. package/dist/cli.mjs +7 -7
  2. package/dist/config.d.mts +1 -1
  3. package/dist/config.mjs +6 -6
  4. package/dist/{constructors-DoEj0CTZ.js → constructors-hZ5LHCkF.js} +1 -1
  5. package/dist/experimental-index.browser.mjs +30 -3
  6. package/dist/experimental-index.d.mts +31 -4
  7. package/dist/experimental-index.mjs +32 -5
  8. package/dist/experimental-runtime-types.d.ts +1 -1
  9. package/dist/filter-index.d.mts +3 -3
  10. package/dist/filter-index.mjs +123 -2
  11. package/dist/index.browser.mjs +2 -2
  12. package/dist/index.d.mts +3 -3
  13. package/dist/index.mjs +6 -6
  14. package/dist/{normalize-string-or-regex-dwgRHUz6.js → normalize-string-or-regex-DewaIpuo.js} +5 -3
  15. package/dist/parallel-plugin-worker.mjs +3 -3
  16. package/dist/parallel-plugin.d.mts +2 -2
  17. package/dist/parse-ast-index.d.mts +1 -1
  18. package/dist/parse-ast-index.mjs +1 -1
  19. package/dist/plugins-index.browser.mjs +2 -2
  20. package/dist/plugins-index.d.mts +3 -3
  21. package/dist/plugins-index.mjs +2 -2
  22. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  23. package/dist/{rolldown-build-7uuCodq1.js → rolldown-build-32P3iU2U.js} +44 -12
  24. package/dist/shared/{binding-r9j8jqRV.d.mts → binding-CDyF6W3D.d.mts} +13 -10
  25. package/dist/shared/{bindingify-input-options-nvXYfbt3.mjs → bindingify-input-options-CwdDrVAR.mjs} +34 -6
  26. package/dist/shared/composable-filters-C5qA4jo-.mjs +206 -0
  27. package/dist/shared/{constructors-G-fr57ib.d.mts → constructors-B0L_9ar3.d.mts} +2 -2
  28. package/dist/shared/{constructors-oU7W7sz4.mjs → constructors-Ch7pGFBC.mjs} +1 -1
  29. package/dist/shared/{define-config-Bwwa5Tc_.d.mts → define-config-Bho_aQn8.d.mts} +11 -5
  30. package/dist/shared/{load-config-DumfiMa-.mjs → load-config-DUtgyO78.mjs} +1 -1
  31. package/dist/shared/{logs-By66Jt-E.mjs → logs-DEfpOy5A.mjs} +4 -2
  32. package/dist/shared/{normalize-string-or-regex-FzNsMab1.mjs → normalize-string-or-regex-Dt2VqAqy.mjs} +2 -2
  33. package/dist/shared/{parse-ast-index-BZ4FJxMm.mjs → parse-ast-index-DZPue_kI.mjs} +10 -7
  34. package/dist/shared/{rolldown-CTRsCETA.mjs → rolldown-D1ymUD73.mjs} +1 -1
  35. package/dist/shared/{rolldown-build-D8oOi181.mjs → rolldown-build-rs9zb03O.mjs} +7 -6
  36. package/dist/shared/{utils-CMDrspre.d.mts → utils-B3dcnHc8.d.mts} +1 -1
  37. package/dist/shared/{watch-DDjo8C9u.mjs → watch-CbHTfwHk.mjs} +4 -4
  38. package/package.json +1 -1
  39. package/dist/shared/composable-filters-G1eqjHFo.mjs +0 -122
@@ -1,122 +0,0 @@
1
- //#region ../pluginutils/dist/composable-filters.js
2
- var And = class {
3
- kind;
4
- args;
5
- constructor(...args) {
6
- if (args.length === 0) throw new Error("`And` expects at least one operand");
7
- this.args = args;
8
- this.kind = "and";
9
- }
10
- };
11
- var Or = class {
12
- kind;
13
- args;
14
- constructor(...args) {
15
- if (args.length === 0) throw new Error("`Or` expects at least one operand");
16
- this.args = args;
17
- this.kind = "or";
18
- }
19
- };
20
- var Not = class {
21
- kind;
22
- expr;
23
- constructor(expr) {
24
- this.expr = expr;
25
- this.kind = "not";
26
- }
27
- };
28
- var Id = class {
29
- kind;
30
- pattern;
31
- params;
32
- constructor(pattern, params) {
33
- this.pattern = pattern;
34
- this.kind = "id";
35
- this.params = params ?? { cleanUrl: false };
36
- }
37
- };
38
- var ModuleType = class {
39
- kind;
40
- pattern;
41
- constructor(pattern) {
42
- this.pattern = pattern;
43
- this.kind = "moduleType";
44
- }
45
- };
46
- var Code = class {
47
- kind;
48
- pattern;
49
- constructor(expr) {
50
- this.pattern = expr;
51
- this.kind = "code";
52
- }
53
- };
54
- var Query = class {
55
- kind;
56
- key;
57
- pattern;
58
- constructor(key, pattern) {
59
- this.pattern = pattern;
60
- this.key = key;
61
- this.kind = "query";
62
- }
63
- };
64
- var Include = class {
65
- kind;
66
- expr;
67
- constructor(expr) {
68
- this.expr = expr;
69
- this.kind = "include";
70
- }
71
- };
72
- var Exclude = class {
73
- kind;
74
- expr;
75
- constructor(expr) {
76
- this.expr = expr;
77
- this.kind = "exclude";
78
- }
79
- };
80
- function and(...args) {
81
- return new And(...args);
82
- }
83
- function or(...args) {
84
- return new Or(...args);
85
- }
86
- function not(expr) {
87
- return new Not(expr);
88
- }
89
- function id(pattern, params) {
90
- return new Id(pattern, params);
91
- }
92
- function moduleType(pattern) {
93
- return new ModuleType(pattern);
94
- }
95
- function code(pattern) {
96
- return new Code(pattern);
97
- }
98
- function query(key, pattern) {
99
- return new Query(key, pattern);
100
- }
101
- function include(expr) {
102
- return new Include(expr);
103
- }
104
- function exclude(expr) {
105
- return new Exclude(expr);
106
- }
107
- /**
108
- * convert a queryObject to FilterExpression like
109
- * ```js
110
- * and(query(k1, v1), query(k2, v2))
111
- * ```
112
- * @param queryFilterObject The query filter object needs to be matched.
113
- * @returns a `And` FilterExpression
114
- */
115
- function queries(queryFilter) {
116
- return and(...Object.entries(queryFilter).map(([key, value]) => {
117
- return new Query(key, value);
118
- }));
119
- }
120
-
121
- //#endregion
122
- export { include as a, or as c, id as i, queries as l, code as n, moduleType as o, exclude as r, not as s, and as t, query as u };