every-plugin 2.10.1 → 3.0.0-rc.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/bin/every-plugin-serve.mjs +12 -0
- package/bin/every-plugin.mjs +59 -0
- package/dist/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/build/artifact-names.cjs +119 -0
- package/dist/build/artifact-names.cjs.map +1 -0
- package/dist/build/artifact-names.d.cts +68 -0
- package/dist/build/artifact-names.d.cts.map +1 -0
- package/dist/build/artifact-names.d.mts +68 -0
- package/dist/build/artifact-names.d.mts.map +1 -0
- package/dist/build/artifact-names.mjs +102 -0
- package/dist/build/artifact-names.mjs.map +1 -0
- package/dist/build/contract-types.cjs +89 -0
- package/dist/build/contract-types.cjs.map +1 -0
- package/dist/build/contract-types.mjs +81 -0
- package/dist/build/contract-types.mjs.map +1 -0
- package/dist/build/rspack/build-report-plugin.cjs +37 -0
- package/dist/build/rspack/build-report-plugin.cjs.map +1 -0
- package/dist/build/rspack/build-report-plugin.d.cts +18 -0
- package/dist/build/rspack/build-report-plugin.d.cts.map +1 -0
- package/dist/build/rspack/build-report-plugin.d.mts +18 -0
- package/dist/build/rspack/build-report-plugin.d.mts.map +1 -0
- package/dist/build/rspack/build-report-plugin.mjs +37 -0
- package/dist/build/rspack/build-report-plugin.mjs.map +1 -0
- package/dist/build/rspack/chunk-completeness-plugin.cjs +47 -0
- package/dist/build/rspack/chunk-completeness-plugin.cjs.map +1 -0
- package/dist/build/rspack/chunk-completeness-plugin.mjs +47 -0
- package/dist/build/rspack/chunk-completeness-plugin.mjs.map +1 -0
- package/dist/build/rspack/compose.cjs +69 -0
- package/dist/build/rspack/compose.cjs.map +1 -0
- package/dist/build/rspack/compose.d.cts +20 -0
- package/dist/build/rspack/compose.d.cts.map +1 -0
- package/dist/build/rspack/compose.d.mts +20 -0
- package/dist/build/rspack/compose.d.mts.map +1 -0
- package/dist/build/rspack/compose.mjs +65 -0
- package/dist/build/rspack/compose.mjs.map +1 -0
- package/dist/build/rspack/fix-mf-data-uri-plugin.cjs +11 -11
- package/dist/build/rspack/fix-mf-data-uri-plugin.cjs.map +1 -1
- package/dist/build/rspack/fix-mf-data-uri-plugin.d.cts +2 -0
- package/dist/build/rspack/fix-mf-data-uri-plugin.d.cts.map +1 -1
- package/dist/build/rspack/fix-mf-data-uri-plugin.d.mts +2 -0
- package/dist/build/rspack/fix-mf-data-uri-plugin.d.mts.map +1 -1
- package/dist/build/rspack/fix-mf-data-uri-plugin.mjs +11 -10
- package/dist/build/rspack/fix-mf-data-uri-plugin.mjs.map +1 -1
- package/dist/build/rspack/generated-config.cjs +35 -0
- package/dist/build/rspack/generated-config.cjs.map +1 -0
- package/dist/build/rspack/generated-config.mjs +32 -0
- package/dist/build/rspack/generated-config.mjs.map +1 -0
- package/dist/build/rspack/index.cjs +8 -5
- package/dist/build/rspack/index.d.cts +5 -3
- package/dist/build/rspack/index.d.mts +5 -3
- package/dist/build/rspack/index.mjs +5 -3
- package/dist/build/rspack/module-federation.cjs +2 -2
- package/dist/build/rspack/module-federation.cjs.map +1 -1
- package/dist/build/rspack/module-federation.mjs +1 -1
- package/dist/build/rspack/module-federation.mjs.map +1 -1
- package/dist/build/rspack/plugin.cjs +44 -69
- package/dist/build/rspack/plugin.cjs.map +1 -1
- package/dist/build/rspack/plugin.d.cts +4 -13
- package/dist/build/rspack/plugin.d.cts.map +1 -1
- package/dist/build/rspack/plugin.d.mts +4 -13
- package/dist/build/rspack/plugin.d.mts.map +1 -1
- package/dist/build/rspack/plugin.mjs +44 -69
- package/dist/build/rspack/plugin.mjs.map +1 -1
- package/dist/build/rspack/utils.cjs +7 -5
- package/dist/build/rspack/utils.cjs.map +1 -1
- package/dist/build/rspack/utils.mjs +7 -6
- package/dist/build/rspack/utils.mjs.map +1 -1
- package/dist/build/ui/factory.cjs +88 -0
- package/dist/build/ui/factory.cjs.map +1 -0
- package/dist/build/ui/factory.d.cts +11 -0
- package/dist/build/ui/factory.d.cts.map +1 -0
- package/dist/build/ui/factory.d.mts +11 -0
- package/dist/build/ui/factory.d.mts.map +1 -0
- package/dist/build/ui/factory.mjs +80 -0
- package/dist/build/ui/factory.mjs.map +1 -0
- package/dist/build/ui/generated-config.cjs +118 -0
- package/dist/build/ui/generated-config.cjs.map +1 -0
- package/dist/build/ui/generated-config.d.cts +33 -0
- package/dist/build/ui/generated-config.d.cts.map +1 -0
- package/dist/build/ui/generated-config.d.mts +33 -0
- package/dist/build/ui/generated-config.d.mts.map +1 -0
- package/dist/build/ui/generated-config.mjs +111 -0
- package/dist/build/ui/generated-config.mjs.map +1 -0
- package/dist/build/ui/hash-artifacts-plugin.cjs +61 -0
- package/dist/build/ui/hash-artifacts-plugin.cjs.map +1 -0
- package/dist/build/ui/hash-artifacts-plugin.d.cts +20 -0
- package/dist/build/ui/hash-artifacts-plugin.d.cts.map +1 -0
- package/dist/build/ui/hash-artifacts-plugin.d.mts +20 -0
- package/dist/build/ui/hash-artifacts-plugin.d.mts.map +1 -0
- package/dist/build/ui/hash-artifacts-plugin.mjs +58 -0
- package/dist/build/ui/hash-artifacts-plugin.mjs.map +1 -0
- package/dist/build/ui/index.cjs +90 -0
- package/dist/build/ui/index.cjs.map +1 -0
- package/dist/build/ui/index.d.cts +29 -0
- package/dist/build/ui/index.d.cts.map +1 -0
- package/dist/build/ui/index.d.mts +29 -0
- package/dist/build/ui/index.d.mts.map +1 -0
- package/dist/build/ui/index.mjs +68 -0
- package/dist/build/ui/index.mjs.map +1 -0
- package/dist/build/ui/manifest-plugin.cjs +37 -0
- package/dist/build/ui/manifest-plugin.cjs.map +1 -0
- package/dist/build/ui/manifest-plugin.d.cts +19 -0
- package/dist/build/ui/manifest-plugin.d.cts.map +1 -0
- package/dist/build/ui/manifest-plugin.d.mts +19 -0
- package/dist/build/ui/manifest-plugin.d.mts.map +1 -0
- package/dist/build/ui/manifest-plugin.mjs +37 -0
- package/dist/build/ui/manifest-plugin.mjs.map +1 -0
- package/dist/build/ui/rsbuild-config.cjs +203 -0
- package/dist/build/ui/rsbuild-config.cjs.map +1 -0
- package/dist/build/ui/rsbuild-config.d.cts +45 -0
- package/dist/build/ui/rsbuild-config.d.cts.map +1 -0
- package/dist/build/ui/rsbuild-config.d.mts +45 -0
- package/dist/build/ui/rsbuild-config.d.mts.map +1 -0
- package/dist/build/ui/rsbuild-config.mjs +200 -0
- package/dist/build/ui/rsbuild-config.mjs.map +1 -0
- package/dist/build/ui/stubs.cjs +107 -0
- package/dist/build/ui/stubs.cjs.map +1 -0
- package/dist/build/ui/stubs.d.cts +25 -0
- package/dist/build/ui/stubs.d.cts.map +1 -0
- package/dist/build/ui/stubs.d.mts +25 -0
- package/dist/build/ui/stubs.d.mts.map +1 -0
- package/dist/build/ui/stubs.mjs +106 -0
- package/dist/build/ui/stubs.mjs.map +1 -0
- package/dist/cli.cjs +83 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +6 -0
- package/dist/cli.d.cts.map +1 -0
- package/dist/cli.d.mts +6 -0
- package/dist/cli.d.mts.map +1 -0
- package/dist/cli.mjs +82 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/dev/serve.cjs +390 -0
- package/dist/dev/serve.cjs.map +1 -0
- package/dist/dev/serve.d.cts +23 -0
- package/dist/dev/serve.d.cts.map +1 -0
- package/dist/dev/serve.d.mts +23 -0
- package/dist/dev/serve.d.mts.map +1 -0
- package/dist/dev/serve.mjs +384 -0
- package/dist/dev/serve.mjs.map +1 -0
- package/dist/dev/watch-kill.cjs +39 -0
- package/dist/dev/watch-kill.cjs.map +1 -0
- package/dist/dev/watch-kill.mjs +38 -0
- package/dist/dev/watch-kill.mjs.map +1 -0
- package/dist/effect-helpers.cjs +23 -0
- package/dist/effect-helpers.cjs.map +1 -0
- package/dist/effect-helpers.d.cts +20 -0
- package/dist/effect-helpers.d.cts.map +1 -0
- package/dist/effect-helpers.d.mts +20 -0
- package/dist/effect-helpers.d.mts.map +1 -0
- package/dist/effect-helpers.mjs +22 -0
- package/dist/effect-helpers.mjs.map +1 -0
- package/dist/errors.cjs +49 -69
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +13 -96
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.mts +13 -96
- package/dist/errors.d.mts.map +1 -1
- package/dist/errors.mjs +16 -34
- package/dist/errors.mjs.map +1 -1
- package/dist/identity.cjs +19 -0
- package/dist/identity.cjs.map +1 -0
- package/dist/identity.d.cts +33 -0
- package/dist/identity.d.cts.map +1 -0
- package/dist/identity.d.mts +33 -0
- package/dist/identity.d.mts.map +1 -0
- package/dist/identity.mjs +16 -0
- package/dist/identity.mjs.map +1 -0
- package/dist/index.cjs +8 -5
- package/dist/index.d.cts +8 -6
- package/dist/index.d.mts +8 -6
- package/dist/index.mjs +6 -4
- package/dist/plugin.cjs +12 -26
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.cts +44 -25
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts +45 -26
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +15 -29
- package/dist/plugin.mjs.map +1 -1
- package/dist/remote-entry.cjs +103 -0
- package/dist/remote-entry.cjs.map +1 -0
- package/dist/remote-entry.d.cts +53 -0
- package/dist/remote-entry.d.cts.map +1 -0
- package/dist/remote-entry.d.mts +53 -0
- package/dist/remote-entry.d.mts.map +1 -0
- package/dist/remote-entry.mjs +98 -0
- package/dist/remote-entry.mjs.map +1 -0
- package/dist/runtime/errors.cjs +140 -34
- package/dist/runtime/errors.cjs.map +1 -1
- package/dist/runtime/errors.d.cts +42 -7
- package/dist/runtime/errors.d.cts.map +1 -1
- package/dist/runtime/errors.d.mts +42 -7
- package/dist/runtime/errors.d.mts.map +1 -1
- package/dist/runtime/errors.mjs +136 -31
- package/dist/runtime/errors.mjs.map +1 -1
- package/dist/runtime/index.cjs +95 -23
- package/dist/runtime/index.cjs.map +1 -1
- package/dist/runtime/index.d.cts +16 -0
- package/dist/runtime/index.d.cts.map +1 -1
- package/dist/runtime/index.d.mts +16 -0
- package/dist/runtime/index.d.mts.map +1 -1
- package/dist/runtime/index.mjs +98 -26
- package/dist/runtime/index.mjs.map +1 -1
- package/dist/runtime/mf-config.cjs +3 -78
- package/dist/runtime/mf-config.cjs.map +1 -1
- package/dist/runtime/mf-config.d.cts +3 -49
- package/dist/runtime/mf-config.d.cts.map +1 -1
- package/dist/runtime/mf-config.d.mts +3 -49
- package/dist/runtime/mf-config.d.mts.map +1 -1
- package/dist/runtime/mf-config.mjs +5 -78
- package/dist/runtime/mf-config.mjs.map +1 -1
- package/dist/runtime/services/module-federation.service.cjs +63 -12
- package/dist/runtime/services/module-federation.service.cjs.map +1 -1
- package/dist/runtime/services/module-federation.service.d.cts +4 -13
- package/dist/runtime/services/module-federation.service.d.mts +4 -13
- package/dist/runtime/services/module-federation.service.mjs +63 -14
- package/dist/runtime/services/module-federation.service.mjs.map +1 -1
- package/dist/runtime/services/normalize.cjs +2 -22
- package/dist/runtime/services/normalize.d.cts +2 -21
- package/dist/runtime/services/normalize.d.mts +2 -21
- package/dist/runtime/services/normalize.mjs +2 -21
- package/dist/runtime/services/plugin-lifecycle.service.cjs +9 -11
- package/dist/runtime/services/plugin-lifecycle.service.cjs.map +1 -1
- package/dist/runtime/services/plugin-lifecycle.service.d.cts +3 -16
- package/dist/runtime/services/plugin-lifecycle.service.d.mts +3 -16
- package/dist/runtime/services/plugin-lifecycle.service.mjs +10 -13
- package/dist/runtime/services/plugin-lifecycle.service.mjs.map +1 -1
- package/dist/runtime/services/plugin-loader.service.cjs +30 -29
- package/dist/runtime/services/plugin-loader.service.cjs.map +1 -1
- package/dist/runtime/services/plugin-loader.service.d.cts +6 -53
- package/dist/runtime/services/plugin-loader.service.d.mts +6 -53
- package/dist/runtime/services/plugin-loader.service.mjs +29 -30
- package/dist/runtime/services/plugin-loader.service.mjs.map +1 -1
- package/dist/runtime/services/plugin.service.cjs +10 -12
- package/dist/runtime/services/plugin.service.cjs.map +1 -1
- package/dist/runtime/services/plugin.service.d.cts +14 -36
- package/dist/runtime/services/plugin.service.d.cts.map +1 -1
- package/dist/runtime/services/plugin.service.d.mts +14 -36
- package/dist/runtime/services/plugin.service.d.mts.map +1 -1
- package/dist/runtime/services/plugin.service.mjs +14 -18
- package/dist/runtime/services/plugin.service.mjs.map +1 -1
- package/dist/runtime/services/secrets.service.cjs +12 -12
- package/dist/runtime/services/secrets.service.cjs.map +1 -1
- package/dist/runtime/services/secrets.service.d.cts +3 -15
- package/dist/runtime/services/secrets.service.d.mts +3 -15
- package/dist/runtime/services/secrets.service.mjs +12 -13
- package/dist/runtime/services/secrets.service.mjs.map +1 -1
- package/dist/runtime/services/shared-identity.cjs +40 -0
- package/dist/runtime/services/shared-identity.cjs.map +1 -0
- package/dist/runtime/services/shared-identity.mjs +38 -0
- package/dist/runtime/services/shared-identity.mjs.map +1 -0
- package/dist/runtime/validation.cjs +2 -2
- package/dist/runtime/validation.cjs.map +1 -1
- package/dist/runtime/validation.mjs +2 -2
- package/dist/runtime/validation.mjs.map +1 -1
- package/dist/shared-deps-spec.cjs +384 -0
- package/dist/shared-deps-spec.cjs.map +1 -0
- package/dist/shared-deps-spec.d.cts +182 -0
- package/dist/shared-deps-spec.d.cts.map +1 -0
- package/dist/shared-deps-spec.d.mts +182 -0
- package/dist/shared-deps-spec.d.mts.map +1 -0
- package/dist/shared-deps-spec.mjs +368 -0
- package/dist/shared-deps-spec.mjs.map +1 -0
- package/dist/types.d.cts +22 -41
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +22 -41
- package/dist/types.d.mts.map +1 -1
- package/dist/ui/manifest/construct.cjs +268 -0
- package/dist/ui/manifest/construct.cjs.map +1 -0
- package/dist/ui/manifest/construct.d.cts +48 -0
- package/dist/ui/manifest/construct.d.cts.map +1 -0
- package/dist/ui/manifest/construct.d.mts +48 -0
- package/dist/ui/manifest/construct.d.mts.map +1 -0
- package/dist/ui/manifest/construct.mjs +268 -0
- package/dist/ui/manifest/construct.mjs.map +1 -0
- package/dist/ui/manifest/contract.cjs +34 -0
- package/dist/ui/manifest/contract.cjs.map +1 -0
- package/dist/ui/manifest/contract.d.cts +26 -0
- package/dist/ui/manifest/contract.d.cts.map +1 -0
- package/dist/ui/manifest/contract.d.mts +26 -0
- package/dist/ui/manifest/contract.d.mts.map +1 -0
- package/dist/ui/manifest/contract.mjs +26 -0
- package/dist/ui/manifest/contract.mjs.map +1 -0
- package/dist/ui/manifest/descriptor.cjs +64 -0
- package/dist/ui/manifest/descriptor.cjs.map +1 -0
- package/dist/ui/manifest/descriptor.d.cts +60 -0
- package/dist/ui/manifest/descriptor.d.cts.map +1 -0
- package/dist/ui/manifest/descriptor.d.mts +60 -0
- package/dist/ui/manifest/descriptor.d.mts.map +1 -0
- package/dist/ui/manifest/descriptor.mjs +61 -0
- package/dist/ui/manifest/descriptor.mjs.map +1 -0
- package/dist/ui/manifest/generator.cjs +128 -0
- package/dist/ui/manifest/generator.cjs.map +1 -0
- package/dist/ui/manifest/generator.d.cts +41 -0
- package/dist/ui/manifest/generator.d.cts.map +1 -0
- package/dist/ui/manifest/generator.d.mts +41 -0
- package/dist/ui/manifest/generator.d.mts.map +1 -0
- package/dist/ui/manifest/generator.mjs +125 -0
- package/dist/ui/manifest/generator.mjs.map +1 -0
- package/dist/ui/manifest/index.cjs +35 -0
- package/dist/ui/manifest/index.d.cts +9 -0
- package/dist/ui/manifest/index.d.mts +9 -0
- package/dist/ui/manifest/index.mjs +9 -0
- package/dist/ui/manifest/manifest-schema.cjs +97 -0
- package/dist/ui/manifest/manifest-schema.cjs.map +1 -0
- package/dist/ui/manifest/manifest-schema.d.cts +132 -0
- package/dist/ui/manifest/manifest-schema.d.cts.map +1 -0
- package/dist/ui/manifest/manifest-schema.d.mts +132 -0
- package/dist/ui/manifest/manifest-schema.d.mts.map +1 -0
- package/dist/ui/manifest/manifest-schema.mjs +90 -0
- package/dist/ui/manifest/manifest-schema.mjs.map +1 -0
- package/dist/ui/manifest/mount-registry.cjs +52 -0
- package/dist/ui/manifest/mount-registry.cjs.map +1 -0
- package/dist/ui/manifest/mount-registry.d.cts +61 -0
- package/dist/ui/manifest/mount-registry.d.cts.map +1 -0
- package/dist/ui/manifest/mount-registry.d.mts +61 -0
- package/dist/ui/manifest/mount-registry.d.mts.map +1 -0
- package/dist/ui/manifest/mount-registry.mjs +48 -0
- package/dist/ui/manifest/mount-registry.mjs.map +1 -0
- package/dist/ui/manifest/nav.cjs +13 -0
- package/dist/ui/manifest/nav.cjs.map +1 -0
- package/dist/ui/manifest/nav.d.cts +34 -0
- package/dist/ui/manifest/nav.d.cts.map +1 -0
- package/dist/ui/manifest/nav.d.mts +34 -0
- package/dist/ui/manifest/nav.d.mts.map +1 -0
- package/dist/ui/manifest/nav.mjs +13 -0
- package/dist/ui/manifest/nav.mjs.map +1 -0
- package/dist/ui/manifest/route-config.cjs +33 -0
- package/dist/ui/manifest/route-config.cjs.map +1 -0
- package/dist/ui/manifest/route-config.d.cts +40 -0
- package/dist/ui/manifest/route-config.d.cts.map +1 -0
- package/dist/ui/manifest/route-config.d.mts +40 -0
- package/dist/ui/manifest/route-config.d.mts.map +1 -0
- package/dist/ui/manifest/route-config.mjs +33 -0
- package/dist/ui/manifest/route-config.mjs.map +1 -0
- package/dist/version-manifest.cjs +65 -0
- package/dist/version-manifest.cjs.map +1 -0
- package/dist/version-manifest.d.cts +52 -0
- package/dist/version-manifest.d.cts.map +1 -0
- package/dist/version-manifest.d.mts +52 -0
- package/dist/version-manifest.d.mts.map +1 -0
- package/dist/version-manifest.mjs +63 -0
- package/dist/version-manifest.mjs.map +1 -0
- package/package.json +165 -68
- package/skills/plugin-client/SKILL.md +24 -5
- package/skills/plugin-development/SKILL.md +79 -47
- package/skills/plugin-testing/SKILL.md +41 -12
- package/src/build/artifact-names.ts +117 -0
- package/src/build/contract-types.ts +101 -0
- package/src/build/rspack/build-report-plugin.ts +34 -0
- package/src/build/rspack/chunk-completeness-plugin.ts +57 -0
- package/src/build/rspack/compose.ts +87 -0
- package/src/build/rspack/fix-mf-data-uri-plugin.ts +23 -12
- package/src/build/rspack/generated-config.ts +35 -0
- package/src/build/rspack/index.ts +10 -5
- package/src/build/rspack/module-federation.ts +1 -1
- package/src/build/rspack/plugin.ts +103 -105
- package/src/build/rspack/utils.ts +8 -2
- package/src/build/ui/factory.ts +96 -0
- package/src/build/ui/generated-config.ts +133 -0
- package/src/build/ui/hash-artifacts-plugin.ts +79 -0
- package/src/build/ui/index.ts +98 -0
- package/src/build/ui/manifest-plugin.ts +54 -0
- package/src/build/ui/rsbuild-config.ts +256 -0
- package/src/build/ui/stubs.ts +103 -0
- package/src/cli.ts +100 -0
- package/src/dev/serve.ts +477 -0
- package/src/dev/watch-kill.ts +58 -0
- package/src/effect-helpers.ts +25 -0
- package/src/errors.ts +16 -18
- package/src/identity.ts +36 -0
- package/src/index.ts +4 -0
- package/src/plugin.ts +70 -92
- package/src/remote-entry.ts +171 -0
- package/src/runtime/errors.ts +186 -27
- package/src/runtime/index.ts +132 -43
- package/src/runtime/mf-config.ts +12 -107
- package/src/runtime/services/module-federation.service.ts +221 -117
- package/src/runtime/services/normalize.ts +1 -18
- package/src/runtime/services/plugin-lifecycle.service.ts +66 -75
- package/src/runtime/services/plugin-loader.service.ts +239 -212
- package/src/runtime/services/plugin.service.ts +61 -43
- package/src/runtime/services/secrets.service.ts +20 -15
- package/src/runtime/services/shared-identity.ts +68 -0
- package/src/runtime/validation.ts +5 -7
- package/src/shared-deps-spec.ts +478 -0
- package/src/types.ts +22 -48
- package/src/ui/manifest/construct.ts +403 -0
- package/src/ui/manifest/contract.ts +33 -0
- package/src/ui/manifest/descriptor.ts +96 -0
- package/src/ui/manifest/generator.ts +238 -0
- package/src/ui/manifest/index.ts +55 -0
- package/src/ui/manifest/manifest-schema.ts +107 -0
- package/src/ui/manifest/mount-registry.ts +50 -0
- package/src/ui/manifest/nav.ts +43 -0
- package/src/ui/manifest/route-config.ts +82 -0
- package/src/version-manifest.ts +88 -0
- package/dist/build/rspack/dev-server-middleware.cjs +0 -248
- package/dist/build/rspack/dev-server-middleware.cjs.map +0 -1
- package/dist/build/rspack/dev-server-middleware.mjs +0 -247
- package/dist/build/rspack/dev-server-middleware.mjs.map +0 -1
- package/dist/build/shared-deps.cjs +0 -83
- package/dist/build/shared-deps.cjs.map +0 -1
- package/dist/build/shared-deps.d.cts +0 -67
- package/dist/build/shared-deps.d.cts.map +0 -1
- package/dist/build/shared-deps.d.mts +0 -67
- package/dist/build/shared-deps.d.mts.map +0 -1
- package/dist/build/shared-deps.mjs +0 -79
- package/dist/build/shared-deps.mjs.map +0 -1
- package/dist/effect.cjs +0 -9
- package/dist/effect.d.cts +0 -1
- package/dist/effect.d.mts +0 -1
- package/dist/effect.mjs +0 -3
- package/dist/orpc-openapi.cjs +0 -17
- package/dist/orpc-openapi.d.cts +0 -2
- package/dist/orpc-openapi.d.mts +0 -2
- package/dist/orpc-openapi.mjs +0 -5
- package/dist/orpc.cjs +0 -46
- package/dist/orpc.d.cts +0 -7
- package/dist/orpc.d.mts +0 -7
- package/dist/orpc.mjs +0 -11
- package/dist/package.cjs +0 -23
- package/dist/package.cjs.map +0 -1
- package/dist/package.mjs +0 -17
- package/dist/package.mjs.map +0 -1
- package/dist/runtime/services/module-federation.service.d.cts.map +0 -1
- package/dist/runtime/services/module-federation.service.d.mts.map +0 -1
- package/dist/runtime/services/normalize.cjs.map +0 -1
- package/dist/runtime/services/normalize.d.cts.map +0 -1
- package/dist/runtime/services/normalize.d.mts.map +0 -1
- package/dist/runtime/services/normalize.mjs.map +0 -1
- package/dist/runtime/services/plugin-lifecycle.service.d.cts.map +0 -1
- package/dist/runtime/services/plugin-lifecycle.service.d.mts.map +0 -1
- package/dist/runtime/services/plugin-loader.service.d.cts.map +0 -1
- package/dist/runtime/services/plugin-loader.service.d.mts.map +0 -1
- package/dist/runtime/services/secrets.service.d.cts.map +0 -1
- package/dist/runtime/services/secrets.service.d.mts.map +0 -1
- package/dist/testing/index.cjs +0 -57
- package/dist/testing/index.cjs.map +0 -1
- package/dist/testing/index.d.cts +0 -54
- package/dist/testing/index.d.cts.map +0 -1
- package/dist/testing/index.d.mts +0 -54
- package/dist/testing/index.d.mts.map +0 -1
- package/dist/testing/index.mjs +0 -55
- package/dist/testing/index.mjs.map +0 -1
- package/dist/zod-core.cjs +0 -9
- package/dist/zod-core.d.cts +0 -1
- package/dist/zod-core.d.mts +0 -1
- package/dist/zod-core.mjs +0 -3
- package/dist/zod.cjs +0 -11
- package/dist/zod.d.cts +0 -2
- package/dist/zod.d.mts +0 -2
- package/dist/zod.mjs +0 -3
- package/src/build/rspack/dev-server-middleware.ts +0 -324
- package/src/build/shared-deps.ts +0 -102
- package/src/effect.ts +0 -1
- package/src/orpc-openapi.ts +0 -2
- package/src/orpc.ts +0 -9
- package/src/testing/index.ts +0 -87
- package/src/testing/mocks/module-federation.service.ts +0 -41
- package/src/zod-core.ts +0 -1
- package/src/zod.ts +0 -3
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
//#region src/shared-deps-spec.d.ts
|
|
2
|
+
declare const SharedDependencyResolutionError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
3
|
+
readonly _tag: "SharedDependencyResolutionError";
|
|
4
|
+
} & Readonly<A>;
|
|
5
|
+
declare class SharedDependencyResolutionError extends SharedDependencyResolutionError_base<{
|
|
6
|
+
readonly packageName: string;
|
|
7
|
+
readonly searched: string[];
|
|
8
|
+
}> {
|
|
9
|
+
constructor(packageName: string, searched: string[]);
|
|
10
|
+
get message(): string;
|
|
11
|
+
}
|
|
12
|
+
type SharedDependencyResolution = "self" | "package" | "subpath";
|
|
13
|
+
interface SharedDependencySpec {
|
|
14
|
+
name: string;
|
|
15
|
+
singleton: true;
|
|
16
|
+
/** exact-version pin (requiredVersion = resolved version, strictVersion = true) */
|
|
17
|
+
critical: boolean;
|
|
18
|
+
resolution: SharedDependencyResolution;
|
|
19
|
+
}
|
|
20
|
+
declare const CORE_SHARED_DEPS: readonly [{
|
|
21
|
+
readonly name: "every-plugin";
|
|
22
|
+
readonly singleton: true;
|
|
23
|
+
readonly critical: true;
|
|
24
|
+
readonly resolution: "self";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "effect";
|
|
27
|
+
readonly singleton: true;
|
|
28
|
+
readonly critical: true;
|
|
29
|
+
readonly resolution: "package";
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "zod";
|
|
32
|
+
readonly singleton: true;
|
|
33
|
+
readonly critical: false;
|
|
34
|
+
readonly resolution: "package";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "@orpc/contract";
|
|
37
|
+
readonly singleton: true;
|
|
38
|
+
readonly critical: true;
|
|
39
|
+
readonly resolution: "package";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "@orpc/client";
|
|
42
|
+
readonly singleton: true;
|
|
43
|
+
readonly critical: true;
|
|
44
|
+
readonly resolution: "package";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "@orpc/server";
|
|
47
|
+
readonly singleton: true;
|
|
48
|
+
readonly critical: true;
|
|
49
|
+
readonly resolution: "package";
|
|
50
|
+
}];
|
|
51
|
+
type CoreSharedDepName = (typeof CORE_SHARED_DEPS)[number]["name"];
|
|
52
|
+
declare const coreCriticalNames: ("@orpc/client" | "@orpc/contract" | "@orpc/server" | "effect" | "every-plugin")[];
|
|
53
|
+
/**
|
|
54
|
+
* Effect-critical shared names, derived from the core list's `critical: true`
|
|
55
|
+
* entries — the one source of criticality (`strictVersion` pinning in the
|
|
56
|
+
* runtime's version-check machinery keys off this list).
|
|
57
|
+
*/
|
|
58
|
+
declare const EFFECT_CRITICAL_SHARED_DEPS: readonly EffectCriticalSharedDepName[];
|
|
59
|
+
type EffectCriticalSharedDepName = (typeof coreCriticalNames)[number];
|
|
60
|
+
declare const isEffectCriticalSharedDep: (name: string) => boolean;
|
|
61
|
+
declare const UI_SHARED_DEPS: readonly [{
|
|
62
|
+
readonly name: "react";
|
|
63
|
+
readonly singleton: true;
|
|
64
|
+
readonly critical: true;
|
|
65
|
+
readonly resolution: "package";
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "react-dom";
|
|
68
|
+
readonly singleton: true;
|
|
69
|
+
readonly critical: true;
|
|
70
|
+
readonly resolution: "package";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "@orpc/client";
|
|
73
|
+
readonly singleton: true;
|
|
74
|
+
readonly critical: true;
|
|
75
|
+
readonly resolution: "package";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "@orpc/contract";
|
|
78
|
+
readonly singleton: true;
|
|
79
|
+
readonly critical: true;
|
|
80
|
+
readonly resolution: "package";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "@tanstack/react-query";
|
|
83
|
+
readonly singleton: true;
|
|
84
|
+
readonly critical: true;
|
|
85
|
+
readonly resolution: "package";
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "@tanstack/react-router";
|
|
88
|
+
readonly singleton: true;
|
|
89
|
+
readonly critical: true;
|
|
90
|
+
readonly resolution: "package";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "@lingui/core";
|
|
93
|
+
readonly singleton: true;
|
|
94
|
+
readonly critical: true;
|
|
95
|
+
readonly resolution: "package";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "@lingui/react";
|
|
98
|
+
readonly singleton: true;
|
|
99
|
+
readonly critical: true;
|
|
100
|
+
readonly resolution: "package";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "everything-dev/ui/auth";
|
|
103
|
+
readonly singleton: true;
|
|
104
|
+
readonly critical: true;
|
|
105
|
+
readonly resolution: "subpath";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "everything-dev/ui/i18n";
|
|
108
|
+
readonly singleton: true;
|
|
109
|
+
readonly critical: true;
|
|
110
|
+
readonly resolution: "subpath";
|
|
111
|
+
}];
|
|
112
|
+
declare const SHARED_DEP_SPECS: readonly SharedDependencySpec[];
|
|
113
|
+
interface SharedDependencyConfig {
|
|
114
|
+
version: string;
|
|
115
|
+
requiredVersion: string | false;
|
|
116
|
+
singleton: boolean;
|
|
117
|
+
strictVersion: boolean;
|
|
118
|
+
eager: boolean;
|
|
119
|
+
shareScope: string;
|
|
120
|
+
}
|
|
121
|
+
type SharedDependencies = Record<string, SharedDependencyConfig>;
|
|
122
|
+
type SharedConfigInput = {
|
|
123
|
+
version: string;
|
|
124
|
+
requiredVersion?: string | false;
|
|
125
|
+
singleton?: boolean;
|
|
126
|
+
strictVersion?: boolean;
|
|
127
|
+
eager?: boolean;
|
|
128
|
+
shareScope?: string;
|
|
129
|
+
};
|
|
130
|
+
interface SharedDependencyResolutionOptions {
|
|
131
|
+
/** the building workspace to resolve from; default is this module's own location */
|
|
132
|
+
workspaceRoot?: string;
|
|
133
|
+
resolution?: "package" | "subpath";
|
|
134
|
+
}
|
|
135
|
+
declare function resolveSharedVersion(name: string, options?: SharedDependencyResolutionOptions): string;
|
|
136
|
+
declare function shareConfigFor(spec: SharedDependencySpec, version: string): Omit<SharedDependencyConfig, "version">;
|
|
137
|
+
interface SharedDepsBuildOptions {
|
|
138
|
+
/** the every-plugin share version; default resolves the installed package.json */
|
|
139
|
+
ownVersion?: string;
|
|
140
|
+
}
|
|
141
|
+
declare function getPluginSharedDependencies(options?: SharedDepsBuildOptions): SharedDependencies;
|
|
142
|
+
interface HostSharedEntry {
|
|
143
|
+
version: string;
|
|
144
|
+
shareScope: string;
|
|
145
|
+
shareConfig: {
|
|
146
|
+
singleton: boolean;
|
|
147
|
+
requiredVersion: string | false;
|
|
148
|
+
strictVersion: boolean;
|
|
149
|
+
eager: boolean;
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
declare function toHostSharedEntry(name: string, config: SharedConfigInput): HostSharedEntry;
|
|
153
|
+
/**
|
|
154
|
+
* The runtime mf-config's core shared map: the same entries
|
|
155
|
+
* `getPluginSharedDependencies` assembles, shaped through the one host mapper
|
|
156
|
+
* (`toHostSharedEntry`) so both consumers derive from a single entry type.
|
|
157
|
+
*/
|
|
158
|
+
declare function buildMfCoreSharedDependencies(options?: SharedDepsBuildOptions): Record<string, HostSharedEntry>;
|
|
159
|
+
interface UiSharedDepEntry {
|
|
160
|
+
version: string;
|
|
161
|
+
requiredVersion: string | false;
|
|
162
|
+
singleton: true;
|
|
163
|
+
strictVersion: boolean;
|
|
164
|
+
eager: false;
|
|
165
|
+
shareScope: "default";
|
|
166
|
+
/** consumer role only: no bundled fallback copy — the provider provides */
|
|
167
|
+
import?: false;
|
|
168
|
+
}
|
|
169
|
+
interface UiSharedDepsOptions {
|
|
170
|
+
/** explicit core-shell parity opt-out; default is the strict singleton */
|
|
171
|
+
strictVersion?: boolean;
|
|
172
|
+
role?: "provider" | "consumer";
|
|
173
|
+
workspaceRoot?: string;
|
|
174
|
+
}
|
|
175
|
+
declare function createUiSharedDeps(options?: UiSharedDepsOptions): Record<string, UiSharedDepEntry>;
|
|
176
|
+
declare function assertResolvedSharedVersion(name: string, version: unknown): string;
|
|
177
|
+
declare function normalizeSharedConfig(config: SharedConfigInput, name: string): SharedDependencyConfig;
|
|
178
|
+
declare function isSameSharedConfig(a: SharedConfigInput, b: SharedConfigInput): boolean;
|
|
179
|
+
declare function mergeSharedMaps(...maps: Array<Record<string, SharedConfigInput> | undefined>): Record<string, SharedDependencyConfig>;
|
|
180
|
+
//#endregion
|
|
181
|
+
export { CORE_SHARED_DEPS, CoreSharedDepName, EFFECT_CRITICAL_SHARED_DEPS, EffectCriticalSharedDepName, HostSharedEntry, SHARED_DEP_SPECS, SharedConfigInput, SharedDependencies, SharedDependencyConfig, SharedDependencyResolution, SharedDependencyResolutionError, SharedDependencyResolutionOptions, SharedDependencySpec, SharedDepsBuildOptions, UI_SHARED_DEPS, UiSharedDepEntry, UiSharedDepsOptions, assertResolvedSharedVersion, buildMfCoreSharedDependencies, createUiSharedDeps, getPluginSharedDependencies, isEffectCriticalSharedDep, isSameSharedConfig, mergeSharedMaps, normalizeSharedConfig, resolveSharedVersion, shareConfigFor, toHostSharedEntry };
|
|
182
|
+
//# sourceMappingURL=shared-deps-spec.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-deps-spec.d.cts","names":[],"sources":["../src/shared-deps-spec.ts"],"mappings":";;;;cA6Ba,wCAAwC;WAG1C;WACA;;EAET,YAAY,qBAAqB;MAOpB;;KAUH;UAEK;EACf;EACA;;EAEA;EACA,YAAY;;cAGD;WACH;;;WAA6D;;WAC7D;;;WAAuD;;WACvD;;;WAAqD;;WACrD;;;WAA+D;;WAC/D;;;WAA6D;;WAC7D;;;WAA6D;;KAU3D,4BAA4B;cAElC;;;;;;cAOO,sCAAsC;KAGvC,sCAAsC;cAErC,4BAAyB;cAGzB;WACH;;;WAAsD;;WACtD;;;WAA0D;;WAC1D;;;WAA6D;;WAC7D;;;WAA+D;;WAC/D;;;WAAsE;;WACtE;;;WAAuE;;WACvE;;;WAA6D;;WAC7D;;;WAA8D;;WAE9D;;;WAGM;;WAGN;;;WAGM;;cAIH,2BAA2B;UAiBvB;EACf;EACA;EACA;EACA;EACA;EACA;;KAGU,qBAAqB,eAAe;KAEpC;EACV;EACA;EACA;EACA;EACA;EACA;;UAGe;;EAEf;EACA;;iBA2Ec,qBACd,cACA,UAAS;iBA8CK,eACd,MAAM,sBACN,kBACC,KAAK;UAkBS;;EAEf;;iBAYc,4BACd,UAAS,yBACR;UASc;EACf;EACA;EACA;IACE;IACA;IACA;IACA;;;iBAIY,kBAAkB,cAAc,QAAQ,oBAAoB;;;;;;iBAmB5D,8BACd,UAAS,yBACR,eAAe;UASD;EACf;EACA;EACA;EACA;EACA;EACA;;EAEA;;UAGe;;EAEf;EACA;EACA;;iBAGc,mBACd,UAAS,sBACR,eAAe;iBAuBF,4BAA4B,cAAc;iBAS1C,sBACd,QAAQ,mBACR,eACC;iBAuBa,mBAAmB,GAAG,mBAAmB,GAAG;iBAa5C,mBACX,MAAM,MAAM,eAAe,kCAC7B,eAAe"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
//#region src/shared-deps-spec.d.ts
|
|
2
|
+
declare const SharedDependencyResolutionError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
3
|
+
readonly _tag: "SharedDependencyResolutionError";
|
|
4
|
+
} & Readonly<A>;
|
|
5
|
+
declare class SharedDependencyResolutionError extends SharedDependencyResolutionError_base<{
|
|
6
|
+
readonly packageName: string;
|
|
7
|
+
readonly searched: string[];
|
|
8
|
+
}> {
|
|
9
|
+
constructor(packageName: string, searched: string[]);
|
|
10
|
+
get message(): string;
|
|
11
|
+
}
|
|
12
|
+
type SharedDependencyResolution = "self" | "package" | "subpath";
|
|
13
|
+
interface SharedDependencySpec {
|
|
14
|
+
name: string;
|
|
15
|
+
singleton: true;
|
|
16
|
+
/** exact-version pin (requiredVersion = resolved version, strictVersion = true) */
|
|
17
|
+
critical: boolean;
|
|
18
|
+
resolution: SharedDependencyResolution;
|
|
19
|
+
}
|
|
20
|
+
declare const CORE_SHARED_DEPS: readonly [{
|
|
21
|
+
readonly name: "every-plugin";
|
|
22
|
+
readonly singleton: true;
|
|
23
|
+
readonly critical: true;
|
|
24
|
+
readonly resolution: "self";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "effect";
|
|
27
|
+
readonly singleton: true;
|
|
28
|
+
readonly critical: true;
|
|
29
|
+
readonly resolution: "package";
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "zod";
|
|
32
|
+
readonly singleton: true;
|
|
33
|
+
readonly critical: false;
|
|
34
|
+
readonly resolution: "package";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "@orpc/contract";
|
|
37
|
+
readonly singleton: true;
|
|
38
|
+
readonly critical: true;
|
|
39
|
+
readonly resolution: "package";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "@orpc/client";
|
|
42
|
+
readonly singleton: true;
|
|
43
|
+
readonly critical: true;
|
|
44
|
+
readonly resolution: "package";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "@orpc/server";
|
|
47
|
+
readonly singleton: true;
|
|
48
|
+
readonly critical: true;
|
|
49
|
+
readonly resolution: "package";
|
|
50
|
+
}];
|
|
51
|
+
type CoreSharedDepName = (typeof CORE_SHARED_DEPS)[number]["name"];
|
|
52
|
+
declare const coreCriticalNames: ("@orpc/client" | "@orpc/contract" | "@orpc/server" | "effect" | "every-plugin")[];
|
|
53
|
+
/**
|
|
54
|
+
* Effect-critical shared names, derived from the core list's `critical: true`
|
|
55
|
+
* entries — the one source of criticality (`strictVersion` pinning in the
|
|
56
|
+
* runtime's version-check machinery keys off this list).
|
|
57
|
+
*/
|
|
58
|
+
declare const EFFECT_CRITICAL_SHARED_DEPS: readonly EffectCriticalSharedDepName[];
|
|
59
|
+
type EffectCriticalSharedDepName = (typeof coreCriticalNames)[number];
|
|
60
|
+
declare const isEffectCriticalSharedDep: (name: string) => boolean;
|
|
61
|
+
declare const UI_SHARED_DEPS: readonly [{
|
|
62
|
+
readonly name: "react";
|
|
63
|
+
readonly singleton: true;
|
|
64
|
+
readonly critical: true;
|
|
65
|
+
readonly resolution: "package";
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "react-dom";
|
|
68
|
+
readonly singleton: true;
|
|
69
|
+
readonly critical: true;
|
|
70
|
+
readonly resolution: "package";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "@orpc/client";
|
|
73
|
+
readonly singleton: true;
|
|
74
|
+
readonly critical: true;
|
|
75
|
+
readonly resolution: "package";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "@orpc/contract";
|
|
78
|
+
readonly singleton: true;
|
|
79
|
+
readonly critical: true;
|
|
80
|
+
readonly resolution: "package";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "@tanstack/react-query";
|
|
83
|
+
readonly singleton: true;
|
|
84
|
+
readonly critical: true;
|
|
85
|
+
readonly resolution: "package";
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "@tanstack/react-router";
|
|
88
|
+
readonly singleton: true;
|
|
89
|
+
readonly critical: true;
|
|
90
|
+
readonly resolution: "package";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "@lingui/core";
|
|
93
|
+
readonly singleton: true;
|
|
94
|
+
readonly critical: true;
|
|
95
|
+
readonly resolution: "package";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "@lingui/react";
|
|
98
|
+
readonly singleton: true;
|
|
99
|
+
readonly critical: true;
|
|
100
|
+
readonly resolution: "package";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "everything-dev/ui/auth";
|
|
103
|
+
readonly singleton: true;
|
|
104
|
+
readonly critical: true;
|
|
105
|
+
readonly resolution: "subpath";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "everything-dev/ui/i18n";
|
|
108
|
+
readonly singleton: true;
|
|
109
|
+
readonly critical: true;
|
|
110
|
+
readonly resolution: "subpath";
|
|
111
|
+
}];
|
|
112
|
+
declare const SHARED_DEP_SPECS: readonly SharedDependencySpec[];
|
|
113
|
+
interface SharedDependencyConfig {
|
|
114
|
+
version: string;
|
|
115
|
+
requiredVersion: string | false;
|
|
116
|
+
singleton: boolean;
|
|
117
|
+
strictVersion: boolean;
|
|
118
|
+
eager: boolean;
|
|
119
|
+
shareScope: string;
|
|
120
|
+
}
|
|
121
|
+
type SharedDependencies = Record<string, SharedDependencyConfig>;
|
|
122
|
+
type SharedConfigInput = {
|
|
123
|
+
version: string;
|
|
124
|
+
requiredVersion?: string | false;
|
|
125
|
+
singleton?: boolean;
|
|
126
|
+
strictVersion?: boolean;
|
|
127
|
+
eager?: boolean;
|
|
128
|
+
shareScope?: string;
|
|
129
|
+
};
|
|
130
|
+
interface SharedDependencyResolutionOptions {
|
|
131
|
+
/** the building workspace to resolve from; default is this module's own location */
|
|
132
|
+
workspaceRoot?: string;
|
|
133
|
+
resolution?: "package" | "subpath";
|
|
134
|
+
}
|
|
135
|
+
declare function resolveSharedVersion(name: string, options?: SharedDependencyResolutionOptions): string;
|
|
136
|
+
declare function shareConfigFor(spec: SharedDependencySpec, version: string): Omit<SharedDependencyConfig, "version">;
|
|
137
|
+
interface SharedDepsBuildOptions {
|
|
138
|
+
/** the every-plugin share version; default resolves the installed package.json */
|
|
139
|
+
ownVersion?: string;
|
|
140
|
+
}
|
|
141
|
+
declare function getPluginSharedDependencies(options?: SharedDepsBuildOptions): SharedDependencies;
|
|
142
|
+
interface HostSharedEntry {
|
|
143
|
+
version: string;
|
|
144
|
+
shareScope: string;
|
|
145
|
+
shareConfig: {
|
|
146
|
+
singleton: boolean;
|
|
147
|
+
requiredVersion: string | false;
|
|
148
|
+
strictVersion: boolean;
|
|
149
|
+
eager: boolean;
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
declare function toHostSharedEntry(name: string, config: SharedConfigInput): HostSharedEntry;
|
|
153
|
+
/**
|
|
154
|
+
* The runtime mf-config's core shared map: the same entries
|
|
155
|
+
* `getPluginSharedDependencies` assembles, shaped through the one host mapper
|
|
156
|
+
* (`toHostSharedEntry`) so both consumers derive from a single entry type.
|
|
157
|
+
*/
|
|
158
|
+
declare function buildMfCoreSharedDependencies(options?: SharedDepsBuildOptions): Record<string, HostSharedEntry>;
|
|
159
|
+
interface UiSharedDepEntry {
|
|
160
|
+
version: string;
|
|
161
|
+
requiredVersion: string | false;
|
|
162
|
+
singleton: true;
|
|
163
|
+
strictVersion: boolean;
|
|
164
|
+
eager: false;
|
|
165
|
+
shareScope: "default";
|
|
166
|
+
/** consumer role only: no bundled fallback copy — the provider provides */
|
|
167
|
+
import?: false;
|
|
168
|
+
}
|
|
169
|
+
interface UiSharedDepsOptions {
|
|
170
|
+
/** explicit core-shell parity opt-out; default is the strict singleton */
|
|
171
|
+
strictVersion?: boolean;
|
|
172
|
+
role?: "provider" | "consumer";
|
|
173
|
+
workspaceRoot?: string;
|
|
174
|
+
}
|
|
175
|
+
declare function createUiSharedDeps(options?: UiSharedDepsOptions): Record<string, UiSharedDepEntry>;
|
|
176
|
+
declare function assertResolvedSharedVersion(name: string, version: unknown): string;
|
|
177
|
+
declare function normalizeSharedConfig(config: SharedConfigInput, name: string): SharedDependencyConfig;
|
|
178
|
+
declare function isSameSharedConfig(a: SharedConfigInput, b: SharedConfigInput): boolean;
|
|
179
|
+
declare function mergeSharedMaps(...maps: Array<Record<string, SharedConfigInput> | undefined>): Record<string, SharedDependencyConfig>;
|
|
180
|
+
//#endregion
|
|
181
|
+
export { CORE_SHARED_DEPS, CoreSharedDepName, EFFECT_CRITICAL_SHARED_DEPS, EffectCriticalSharedDepName, HostSharedEntry, SHARED_DEP_SPECS, SharedConfigInput, SharedDependencies, SharedDependencyConfig, SharedDependencyResolution, SharedDependencyResolutionError, SharedDependencyResolutionOptions, SharedDependencySpec, SharedDepsBuildOptions, UI_SHARED_DEPS, UiSharedDepEntry, UiSharedDepsOptions, assertResolvedSharedVersion, buildMfCoreSharedDependencies, createUiSharedDeps, getPluginSharedDependencies, isEffectCriticalSharedDep, isSameSharedConfig, mergeSharedMaps, normalizeSharedConfig, resolveSharedVersion, shareConfigFor, toHostSharedEntry };
|
|
182
|
+
//# sourceMappingURL=shared-deps-spec.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-deps-spec.d.mts","names":[],"sources":["../src/shared-deps-spec.ts"],"mappings":";;;;cA6Ba,wCAAwC;WAG1C;WACA;;EAET,YAAY,qBAAqB;MAOpB;;KAUH;UAEK;EACf;EACA;;EAEA;EACA,YAAY;;cAGD;WACH;;;WAA6D;;WAC7D;;;WAAuD;;WACvD;;;WAAqD;;WACrD;;;WAA+D;;WAC/D;;;WAA6D;;WAC7D;;;WAA6D;;KAU3D,4BAA4B;cAElC;;;;;;cAOO,sCAAsC;KAGvC,sCAAsC;cAErC,4BAAyB;cAGzB;WACH;;;WAAsD;;WACtD;;;WAA0D;;WAC1D;;;WAA6D;;WAC7D;;;WAA+D;;WAC/D;;;WAAsE;;WACtE;;;WAAuE;;WACvE;;;WAA6D;;WAC7D;;;WAA8D;;WAE9D;;;WAGM;;WAGN;;;WAGM;;cAIH,2BAA2B;UAiBvB;EACf;EACA;EACA;EACA;EACA;EACA;;KAGU,qBAAqB,eAAe;KAEpC;EACV;EACA;EACA;EACA;EACA;EACA;;UAGe;;EAEf;EACA;;iBA2Ec,qBACd,cACA,UAAS;iBA8CK,eACd,MAAM,sBACN,kBACC,KAAK;UAkBS;;EAEf;;iBAYc,4BACd,UAAS,yBACR;UASc;EACf;EACA;EACA;IACE;IACA;IACA;IACA;;;iBAIY,kBAAkB,cAAc,QAAQ,oBAAoB;;;;;;iBAmB5D,8BACd,UAAS,yBACR,eAAe;UASD;EACf;EACA;EACA;EACA;EACA;EACA;;EAEA;;UAGe;;EAEf;EACA;EACA;;iBAGc,mBACd,UAAS,sBACR,eAAe;iBAuBF,4BAA4B,cAAc;iBAS1C,sBACd,QAAQ,mBACR,eACC;iBAuBa,mBAAmB,GAAG,mBAAmB,GAAG;iBAa5C,mBACX,MAAM,MAAM,eAAe,kCAC7B,eAAe"}
|