@bleedingdev/modern-js-create 3.5.0-ultramodern.36 → 3.5.0-ultramodern.37

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 (198) hide show
  1. package/README.md +11 -14
  2. package/dist/cjs/cli/flags.cjs +0 -31
  3. package/dist/cjs/cli/help.cjs +0 -1
  4. package/dist/cjs/cli/package-source.cjs +0 -3
  5. package/dist/cjs/cli/prompts.cjs +2 -20
  6. package/dist/cjs/index.cjs +0 -5
  7. package/dist/cjs/locale/en.cjs +2 -6
  8. package/dist/cjs/locale/zh.cjs +2 -6
  9. package/dist/cjs/ultramodern-package-source.cjs +0 -32
  10. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/declaration-patches.cjs +1 -0
  11. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-build-identity.cjs +1 -1
  12. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-modern-configs.cjs +1 -1
  13. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/package-cohort.cjs +5 -3
  14. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/pnpm-policy.cjs +3 -0
  15. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/pnpm-yaml.cjs +2 -8
  16. package/dist/cjs/ultramodern-tooling/commands/migrate-strict-effect/policy-constants.cjs +8 -0
  17. package/dist/cjs/ultramodern-workspace/add-vertical/plan.cjs +0 -12
  18. package/dist/cjs/ultramodern-workspace/add-vertical/preflight.cjs +2 -26
  19. package/dist/cjs/ultramodern-workspace/add-vertical/shell-files.cjs +1 -1
  20. package/dist/cjs/ultramodern-workspace/add-vertical/topology.cjs +6 -4
  21. package/dist/cjs/ultramodern-workspace/app-files.cjs +2 -23
  22. package/dist/cjs/ultramodern-workspace/contracts.cjs +25 -16
  23. package/dist/cjs/ultramodern-workspace/delivery-unit-sync.cjs +1 -1
  24. package/dist/cjs/ultramodern-workspace/demo-components.cjs +0 -3
  25. package/dist/cjs/ultramodern-workspace/fs-io.cjs +0 -33
  26. package/dist/cjs/ultramodern-workspace/locales.cjs +1 -14
  27. package/dist/cjs/ultramodern-workspace/mf-validation/inspect.cjs +2 -10
  28. package/dist/cjs/ultramodern-workspace/mf-validation/object-literal.cjs +2 -17
  29. package/dist/cjs/ultramodern-workspace/mf-validation/path-utils.cjs +0 -6
  30. package/dist/cjs/ultramodern-workspace/mf-validation/syntax.cjs +2 -29
  31. package/dist/cjs/ultramodern-workspace/mf-validation/validate.cjs +1 -1
  32. package/dist/cjs/ultramodern-workspace/module-federation/config.cjs +19 -8
  33. package/dist/cjs/ultramodern-workspace/module-federation/reexport-module.cjs +3 -2
  34. package/dist/cjs/ultramodern-workspace/naming.cjs +0 -6
  35. package/dist/cjs/ultramodern-workspace/package-json.cjs +5 -14
  36. package/dist/cjs/ultramodern-workspace/policy.cjs +0 -21
  37. package/dist/cjs/ultramodern-workspace/public-surface.cjs +0 -21
  38. package/dist/cjs/ultramodern-workspace/routes.cjs +0 -15
  39. package/dist/cjs/ultramodern-workspace/shared-patches.cjs +4 -3
  40. package/dist/cjs/ultramodern-workspace/tooling-command-catalog.cjs +2 -8
  41. package/dist/cjs/ultramodern-workspace/versions.cjs +25 -37
  42. package/dist/cjs/ultramodern-workspace/workspace-script-plan.cjs +2 -20
  43. package/dist/cjs/ultramodern-workspace/workspace-scripts.cjs +0 -21
  44. package/dist/cjs/ultramodern-workspace/write-app.cjs +3 -6
  45. package/dist/cjs/ultramodern-workspace/write-workspace.cjs +3 -5
  46. package/dist/esm/cli/flags.js +1 -11
  47. package/dist/esm/cli/help.js +0 -1
  48. package/dist/esm/cli/package-source.js +1 -1
  49. package/dist/esm/cli/prompts.js +2 -14
  50. package/dist/esm/index.js +2 -7
  51. package/dist/esm/locale/en.js +2 -6
  52. package/dist/esm/locale/zh.js +2 -6
  53. package/dist/esm/ultramodern-package-source.js +1 -24
  54. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/declaration-patches.js +2 -1
  55. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-build-identity.js +1 -1
  56. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-modern-configs.js +1 -1
  57. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/package-cohort.js +6 -4
  58. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/pnpm-policy.js +4 -1
  59. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/pnpm-yaml.js +1 -1
  60. package/dist/esm/ultramodern-tooling/commands/migrate-strict-effect/policy-constants.js +3 -1
  61. package/dist/esm/ultramodern-workspace/add-vertical/plan.js +1 -1
  62. package/dist/esm/ultramodern-workspace/add-vertical/preflight.js +1 -1
  63. package/dist/esm/ultramodern-workspace/add-vertical/shell-files.js +1 -1
  64. package/dist/esm/ultramodern-workspace/add-vertical/topology.js +6 -4
  65. package/dist/esm/ultramodern-workspace/app-files.js +1 -4
  66. package/dist/esm/ultramodern-workspace/contracts.js +25 -16
  67. package/dist/esm/ultramodern-workspace/delivery-unit-sync.js +1 -1
  68. package/dist/esm/ultramodern-workspace/demo-components.js +1 -1
  69. package/dist/esm/ultramodern-workspace/fs-io.js +1 -15
  70. package/dist/esm/ultramodern-workspace/locales.js +1 -1
  71. package/dist/esm/ultramodern-workspace/mf-validation/inspect.js +3 -2
  72. package/dist/esm/ultramodern-workspace/mf-validation/object-literal.js +1 -1
  73. package/dist/esm/ultramodern-workspace/mf-validation/path-utils.js +1 -1
  74. package/dist/esm/ultramodern-workspace/mf-validation/syntax.js +1 -1
  75. package/dist/esm/ultramodern-workspace/mf-validation/validate.js +1 -1
  76. package/dist/esm/ultramodern-workspace/module-federation/config.js +19 -8
  77. package/dist/esm/ultramodern-workspace/module-federation/reexport-module.js +4 -3
  78. package/dist/esm/ultramodern-workspace/naming.js +1 -1
  79. package/dist/esm/ultramodern-workspace/package-json.js +5 -8
  80. package/dist/esm/ultramodern-workspace/policy.js +1 -7
  81. package/dist/esm/ultramodern-workspace/public-surface.js +1 -1
  82. package/dist/esm/ultramodern-workspace/routes.js +1 -1
  83. package/dist/esm/ultramodern-workspace/shared-patches.js +4 -3
  84. package/dist/esm/ultramodern-workspace/tooling-command-catalog.js +1 -1
  85. package/dist/esm/ultramodern-workspace/versions.js +20 -23
  86. package/dist/esm/ultramodern-workspace/workspace-script-plan.js +1 -1
  87. package/dist/esm/ultramodern-workspace/workspace-scripts.js +6 -9
  88. package/dist/esm/ultramodern-workspace/write-app.js +4 -7
  89. package/dist/esm/ultramodern-workspace/write-workspace.js +3 -2
  90. package/dist/esm-node/cli/flags.js +1 -11
  91. package/dist/esm-node/cli/help.js +0 -1
  92. package/dist/esm-node/cli/package-source.js +1 -1
  93. package/dist/esm-node/cli/prompts.js +2 -14
  94. package/dist/esm-node/index.js +2 -7
  95. package/dist/esm-node/locale/en.js +2 -6
  96. package/dist/esm-node/locale/zh.js +2 -6
  97. package/dist/esm-node/ultramodern-package-source.js +1 -24
  98. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/declaration-patches.js +2 -1
  99. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-build-identity.js +1 -1
  100. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/generated-artifacts-modern-configs.js +1 -1
  101. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/package-cohort.js +6 -4
  102. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/pnpm-policy.js +4 -1
  103. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/pnpm-yaml.js +1 -1
  104. package/dist/esm-node/ultramodern-tooling/commands/migrate-strict-effect/policy-constants.js +3 -1
  105. package/dist/esm-node/ultramodern-workspace/add-vertical/plan.js +1 -1
  106. package/dist/esm-node/ultramodern-workspace/add-vertical/preflight.js +1 -1
  107. package/dist/esm-node/ultramodern-workspace/add-vertical/shell-files.js +1 -1
  108. package/dist/esm-node/ultramodern-workspace/add-vertical/topology.js +6 -4
  109. package/dist/esm-node/ultramodern-workspace/app-files.js +1 -4
  110. package/dist/esm-node/ultramodern-workspace/contracts.js +25 -16
  111. package/dist/esm-node/ultramodern-workspace/delivery-unit-sync.js +1 -1
  112. package/dist/esm-node/ultramodern-workspace/demo-components.js +1 -1
  113. package/dist/esm-node/ultramodern-workspace/fs-io.js +1 -15
  114. package/dist/esm-node/ultramodern-workspace/locales.js +1 -1
  115. package/dist/esm-node/ultramodern-workspace/mf-validation/inspect.js +3 -2
  116. package/dist/esm-node/ultramodern-workspace/mf-validation/object-literal.js +1 -1
  117. package/dist/esm-node/ultramodern-workspace/mf-validation/path-utils.js +1 -1
  118. package/dist/esm-node/ultramodern-workspace/mf-validation/syntax.js +1 -1
  119. package/dist/esm-node/ultramodern-workspace/mf-validation/validate.js +1 -1
  120. package/dist/esm-node/ultramodern-workspace/module-federation/config.js +19 -8
  121. package/dist/esm-node/ultramodern-workspace/module-federation/reexport-module.js +4 -3
  122. package/dist/esm-node/ultramodern-workspace/naming.js +1 -1
  123. package/dist/esm-node/ultramodern-workspace/package-json.js +5 -8
  124. package/dist/esm-node/ultramodern-workspace/policy.js +1 -7
  125. package/dist/esm-node/ultramodern-workspace/public-surface.js +1 -1
  126. package/dist/esm-node/ultramodern-workspace/routes.js +1 -1
  127. package/dist/esm-node/ultramodern-workspace/shared-patches.js +4 -3
  128. package/dist/esm-node/ultramodern-workspace/tooling-command-catalog.js +1 -1
  129. package/dist/esm-node/ultramodern-workspace/versions.js +20 -23
  130. package/dist/esm-node/ultramodern-workspace/workspace-script-plan.js +1 -1
  131. package/dist/esm-node/ultramodern-workspace/workspace-scripts.js +6 -9
  132. package/dist/esm-node/ultramodern-workspace/write-app.js +4 -7
  133. package/dist/esm-node/ultramodern-workspace/write-workspace.js +3 -2
  134. package/dist/types/cli/flags.d.ts +4 -9
  135. package/dist/types/cli/package-source.d.ts +3 -3
  136. package/dist/types/cli/project-setup.d.ts +1 -1
  137. package/dist/types/cli/prompts.d.ts +0 -2
  138. package/dist/types/locale/en.d.ts +0 -4
  139. package/dist/types/locale/index.d.ts +0 -8
  140. package/dist/types/locale/zh.d.ts +0 -4
  141. package/dist/types/ultramodern-package-source.d.ts +0 -11
  142. package/dist/types/ultramodern-tooling/commands/cloudflare-output-verify.d.ts +1 -1
  143. package/dist/types/ultramodern-tooling/commands/context.d.ts +3 -3
  144. package/dist/types/ultramodern-tooling/commands/migrate-strict-effect/install.d.ts +1 -1
  145. package/dist/types/ultramodern-tooling/commands/migrate-strict-effect/pnpm-yaml.d.ts +0 -5
  146. package/dist/types/ultramodern-tooling/commands/migrate-strict-effect/policy-constants.d.ts +8 -6
  147. package/dist/types/ultramodern-tooling/commands/migrate-strict-effect.d.ts +1 -1
  148. package/dist/types/ultramodern-tooling/commands/routes-generate.d.ts +1 -1
  149. package/dist/types/ultramodern-tooling/commands/skills.d.ts +1 -1
  150. package/dist/types/ultramodern-tooling/commands/validate.d.ts +1 -1
  151. package/dist/types/ultramodern-tooling/commands.d.ts +1 -1
  152. package/dist/types/ultramodern-tooling/config/load.d.ts +1 -1
  153. package/dist/types/ultramodern-workspace/add-vertical/plan.d.ts +1 -6
  154. package/dist/types/ultramodern-workspace/add-vertical/preflight.d.ts +1 -9
  155. package/dist/types/ultramodern-workspace/app-files.d.ts +1 -7
  156. package/dist/types/ultramodern-workspace/codesmith.d.ts +5 -5
  157. package/dist/types/ultramodern-workspace/delivery-unit.d.ts +1 -1
  158. package/dist/types/ultramodern-workspace/demo-components.d.ts +0 -1
  159. package/dist/types/ultramodern-workspace/fs-io.d.ts +1 -7
  160. package/dist/types/ultramodern-workspace/generation-result.d.ts +2 -1
  161. package/dist/types/ultramodern-workspace/locales.d.ts +0 -181
  162. package/dist/types/ultramodern-workspace/mf-validation/inspect.d.ts +0 -3
  163. package/dist/types/ultramodern-workspace/mf-validation/object-literal.d.ts +0 -5
  164. package/dist/types/ultramodern-workspace/mf-validation/path-utils.d.ts +0 -2
  165. package/dist/types/ultramodern-workspace/mf-validation/syntax.d.ts +0 -9
  166. package/dist/types/ultramodern-workspace/module-federation/config.d.ts +1 -1
  167. package/dist/types/ultramodern-workspace/module-federation/reexport-module.d.ts +1 -1
  168. package/dist/types/ultramodern-workspace/naming.d.ts +0 -2
  169. package/dist/types/ultramodern-workspace/package-json.d.ts +0 -2
  170. package/dist/types/ultramodern-workspace/policy.d.ts +0 -47
  171. package/dist/types/ultramodern-workspace/public-surface.d.ts +5 -15
  172. package/dist/types/ultramodern-workspace/routes.d.ts +0 -9
  173. package/dist/types/ultramodern-workspace/shared-patches.d.ts +1 -2
  174. package/dist/types/ultramodern-workspace/tooling-command-catalog.d.ts +4 -4
  175. package/dist/types/ultramodern-workspace/types.d.ts +3 -2
  176. package/dist/types/ultramodern-workspace/versions.d.ts +20 -23
  177. package/dist/types/ultramodern-workspace/workspace-script-plan.d.ts +7 -21
  178. package/dist/types/ultramodern-workspace/workspace-scripts.d.ts +2 -9
  179. package/dist/types/ultramodern-workspace/workspace-validation-contract.d.ts +0 -1
  180. package/dist/types/ultramodern-workspace/write-workspace.d.ts +0 -1
  181. package/package.json +14 -12
  182. package/template-workspace/AGENTS.md.handlebars +2 -2
  183. package/template-workspace/README.md.handlebars +3 -4
  184. package/template-workspace/patches/{@module-federation__bridge-react@2.6.0.patch → @module-federation__bridge-react@2.7.0.patch} +22 -22
  185. package/template-workspace/patches/@module-federation__dts-plugin@2.7.0.patch +37 -0
  186. package/template-workspace/patches/{@module-federation__modern-js-v3@2.6.0.patch → @module-federation__modern-js-v3@2.7.0.patch} +22 -22
  187. package/template-workspace/patches/@tanstack__router-core@1.171.14.patch +123 -0
  188. package/template-workspace/pnpm-workspace.yaml.handlebars +24 -2
  189. package/templates/workspace/apps/modern.config.ts.handlebars +1 -1
  190. package/templates/workspace-scripts/assert-mf-types.mjs.handlebars +4 -4
  191. package/templates/workspace-scripts/ultramodern-typecheck.mjs +1 -1
  192. package/templates/workspace-scripts/validate-ultramodern-workspace.mjs.handlebars +3 -5
  193. package/dist/cjs/ultramodern-workspace/pnpm-workspace-policy-plan.cjs +0 -166
  194. package/dist/esm/ultramodern-workspace/pnpm-workspace-policy-plan.js +0 -113
  195. package/dist/esm-node/ultramodern-workspace/pnpm-workspace-policy-plan.js +0 -114
  196. package/dist/types/ultramodern-workspace/pnpm-workspace-policy-plan.d.ts +0 -39
  197. package/template-workspace/patches/@tanstack__router-core@1.171.13.patch +0 -51
  198. package/templates/workspace/postcss.config.mjs.handlebars +0 -5
@@ -1,166 +0,0 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.d = (exports1, getters, values)=>{
5
- var define = (defs, kind)=>{
6
- for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
- enumerable: true,
8
- [kind]: defs[key]
9
- });
10
- };
11
- define(getters, "get");
12
- define(values, "value");
13
- };
14
- })();
15
- (()=>{
16
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
17
- })();
18
- (()=>{
19
- __webpack_require__.r = (exports1)=>{
20
- if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
21
- value: 'Module'
22
- });
23
- Object.defineProperty(exports1, '__esModule', {
24
- value: true
25
- });
26
- };
27
- })();
28
- var __webpack_exports__ = {};
29
- __webpack_require__.r(__webpack_exports__);
30
- __webpack_require__.d(__webpack_exports__, {
31
- createPnpmWorkspacePolicyPlan: ()=>createPnpmWorkspacePolicyPlan,
32
- drizzleOrmDeclarationPatchPath: ()=>drizzleOrmDeclarationPatchPath,
33
- effectDeclarationPatchPath: ()=>effectDeclarationPatchPath,
34
- moduleFederationBridgeReactPatchPath: ()=>moduleFederationBridgeReactPatchPath,
35
- moduleFederationModernJsPatchPath: ()=>moduleFederationModernJsPatchPath,
36
- strictEffectPackageVersionPolicyExclusions: ()=>strictEffectPackageVersionPolicyExclusions
37
- });
38
- const external_versions_cjs_namespaceObject = require("./versions.cjs");
39
- const strictEffectPackageVersionPolicyExclusions = [
40
- `effect@${external_versions_cjs_namespaceObject.EFFECT_VERSION}`,
41
- `@effect/opentelemetry@${external_versions_cjs_namespaceObject.EFFECT_VERSION}`
42
- ];
43
- const moduleFederationModernJsPatchPath = `patches/@module-federation__modern-js-v3@${external_versions_cjs_namespaceObject.MODULE_FEDERATION_VERSION}.patch`;
44
- const moduleFederationBridgeReactPatchPath = `patches/@module-federation__bridge-react@${external_versions_cjs_namespaceObject.MODULE_FEDERATION_VERSION}.patch`;
45
- const effectDeclarationPatchPath = 'patches/effect-schema-error-type-id.patch';
46
- const drizzleOrmDeclarationPatchPath = 'patches/drizzle-orm-ts7-strict-declarations.patch';
47
- function createPnpmWorkspacePolicyPlan(options) {
48
- return {
49
- yamlActions: [
50
- {
51
- kind: 'replace-line',
52
- pattern: /^ {4}'@effect\/vitest>effect': .+$/mu,
53
- replacement: ` '@effect/vitest>effect': '${external_versions_cjs_namespaceObject.EFFECT_VERSION}'`
54
- },
55
- {
56
- kind: 'ensure-scalar-map-entry',
57
- key: 'overrides',
58
- entryKey: "'@effect/opentelemetry'",
59
- value: external_versions_cjs_namespaceObject.EFFECT_VERSION
60
- },
61
- {
62
- kind: 'ensure-scalar-map-entry',
63
- key: 'overrides',
64
- entryKey: "'@effect/vitest'",
65
- value: external_versions_cjs_namespaceObject.EFFECT_VITEST_VERSION
66
- },
67
- {
68
- kind: 'ensure-scalar-map-entry',
69
- key: 'overrides',
70
- entryKey: 'effect',
71
- value: external_versions_cjs_namespaceObject.EFFECT_VERSION
72
- },
73
- {
74
- kind: 'ensure-scalar-map-entry',
75
- key: 'allowBuilds',
76
- entryKey: "'@parcel/watcher'",
77
- value: 'true'
78
- },
79
- ...strictEffectPackageVersionPolicyExclusions.flatMap((item)=>createStrictEffectPackageVersionPolicyActions(item)),
80
- {
81
- kind: 'ensure-map-entry',
82
- key: 'patchedDependencies',
83
- entryKey: `effect@${external_versions_cjs_namespaceObject.EFFECT_VERSION}`,
84
- value: effectDeclarationPatchPath
85
- },
86
- {
87
- kind: 'ensure-map-entry',
88
- key: 'patchedDependencies',
89
- entryKey: `@module-federation/modern-js-v3@${external_versions_cjs_namespaceObject.MODULE_FEDERATION_VERSION}`,
90
- value: moduleFederationModernJsPatchPath
91
- },
92
- {
93
- kind: 'ensure-map-entry',
94
- key: 'patchedDependencies',
95
- entryKey: `@module-federation/bridge-react@${external_versions_cjs_namespaceObject.MODULE_FEDERATION_VERSION}`,
96
- value: moduleFederationBridgeReactPatchPath
97
- },
98
- options.usesDrizzleOrm ? {
99
- kind: 'ensure-map-entry',
100
- key: 'patchedDependencies',
101
- entryKey: `drizzle-orm@${external_versions_cjs_namespaceObject.DRIZZLE_ORM_VERSION}`,
102
- value: drizzleOrmDeclarationPatchPath
103
- } : {
104
- kind: 'remove-map-entry',
105
- entryKey: `drizzle-orm@${external_versions_cjs_namespaceObject.DRIZZLE_ORM_VERSION}`
106
- }
107
- ],
108
- declarationPatchActions: [
109
- {
110
- kind: 'ensure',
111
- relativePatchPath: moduleFederationModernJsPatchPath
112
- },
113
- {
114
- kind: 'ensure',
115
- relativePatchPath: moduleFederationBridgeReactPatchPath
116
- },
117
- {
118
- kind: 'ensure',
119
- relativePatchPath: effectDeclarationPatchPath
120
- },
121
- {
122
- kind: options.usesDrizzleOrm ? 'ensure' : 'remove-if-unchanged',
123
- relativePatchPath: drizzleOrmDeclarationPatchPath
124
- }
125
- ],
126
- requiresInstallOnChange: true
127
- };
128
- }
129
- function createStrictEffectPackageVersionPolicyActions(item) {
130
- const packageName = item.slice(0, item.lastIndexOf('@'));
131
- const escapedPackageName = packageName.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&');
132
- return [
133
- {
134
- kind: 'replace-line',
135
- pattern: new RegExp(`^ {2}- '${escapedPackageName}@[^']+'$`, 'gmu'),
136
- replacement: ` - '${item}'`
137
- },
138
- {
139
- kind: 'ensure-list-item',
140
- key: 'minimumReleaseAgeExclude',
141
- item
142
- },
143
- {
144
- kind: 'ensure-list-item',
145
- key: 'trustPolicyExclude',
146
- item
147
- }
148
- ];
149
- }
150
- exports.createPnpmWorkspacePolicyPlan = __webpack_exports__.createPnpmWorkspacePolicyPlan;
151
- exports.drizzleOrmDeclarationPatchPath = __webpack_exports__.drizzleOrmDeclarationPatchPath;
152
- exports.effectDeclarationPatchPath = __webpack_exports__.effectDeclarationPatchPath;
153
- exports.moduleFederationBridgeReactPatchPath = __webpack_exports__.moduleFederationBridgeReactPatchPath;
154
- exports.moduleFederationModernJsPatchPath = __webpack_exports__.moduleFederationModernJsPatchPath;
155
- exports.strictEffectPackageVersionPolicyExclusions = __webpack_exports__.strictEffectPackageVersionPolicyExclusions;
156
- for(var __rspack_i in __webpack_exports__)if (-1 === [
157
- "createPnpmWorkspacePolicyPlan",
158
- "drizzleOrmDeclarationPatchPath",
159
- "effectDeclarationPatchPath",
160
- "moduleFederationBridgeReactPatchPath",
161
- "moduleFederationModernJsPatchPath",
162
- "strictEffectPackageVersionPolicyExclusions"
163
- ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
164
- Object.defineProperty(exports, '__esModule', {
165
- value: true
166
- });
@@ -1,113 +0,0 @@
1
- import { DRIZZLE_ORM_VERSION, EFFECT_VERSION, EFFECT_VITEST_VERSION, MODULE_FEDERATION_VERSION } from "./versions.js";
2
- const strictEffectPackageVersionPolicyExclusions = [
3
- `effect@${EFFECT_VERSION}`,
4
- `@effect/opentelemetry@${EFFECT_VERSION}`
5
- ];
6
- const moduleFederationModernJsPatchPath = `patches/@module-federation__modern-js-v3@${MODULE_FEDERATION_VERSION}.patch`;
7
- const moduleFederationBridgeReactPatchPath = `patches/@module-federation__bridge-react@${MODULE_FEDERATION_VERSION}.patch`;
8
- const effectDeclarationPatchPath = 'patches/effect-schema-error-type-id.patch';
9
- const drizzleOrmDeclarationPatchPath = 'patches/drizzle-orm-ts7-strict-declarations.patch';
10
- function createPnpmWorkspacePolicyPlan(options) {
11
- return {
12
- yamlActions: [
13
- {
14
- kind: 'replace-line',
15
- pattern: /^ {4}'@effect\/vitest>effect': .+$/mu,
16
- replacement: ` '@effect/vitest>effect': '${EFFECT_VERSION}'`
17
- },
18
- {
19
- kind: 'ensure-scalar-map-entry',
20
- key: 'overrides',
21
- entryKey: "'@effect/opentelemetry'",
22
- value: EFFECT_VERSION
23
- },
24
- {
25
- kind: 'ensure-scalar-map-entry',
26
- key: 'overrides',
27
- entryKey: "'@effect/vitest'",
28
- value: EFFECT_VITEST_VERSION
29
- },
30
- {
31
- kind: 'ensure-scalar-map-entry',
32
- key: 'overrides',
33
- entryKey: 'effect',
34
- value: EFFECT_VERSION
35
- },
36
- {
37
- kind: 'ensure-scalar-map-entry',
38
- key: 'allowBuilds',
39
- entryKey: "'@parcel/watcher'",
40
- value: 'true'
41
- },
42
- ...strictEffectPackageVersionPolicyExclusions.flatMap((item)=>createStrictEffectPackageVersionPolicyActions(item)),
43
- {
44
- kind: 'ensure-map-entry',
45
- key: 'patchedDependencies',
46
- entryKey: `effect@${EFFECT_VERSION}`,
47
- value: effectDeclarationPatchPath
48
- },
49
- {
50
- kind: 'ensure-map-entry',
51
- key: 'patchedDependencies',
52
- entryKey: `@module-federation/modern-js-v3@${MODULE_FEDERATION_VERSION}`,
53
- value: moduleFederationModernJsPatchPath
54
- },
55
- {
56
- kind: 'ensure-map-entry',
57
- key: 'patchedDependencies',
58
- entryKey: `@module-federation/bridge-react@${MODULE_FEDERATION_VERSION}`,
59
- value: moduleFederationBridgeReactPatchPath
60
- },
61
- options.usesDrizzleOrm ? {
62
- kind: 'ensure-map-entry',
63
- key: 'patchedDependencies',
64
- entryKey: `drizzle-orm@${DRIZZLE_ORM_VERSION}`,
65
- value: drizzleOrmDeclarationPatchPath
66
- } : {
67
- kind: 'remove-map-entry',
68
- entryKey: `drizzle-orm@${DRIZZLE_ORM_VERSION}`
69
- }
70
- ],
71
- declarationPatchActions: [
72
- {
73
- kind: 'ensure',
74
- relativePatchPath: moduleFederationModernJsPatchPath
75
- },
76
- {
77
- kind: 'ensure',
78
- relativePatchPath: moduleFederationBridgeReactPatchPath
79
- },
80
- {
81
- kind: 'ensure',
82
- relativePatchPath: effectDeclarationPatchPath
83
- },
84
- {
85
- kind: options.usesDrizzleOrm ? 'ensure' : 'remove-if-unchanged',
86
- relativePatchPath: drizzleOrmDeclarationPatchPath
87
- }
88
- ],
89
- requiresInstallOnChange: true
90
- };
91
- }
92
- function createStrictEffectPackageVersionPolicyActions(item) {
93
- const packageName = item.slice(0, item.lastIndexOf('@'));
94
- const escapedPackageName = packageName.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&');
95
- return [
96
- {
97
- kind: 'replace-line',
98
- pattern: new RegExp(`^ {2}- '${escapedPackageName}@[^']+'$`, 'gmu'),
99
- replacement: ` - '${item}'`
100
- },
101
- {
102
- kind: 'ensure-list-item',
103
- key: 'minimumReleaseAgeExclude',
104
- item
105
- },
106
- {
107
- kind: 'ensure-list-item',
108
- key: 'trustPolicyExclude',
109
- item
110
- }
111
- ];
112
- }
113
- export { createPnpmWorkspacePolicyPlan, drizzleOrmDeclarationPatchPath, effectDeclarationPatchPath, moduleFederationBridgeReactPatchPath, moduleFederationModernJsPatchPath, strictEffectPackageVersionPolicyExclusions };
@@ -1,114 +0,0 @@
1
- import "node:module";
2
- import { DRIZZLE_ORM_VERSION, EFFECT_VERSION, EFFECT_VITEST_VERSION, MODULE_FEDERATION_VERSION } from "./versions.js";
3
- const strictEffectPackageVersionPolicyExclusions = [
4
- `effect@${EFFECT_VERSION}`,
5
- `@effect/opentelemetry@${EFFECT_VERSION}`
6
- ];
7
- const moduleFederationModernJsPatchPath = `patches/@module-federation__modern-js-v3@${MODULE_FEDERATION_VERSION}.patch`;
8
- const moduleFederationBridgeReactPatchPath = `patches/@module-federation__bridge-react@${MODULE_FEDERATION_VERSION}.patch`;
9
- const effectDeclarationPatchPath = 'patches/effect-schema-error-type-id.patch';
10
- const drizzleOrmDeclarationPatchPath = 'patches/drizzle-orm-ts7-strict-declarations.patch';
11
- function createPnpmWorkspacePolicyPlan(options) {
12
- return {
13
- yamlActions: [
14
- {
15
- kind: 'replace-line',
16
- pattern: /^ {4}'@effect\/vitest>effect': .+$/mu,
17
- replacement: ` '@effect/vitest>effect': '${EFFECT_VERSION}'`
18
- },
19
- {
20
- kind: 'ensure-scalar-map-entry',
21
- key: 'overrides',
22
- entryKey: "'@effect/opentelemetry'",
23
- value: EFFECT_VERSION
24
- },
25
- {
26
- kind: 'ensure-scalar-map-entry',
27
- key: 'overrides',
28
- entryKey: "'@effect/vitest'",
29
- value: EFFECT_VITEST_VERSION
30
- },
31
- {
32
- kind: 'ensure-scalar-map-entry',
33
- key: 'overrides',
34
- entryKey: 'effect',
35
- value: EFFECT_VERSION
36
- },
37
- {
38
- kind: 'ensure-scalar-map-entry',
39
- key: 'allowBuilds',
40
- entryKey: "'@parcel/watcher'",
41
- value: 'true'
42
- },
43
- ...strictEffectPackageVersionPolicyExclusions.flatMap((item)=>createStrictEffectPackageVersionPolicyActions(item)),
44
- {
45
- kind: 'ensure-map-entry',
46
- key: 'patchedDependencies',
47
- entryKey: `effect@${EFFECT_VERSION}`,
48
- value: effectDeclarationPatchPath
49
- },
50
- {
51
- kind: 'ensure-map-entry',
52
- key: 'patchedDependencies',
53
- entryKey: `@module-federation/modern-js-v3@${MODULE_FEDERATION_VERSION}`,
54
- value: moduleFederationModernJsPatchPath
55
- },
56
- {
57
- kind: 'ensure-map-entry',
58
- key: 'patchedDependencies',
59
- entryKey: `@module-federation/bridge-react@${MODULE_FEDERATION_VERSION}`,
60
- value: moduleFederationBridgeReactPatchPath
61
- },
62
- options.usesDrizzleOrm ? {
63
- kind: 'ensure-map-entry',
64
- key: 'patchedDependencies',
65
- entryKey: `drizzle-orm@${DRIZZLE_ORM_VERSION}`,
66
- value: drizzleOrmDeclarationPatchPath
67
- } : {
68
- kind: 'remove-map-entry',
69
- entryKey: `drizzle-orm@${DRIZZLE_ORM_VERSION}`
70
- }
71
- ],
72
- declarationPatchActions: [
73
- {
74
- kind: 'ensure',
75
- relativePatchPath: moduleFederationModernJsPatchPath
76
- },
77
- {
78
- kind: 'ensure',
79
- relativePatchPath: moduleFederationBridgeReactPatchPath
80
- },
81
- {
82
- kind: 'ensure',
83
- relativePatchPath: effectDeclarationPatchPath
84
- },
85
- {
86
- kind: options.usesDrizzleOrm ? 'ensure' : 'remove-if-unchanged',
87
- relativePatchPath: drizzleOrmDeclarationPatchPath
88
- }
89
- ],
90
- requiresInstallOnChange: true
91
- };
92
- }
93
- function createStrictEffectPackageVersionPolicyActions(item) {
94
- const packageName = item.slice(0, item.lastIndexOf('@'));
95
- const escapedPackageName = packageName.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&');
96
- return [
97
- {
98
- kind: 'replace-line',
99
- pattern: new RegExp(`^ {2}- '${escapedPackageName}@[^']+'$`, 'gmu'),
100
- replacement: ` - '${item}'`
101
- },
102
- {
103
- kind: 'ensure-list-item',
104
- key: 'minimumReleaseAgeExclude',
105
- item
106
- },
107
- {
108
- kind: 'ensure-list-item',
109
- key: 'trustPolicyExclude',
110
- item
111
- }
112
- ];
113
- }
114
- export { createPnpmWorkspacePolicyPlan, drizzleOrmDeclarationPatchPath, effectDeclarationPatchPath, moduleFederationBridgeReactPatchPath, moduleFederationModernJsPatchPath, strictEffectPackageVersionPolicyExclusions };
@@ -1,39 +0,0 @@
1
- export declare const strictEffectPackageVersionPolicyExclusions: string[];
2
- export declare const moduleFederationModernJsPatchPath = "patches/@module-federation__modern-js-v3@2.6.0.patch";
3
- export declare const moduleFederationBridgeReactPatchPath = "patches/@module-federation__bridge-react@2.6.0.patch";
4
- export declare const effectDeclarationPatchPath = "patches/effect-schema-error-type-id.patch";
5
- export declare const drizzleOrmDeclarationPatchPath = "patches/drizzle-orm-ts7-strict-declarations.patch";
6
- export type PnpmWorkspaceYamlAction = {
7
- kind: 'replace-line';
8
- pattern: RegExp;
9
- replacement: string;
10
- } | {
11
- kind: 'ensure-scalar-map-entry';
12
- key: string;
13
- entryKey: string;
14
- value: string;
15
- } | {
16
- kind: 'ensure-list-item';
17
- key: string;
18
- item: string;
19
- } | {
20
- kind: 'ensure-map-entry';
21
- key: string;
22
- entryKey: string;
23
- value: string;
24
- } | {
25
- kind: 'remove-map-entry';
26
- entryKey: string;
27
- };
28
- export type GeneratedDeclarationPatchAction = {
29
- kind: 'ensure' | 'remove-if-unchanged';
30
- relativePatchPath: string;
31
- };
32
- export type PnpmWorkspacePolicyPlan = {
33
- yamlActions: PnpmWorkspaceYamlAction[];
34
- declarationPatchActions: GeneratedDeclarationPatchAction[];
35
- requiresInstallOnChange: boolean;
36
- };
37
- export declare function createPnpmWorkspacePolicyPlan(options: {
38
- usesDrizzleOrm: boolean;
39
- }): PnpmWorkspacePolicyPlan;
@@ -1,51 +0,0 @@
1
- diff --git a/dist/cjs/load-matches.cjs b/dist/cjs/load-matches.cjs
2
- index c09976a80c2c112b7dac6f941e643c81eeaf8d52..ec5156d89e9c5924a9ec0c19aad79711124f9ff4 100644
3
- --- a/dist/cjs/load-matches.cjs
4
- +++ b/dist/cjs/load-matches.cjs
5
- @@ -442,0 +443 @@
6
- + if (!match) return;
7
- @@ -472,0 +474 @@
8
- + if (!match) return inner.matches[index];
9
- @@ -487,0 +490 @@
10
- + if (!match) return inner.matches[index];
11
- @@ -503 +506 @@
12
- - return inner.router.getMatch(matchId);
13
- + return inner.router.getMatch(matchId) ?? inner.matches[index];
14
- diff --git a/dist/esm/load-matches.js b/dist/esm/load-matches.js
15
- index bcea2e0d88d037a01b93bf36dd6e643f98028e83..57484bf2825dab47030a1d4f905b9fb2e6067310 100644
16
- --- a/dist/esm/load-matches.js
17
- +++ b/dist/esm/load-matches.js
18
- @@ -442,0 +443 @@
19
- + if (!match) return;
20
- @@ -472,0 +474 @@
21
- + if (!match) return inner.matches[index];
22
- @@ -487,0 +490 @@
23
- + if (!match) return inner.matches[index];
24
- @@ -503 +506 @@
25
- - return inner.router.getMatch(matchId);
26
- + return inner.router.getMatch(matchId) ?? inner.matches[index];
27
- diff --git a/src/load-matches.ts b/src/load-matches.ts
28
- index f901a0c97ddf0618dd83229ac260277b46e2676d..76674e01e89ac2cbaba4d776c2be3bf0e3fdb432 100644
29
- --- a/src/load-matches.ts
30
- +++ b/src/load-matches.ts
31
- @@ -838 +838,4 @@
32
- - const match = inner.router.getMatch(matchId)!
33
- + const match = inner.router.getMatch(matchId)
34
- + if (!match) {
35
- + return
36
- + }
37
- @@ -906 +909,4 @@
38
- - const match = inner.router.getMatch(matchId)!
39
- + const match = inner.router.getMatch(matchId)
40
- + if (!match) {
41
- + return inner.matches[index]!
42
- + }
43
- @@ -936 +942,4 @@
44
- - const match = inner.router.getMatch(matchId)!
45
- + const match = inner.router.getMatch(matchId)
46
- + if (!match) {
47
- + return inner.matches[index]!
48
- + }
49
- @@ -955 +964 @@
50
- - return inner.router.getMatch(matchId)!
51
- + return inner.router.getMatch(matchId) ?? inner.matches[index]!
@@ -1,5 +0,0 @@
1
- export default {
2
- plugins: {
3
- '@tailwindcss/postcss': {},
4
- },
5
- };