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
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
//#region src/build/shared-deps.d.ts
|
|
2
|
-
interface SharedDependencyConfig {
|
|
3
|
-
version: string;
|
|
4
|
-
requiredVersion: string | false;
|
|
5
|
-
singleton: boolean;
|
|
6
|
-
strictVersion: boolean;
|
|
7
|
-
eager: boolean;
|
|
8
|
-
shareScope: string;
|
|
9
|
-
}
|
|
10
|
-
type SharedDependencies = Record<string, SharedDependencyConfig>;
|
|
11
|
-
declare const pluginSharedDependencies: {
|
|
12
|
-
"every-plugin": {
|
|
13
|
-
requiredVersion: string | false;
|
|
14
|
-
singleton: boolean;
|
|
15
|
-
strictVersion: boolean;
|
|
16
|
-
eager: boolean;
|
|
17
|
-
shareScope: string;
|
|
18
|
-
version: string;
|
|
19
|
-
};
|
|
20
|
-
effect: {
|
|
21
|
-
requiredVersion: string | false;
|
|
22
|
-
singleton: boolean;
|
|
23
|
-
strictVersion: boolean;
|
|
24
|
-
eager: boolean;
|
|
25
|
-
shareScope: string;
|
|
26
|
-
version: string;
|
|
27
|
-
};
|
|
28
|
-
zod: {
|
|
29
|
-
requiredVersion: string | false;
|
|
30
|
-
singleton: boolean;
|
|
31
|
-
strictVersion: boolean;
|
|
32
|
-
eager: boolean;
|
|
33
|
-
shareScope: string;
|
|
34
|
-
version: string;
|
|
35
|
-
};
|
|
36
|
-
"@orpc/contract": {
|
|
37
|
-
requiredVersion: string | false;
|
|
38
|
-
singleton: boolean;
|
|
39
|
-
strictVersion: boolean;
|
|
40
|
-
eager: boolean;
|
|
41
|
-
shareScope: string;
|
|
42
|
-
version: string;
|
|
43
|
-
};
|
|
44
|
-
"@orpc/client": {
|
|
45
|
-
requiredVersion: string | false;
|
|
46
|
-
singleton: boolean;
|
|
47
|
-
strictVersion: boolean;
|
|
48
|
-
eager: boolean;
|
|
49
|
-
shareScope: string;
|
|
50
|
-
version: string;
|
|
51
|
-
};
|
|
52
|
-
"@orpc/server": {
|
|
53
|
-
requiredVersion: string | false;
|
|
54
|
-
singleton: boolean;
|
|
55
|
-
strictVersion: boolean;
|
|
56
|
-
eager: boolean;
|
|
57
|
-
shareScope: string;
|
|
58
|
-
version: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
type PluginSharedDependencyName = keyof typeof pluginSharedDependencies;
|
|
62
|
-
declare function getPluginSharedDependencies(): SharedDependencies;
|
|
63
|
-
declare function getPluginSharedDependenciesVersionRange(): Record<string, string>;
|
|
64
|
-
declare function getMajorMinorVersion(version: string): string;
|
|
65
|
-
//#endregion
|
|
66
|
-
export { PluginSharedDependencyName, SharedDependencies, SharedDependencyConfig, getMajorMinorVersion, getPluginSharedDependencies, getPluginSharedDependenciesVersionRange, pluginSharedDependencies };
|
|
67
|
-
//# sourceMappingURL=shared-deps.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared-deps.d.cts","names":[],"sources":["../../src/build/shared-deps.ts"],"mappings":";UAgBiB;EACf;EACA;EACA;EACA;EACA;EACA;;KAGU,qBAAqB,eAAe;cAgCnC;;IAvCM;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;KA2DF,0CAA0C;iBAEtC,+BAA+B;iBAI/B,2CAA2C;iBAS3C,qBAAqB"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
//#region src/build/shared-deps.d.ts
|
|
2
|
-
interface SharedDependencyConfig {
|
|
3
|
-
version: string;
|
|
4
|
-
requiredVersion: string | false;
|
|
5
|
-
singleton: boolean;
|
|
6
|
-
strictVersion: boolean;
|
|
7
|
-
eager: boolean;
|
|
8
|
-
shareScope: string;
|
|
9
|
-
}
|
|
10
|
-
type SharedDependencies = Record<string, SharedDependencyConfig>;
|
|
11
|
-
declare const pluginSharedDependencies: {
|
|
12
|
-
"every-plugin": {
|
|
13
|
-
requiredVersion: string | false;
|
|
14
|
-
singleton: boolean;
|
|
15
|
-
strictVersion: boolean;
|
|
16
|
-
eager: boolean;
|
|
17
|
-
shareScope: string;
|
|
18
|
-
version: string;
|
|
19
|
-
};
|
|
20
|
-
effect: {
|
|
21
|
-
requiredVersion: string | false;
|
|
22
|
-
singleton: boolean;
|
|
23
|
-
strictVersion: boolean;
|
|
24
|
-
eager: boolean;
|
|
25
|
-
shareScope: string;
|
|
26
|
-
version: string;
|
|
27
|
-
};
|
|
28
|
-
zod: {
|
|
29
|
-
requiredVersion: string | false;
|
|
30
|
-
singleton: boolean;
|
|
31
|
-
strictVersion: boolean;
|
|
32
|
-
eager: boolean;
|
|
33
|
-
shareScope: string;
|
|
34
|
-
version: string;
|
|
35
|
-
};
|
|
36
|
-
"@orpc/contract": {
|
|
37
|
-
requiredVersion: string | false;
|
|
38
|
-
singleton: boolean;
|
|
39
|
-
strictVersion: boolean;
|
|
40
|
-
eager: boolean;
|
|
41
|
-
shareScope: string;
|
|
42
|
-
version: string;
|
|
43
|
-
};
|
|
44
|
-
"@orpc/client": {
|
|
45
|
-
requiredVersion: string | false;
|
|
46
|
-
singleton: boolean;
|
|
47
|
-
strictVersion: boolean;
|
|
48
|
-
eager: boolean;
|
|
49
|
-
shareScope: string;
|
|
50
|
-
version: string;
|
|
51
|
-
};
|
|
52
|
-
"@orpc/server": {
|
|
53
|
-
requiredVersion: string | false;
|
|
54
|
-
singleton: boolean;
|
|
55
|
-
strictVersion: boolean;
|
|
56
|
-
eager: boolean;
|
|
57
|
-
shareScope: string;
|
|
58
|
-
version: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
type PluginSharedDependencyName = keyof typeof pluginSharedDependencies;
|
|
62
|
-
declare function getPluginSharedDependencies(): SharedDependencies;
|
|
63
|
-
declare function getPluginSharedDependenciesVersionRange(): Record<string, string>;
|
|
64
|
-
declare function getMajorMinorVersion(version: string): string;
|
|
65
|
-
//#endregion
|
|
66
|
-
export { PluginSharedDependencyName, SharedDependencies, SharedDependencyConfig, getMajorMinorVersion, getPluginSharedDependencies, getPluginSharedDependenciesVersionRange, pluginSharedDependencies };
|
|
67
|
-
//# sourceMappingURL=shared-deps.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared-deps.d.mts","names":[],"sources":["../../src/build/shared-deps.ts"],"mappings":";UAgBiB;EACf;EACA;EACA;EACA;EACA;EACA;;KAGU,qBAAqB,eAAe;cAgCnC;;IAvCM;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;IAJK;IACN;IACI;IACR;IACK;;;;KA2DF,0CAA0C;iBAEtC,+BAA+B;iBAI/B,2CAA2C;iBAS3C,qBAAqB"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
-
import { dirname, join } from "node:path";
|
|
4
|
-
import { fileURLToPath } from "node:url";
|
|
5
|
-
|
|
6
|
-
//#region src/build/shared-deps.ts
|
|
7
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
-
const require = createRequire(import.meta.url);
|
|
9
|
-
let pkg;
|
|
10
|
-
try {
|
|
11
|
-
pkg = JSON.parse(readFileSync(join(__dirname, "../../package.json"), "utf-8"));
|
|
12
|
-
} catch {
|
|
13
|
-
pkg = require("every-plugin/package.json");
|
|
14
|
-
}
|
|
15
|
-
const DEFAULT_SHARE_CONFIG = {
|
|
16
|
-
requiredVersion: false,
|
|
17
|
-
singleton: true,
|
|
18
|
-
strictVersion: false,
|
|
19
|
-
eager: false,
|
|
20
|
-
shareScope: "default"
|
|
21
|
-
};
|
|
22
|
-
function extractExactVersion(input) {
|
|
23
|
-
const match = input.match(/\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?/);
|
|
24
|
-
return match ? match[0] : input.replace(/^[\^~>=<\s]+/, "");
|
|
25
|
-
}
|
|
26
|
-
function getInstalledPackageVersion(packageName, fallbackVersion) {
|
|
27
|
-
try {
|
|
28
|
-
let currentDir = dirname(require.resolve(packageName));
|
|
29
|
-
for (let i = 0; i < 5; i += 1) {
|
|
30
|
-
const packageJsonPath = join(currentDir, "package.json");
|
|
31
|
-
if (existsSync(packageJsonPath)) return JSON.parse(readFileSync(packageJsonPath, "utf-8")).version;
|
|
32
|
-
currentDir = dirname(currentDir);
|
|
33
|
-
}
|
|
34
|
-
throw new Error(`Could not resolve installed version for ${packageName}`);
|
|
35
|
-
} catch {
|
|
36
|
-
return extractExactVersion(fallbackVersion);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const pluginSharedDependencies = {
|
|
40
|
-
"every-plugin": {
|
|
41
|
-
version: pkg.version,
|
|
42
|
-
...DEFAULT_SHARE_CONFIG
|
|
43
|
-
},
|
|
44
|
-
effect: {
|
|
45
|
-
version: getInstalledPackageVersion("effect", pkg.peerDependencies.effect),
|
|
46
|
-
...DEFAULT_SHARE_CONFIG
|
|
47
|
-
},
|
|
48
|
-
zod: {
|
|
49
|
-
version: getInstalledPackageVersion("zod", pkg.peerDependencies.zod),
|
|
50
|
-
...DEFAULT_SHARE_CONFIG
|
|
51
|
-
},
|
|
52
|
-
"@orpc/contract": {
|
|
53
|
-
version: getInstalledPackageVersion("@orpc/contract", pkg.peerDependencies["@orpc/contract"]),
|
|
54
|
-
...DEFAULT_SHARE_CONFIG
|
|
55
|
-
},
|
|
56
|
-
"@orpc/client": {
|
|
57
|
-
version: getInstalledPackageVersion("@orpc/client", pkg.peerDependencies["@orpc/client"]),
|
|
58
|
-
...DEFAULT_SHARE_CONFIG
|
|
59
|
-
},
|
|
60
|
-
"@orpc/server": {
|
|
61
|
-
version: getInstalledPackageVersion("@orpc/server", pkg.peerDependencies["@orpc/server"]),
|
|
62
|
-
...DEFAULT_SHARE_CONFIG
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
function getPluginSharedDependencies() {
|
|
66
|
-
return pluginSharedDependencies;
|
|
67
|
-
}
|
|
68
|
-
function getPluginSharedDependenciesVersionRange() {
|
|
69
|
-
return Object.fromEntries(Object.entries(getPluginSharedDependencies()).map(([name, config]) => [name, getMajorMinorVersion(config.version)]));
|
|
70
|
-
}
|
|
71
|
-
function getMajorMinorVersion(version) {
|
|
72
|
-
const match = version.replace(/^[\^~>=<]+/, "").match(/^(\d+)\.(\d+)/);
|
|
73
|
-
if (!match) return "^0.0.0";
|
|
74
|
-
return `^${match[1]}.${match[2]}.0`;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
//#endregion
|
|
78
|
-
export { getMajorMinorVersion, getPluginSharedDependencies, getPluginSharedDependenciesVersionRange, pluginSharedDependencies };
|
|
79
|
-
//# sourceMappingURL=shared-deps.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared-deps.mjs","names":[],"sources":["../../src/build/shared-deps.ts"],"sourcesContent":["import { existsSync, readFileSync } from \"node:fs\";\nimport { createRequire } from \"node:module\";\nimport { dirname, join } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst require = createRequire(import.meta.url);\n\nlet pkg: typeof import(\"../../package.json\");\n\ntry {\n pkg = JSON.parse(readFileSync(join(__dirname, \"../../package.json\"), \"utf-8\"));\n} catch {\n pkg = require(\"every-plugin/package.json\");\n}\n\nexport interface SharedDependencyConfig {\n version: string;\n requiredVersion: string | false;\n singleton: boolean;\n strictVersion: boolean;\n eager: boolean;\n shareScope: string;\n}\n\nexport type SharedDependencies = Record<string, SharedDependencyConfig>;\n\nconst DEFAULT_SHARE_CONFIG: Omit<SharedDependencyConfig, \"version\"> = {\n requiredVersion: false,\n singleton: true,\n strictVersion: false,\n eager: false,\n shareScope: \"default\",\n};\n\nfunction extractExactVersion(input: string): string {\n const match = input.match(/\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?/);\n return match ? match[0] : input.replace(/^[\\^~>=<\\s]+/, \"\");\n}\n\nfunction getInstalledPackageVersion(packageName: string, fallbackVersion: string): string {\n try {\n let currentDir = dirname(require.resolve(packageName));\n for (let i = 0; i < 5; i += 1) {\n const packageJsonPath = join(currentDir, \"package.json\");\n if (existsSync(packageJsonPath)) {\n return (JSON.parse(readFileSync(packageJsonPath, \"utf-8\")) as { version: string }).version;\n }\n currentDir = dirname(currentDir);\n }\n\n throw new Error(`Could not resolve installed version for ${packageName}`);\n } catch {\n return extractExactVersion(fallbackVersion);\n }\n}\n\nexport const pluginSharedDependencies = {\n \"every-plugin\": { version: pkg.version, ...DEFAULT_SHARE_CONFIG },\n effect: {\n version: getInstalledPackageVersion(\"effect\", pkg.peerDependencies.effect),\n ...DEFAULT_SHARE_CONFIG,\n },\n zod: {\n version: getInstalledPackageVersion(\"zod\", pkg.peerDependencies.zod),\n ...DEFAULT_SHARE_CONFIG,\n },\n \"@orpc/contract\": {\n version: getInstalledPackageVersion(\"@orpc/contract\", pkg.peerDependencies[\"@orpc/contract\"]),\n ...DEFAULT_SHARE_CONFIG,\n },\n \"@orpc/client\": {\n version: getInstalledPackageVersion(\"@orpc/client\", pkg.peerDependencies[\"@orpc/client\"]),\n ...DEFAULT_SHARE_CONFIG,\n },\n \"@orpc/server\": {\n version: getInstalledPackageVersion(\"@orpc/server\", pkg.peerDependencies[\"@orpc/server\"]),\n ...DEFAULT_SHARE_CONFIG,\n },\n} satisfies SharedDependencies;\n\nexport type PluginSharedDependencyName = keyof typeof pluginSharedDependencies;\n\nexport function getPluginSharedDependencies(): SharedDependencies {\n return pluginSharedDependencies;\n}\n\nexport function getPluginSharedDependenciesVersionRange(): Record<string, string> {\n return Object.fromEntries(\n Object.entries(getPluginSharedDependencies()).map(([name, config]) => [\n name,\n getMajorMinorVersion(config.version),\n ]),\n );\n}\n\nexport function getMajorMinorVersion(version: string): string {\n const clean = version.replace(/^[\\^~>=<]+/, \"\");\n const match = clean.match(/^(\\d+)\\.(\\d+)/);\n if (!match) return \"^0.0.0\";\n return `^${match[1]}.${match[2]}.0`;\n}\n"],"mappings":";;;;;;AAKA,MAAM,YAAY,QAAQ,cAAc,OAAO,KAAK,GAAG,CAAC;AACxD,MAAM,UAAU,cAAc,OAAO,KAAK,GAAG;AAE7C,IAAI;AAEJ,IAAI;CACF,MAAM,KAAK,MAAM,aAAa,KAAK,WAAW,oBAAoB,GAAG,OAAO,CAAC;AAC/E,QAAQ;CACN,MAAM,QAAQ,2BAA2B;AAC3C;AAaA,MAAM,uBAAgE;CACpE,iBAAiB;CACjB,WAAW;CACX,eAAe;CACf,OAAO;CACP,YAAY;AACd;AAEA,SAAS,oBAAoB,OAAuB;CAClD,MAAM,QAAQ,MAAM,MAAM,mCAAmC;CAC7D,OAAO,QAAQ,MAAM,KAAK,MAAM,QAAQ,gBAAgB,EAAE;AAC5D;AAEA,SAAS,2BAA2B,aAAqB,iBAAiC;CACxF,IAAI;EACF,IAAI,aAAa,QAAQ,QAAQ,QAAQ,WAAW,CAAC;EACrD,KAAK,IAAI,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG;GAC7B,MAAM,kBAAkB,KAAK,YAAY,cAAc;GACvD,IAAI,WAAW,eAAe,GAC5B,OAAQ,KAAK,MAAM,aAAa,iBAAiB,OAAO,CAAC,CAAC,CAAyB;GAErF,aAAa,QAAQ,UAAU;EACjC;EAEA,MAAM,IAAI,MAAM,2CAA2C,aAAa;CAC1E,QAAQ;EACN,OAAO,oBAAoB,eAAe;CAC5C;AACF;AAEA,MAAa,2BAA2B;CACtC,gBAAgB;EAAE,SAAS,IAAI;EAAS,GAAG;CAAqB;CAChE,QAAQ;EACN,SAAS,2BAA2B,UAAU,IAAI,iBAAiB,MAAM;EACzE,GAAG;CACL;CACA,KAAK;EACH,SAAS,2BAA2B,OAAO,IAAI,iBAAiB,GAAG;EACnE,GAAG;CACL;CACA,kBAAkB;EAChB,SAAS,2BAA2B,kBAAkB,IAAI,iBAAiB,iBAAiB;EAC5F,GAAG;CACL;CACA,gBAAgB;EACd,SAAS,2BAA2B,gBAAgB,IAAI,iBAAiB,eAAe;EACxF,GAAG;CACL;CACA,gBAAgB;EACd,SAAS,2BAA2B,gBAAgB,IAAI,iBAAiB,eAAe;EACxF,GAAG;CACL;AACF;AAIA,SAAgB,8BAAkD;CAChE,OAAO;AACT;AAEA,SAAgB,0CAAkE;CAChF,OAAO,OAAO,YACZ,OAAO,QAAQ,4BAA4B,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,YAAY,CACpE,MACA,qBAAqB,OAAO,OAAO,CACrC,CAAC,CACH;AACF;AAEA,SAAgB,qBAAqB,SAAyB;CAE5D,MAAM,QADQ,QAAQ,QAAQ,cAAc,EAC1B,CAAC,CAAC,MAAM,eAAe;CACzC,IAAI,CAAC,OAAO,OAAO;CACnB,OAAO,IAAI,MAAM,GAAG,GAAG,MAAM,GAAG;AAClC"}
|
package/dist/effect.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var effect = require("effect");
|
|
4
|
-
Object.keys(effect).forEach(function (k) {
|
|
5
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function () { return effect[k]; }
|
|
8
|
-
});
|
|
9
|
-
});
|
package/dist/effect.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "effect";
|
package/dist/effect.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "effect";
|
package/dist/effect.mjs
DELETED
package/dist/orpc-openapi.cjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var _orpc_openapi = require("@orpc/openapi");
|
|
4
|
-
Object.keys(_orpc_openapi).forEach(function (k) {
|
|
5
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function () { return _orpc_openapi[k]; }
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
var _orpc_zod = require("@orpc/zod");
|
|
12
|
-
Object.keys(_orpc_zod).forEach(function (k) {
|
|
13
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return _orpc_zod[k]; }
|
|
16
|
-
});
|
|
17
|
-
});
|
package/dist/orpc-openapi.d.cts
DELETED
package/dist/orpc-openapi.d.mts
DELETED
package/dist/orpc-openapi.mjs
DELETED
package/dist/orpc.cjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
let _orpc_experimental_publisher_ioredis = require("@orpc/experimental-publisher/ioredis");
|
|
3
|
-
let _orpc_experimental_publisher_memory = require("@orpc/experimental-publisher/memory");
|
|
4
|
-
let _orpc_experimental_publisher_upstash_redis = require("@orpc/experimental-publisher/upstash-redis");
|
|
5
|
-
|
|
6
|
-
Object.defineProperty(exports, 'IORedisPublisher', {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _orpc_experimental_publisher_ioredis.IORedisPublisher;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, 'MemoryPublisher', {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _orpc_experimental_publisher_memory.MemoryPublisher;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, 'UpstashRedisPublisher', {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _orpc_experimental_publisher_upstash_redis.UpstashRedisPublisher;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
var _orpc_contract = require("@orpc/contract");
|
|
25
|
-
Object.keys(_orpc_contract).forEach(function (k) {
|
|
26
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function () { return _orpc_contract[k]; }
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
var _orpc_experimental_publisher = require("@orpc/experimental-publisher");
|
|
33
|
-
Object.keys(_orpc_experimental_publisher).forEach(function (k) {
|
|
34
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () { return _orpc_experimental_publisher[k]; }
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
var _orpc_server = require("@orpc/server");
|
|
41
|
-
Object.keys(_orpc_server).forEach(function (k) {
|
|
42
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () { return _orpc_server[k]; }
|
|
45
|
-
});
|
|
46
|
-
});
|
package/dist/orpc.d.cts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IORedisPublisher, IORedisPublisherOptions } from "@orpc/experimental-publisher/ioredis";
|
|
2
|
-
import { MemoryPublisher, MemoryPublisherOptions } from "@orpc/experimental-publisher/memory";
|
|
3
|
-
import { UpstashRedisPublisher, UpstashRedisPublisherOptions } from "@orpc/experimental-publisher/upstash-redis";
|
|
4
|
-
export * from "@orpc/contract";
|
|
5
|
-
export * from "@orpc/server";
|
|
6
|
-
export * from "@orpc/experimental-publisher";
|
|
7
|
-
export { IORedisPublisher, type IORedisPublisherOptions, MemoryPublisher, type MemoryPublisherOptions, UpstashRedisPublisher, type UpstashRedisPublisherOptions };
|
package/dist/orpc.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IORedisPublisher, IORedisPublisherOptions } from "@orpc/experimental-publisher/ioredis";
|
|
2
|
-
import { MemoryPublisher, MemoryPublisherOptions } from "@orpc/experimental-publisher/memory";
|
|
3
|
-
import { UpstashRedisPublisher, UpstashRedisPublisherOptions } from "@orpc/experimental-publisher/upstash-redis";
|
|
4
|
-
export * from "@orpc/contract";
|
|
5
|
-
export * from "@orpc/server";
|
|
6
|
-
export * from "@orpc/experimental-publisher";
|
|
7
|
-
export { IORedisPublisher, type IORedisPublisherOptions, MemoryPublisher, type MemoryPublisherOptions, UpstashRedisPublisher, type UpstashRedisPublisherOptions };
|
package/dist/orpc.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IORedisPublisher } from "@orpc/experimental-publisher/ioredis";
|
|
2
|
-
import { MemoryPublisher } from "@orpc/experimental-publisher/memory";
|
|
3
|
-
import { UpstashRedisPublisher } from "@orpc/experimental-publisher/upstash-redis";
|
|
4
|
-
|
|
5
|
-
export * from "@orpc/contract"
|
|
6
|
-
|
|
7
|
-
export * from "@orpc/server"
|
|
8
|
-
|
|
9
|
-
export * from "@orpc/experimental-publisher"
|
|
10
|
-
|
|
11
|
-
export { IORedisPublisher, MemoryPublisher, UpstashRedisPublisher };
|
package/dist/package.cjs
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region package.json
|
|
3
|
-
var peerDependencies = {
|
|
4
|
-
"@rspack/core": "catalog:",
|
|
5
|
-
"typescript": "^5.9.3",
|
|
6
|
-
"effect": "catalog:",
|
|
7
|
-
"zod": "catalog:",
|
|
8
|
-
"@orpc/contract": "catalog:",
|
|
9
|
-
"@orpc/server": "catalog:",
|
|
10
|
-
"@orpc/client": "catalog:",
|
|
11
|
-
"@orpc/openapi": "catalog:",
|
|
12
|
-
"@orpc/zod": "catalog:",
|
|
13
|
-
"@orpc/tanstack-query": "catalog:"
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
Object.defineProperty(exports, 'peerDependencies', {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () {
|
|
20
|
-
return peerDependencies;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=package.cjs.map
|
package/dist/package.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package.cjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|
package/dist/package.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region package.json
|
|
2
|
-
var peerDependencies = {
|
|
3
|
-
"@rspack/core": "catalog:",
|
|
4
|
-
"typescript": "^5.9.3",
|
|
5
|
-
"effect": "catalog:",
|
|
6
|
-
"zod": "catalog:",
|
|
7
|
-
"@orpc/contract": "catalog:",
|
|
8
|
-
"@orpc/server": "catalog:",
|
|
9
|
-
"@orpc/client": "catalog:",
|
|
10
|
-
"@orpc/openapi": "catalog:",
|
|
11
|
-
"@orpc/zod": "catalog:",
|
|
12
|
-
"@orpc/tanstack-query": "catalog:"
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
export { peerDependencies };
|
|
17
|
-
//# sourceMappingURL=package.mjs.map
|
package/dist/package.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package.mjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module-federation.service.d.cts","names":[],"sources":["../../../src/runtime/services/module-federation.service.ts"],"mappings":";;;;;IAsFmC,iBAAA,kBAAM,gBAAa,OAAA,aAAA;IA+BZ,wBAAA,kBAAM,gBAAa,OAAA,YAAA;;;cAtChD,gCAAgC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module-federation.service.d.mts","names":[],"sources":["../../../src/runtime/services/module-federation.service.ts"],"mappings":";;;;;IAsFmC,iBAAA,kBAAM,gBAAa,OAAA,aAAA;IA+BZ,wBAAA,kBAAM,gBAAa,OAAA,YAAA;;;cAtChD,gCAAgC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.cjs","names":[],"sources":["../../../src/runtime/services/normalize.ts"],"sourcesContent":["/**\n * Normalizes a package name into the module federation remote name.\n * This function must produce identical results in both runtime and build contexts.\n *\n * Normalization rules:\n * - Convert to lowercase\n * - Strip a single leading '@' symbol\n * - Replace '/' with '_'\n * - Preserve hyphens and other characters\n *\n * Examples:\n * - \"@scope/my-plugin\" → \"scope_my-plugin\"\n * - \"@SCOPE/Foo/Bar\" → \"scope_foo_bar\"\n * - \"foo/bar\" → \"foo_bar\"\n * - \"simple-plugin\" → \"simple-plugin\"\n */\nexport const getNormalizedRemoteName = (name: string): string =>\n name.toLowerCase().replace(/^@/, \"\").replace(/\\//g, \"_\");\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAgBA,MAAa,2BAA2B,SACtC,KAAK,YAAY,CAAC,CAAC,QAAQ,MAAM,EAAE,CAAC,CAAC,QAAQ,OAAO,GAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.cts","names":[],"sources":["../../../src/runtime/services/normalize.ts"],"mappings":";;;;;;;;;;;;;;;;;cAgBa,0BAA2B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.mts","names":[],"sources":["../../../src/runtime/services/normalize.ts"],"mappings":";;;;;;;;;;;;;;;;;cAgBa,0BAA2B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.mjs","names":[],"sources":["../../../src/runtime/services/normalize.ts"],"sourcesContent":["/**\n * Normalizes a package name into the module federation remote name.\n * This function must produce identical results in both runtime and build contexts.\n *\n * Normalization rules:\n * - Convert to lowercase\n * - Strip a single leading '@' symbol\n * - Replace '/' with '_'\n * - Preserve hyphens and other characters\n *\n * Examples:\n * - \"@scope/my-plugin\" → \"scope_my-plugin\"\n * - \"@SCOPE/Foo/Bar\" → \"scope_foo_bar\"\n * - \"foo/bar\" → \"foo_bar\"\n * - \"simple-plugin\" → \"simple-plugin\"\n */\nexport const getNormalizedRemoteName = (name: string): string =>\n name.toLowerCase().replace(/^@/, \"\").replace(/\\//g, \"_\");\n"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,MAAa,2BAA2B,SACtC,KAAK,YAAY,CAAC,CAAC,QAAQ,MAAM,EAAE,CAAC,CAAC,QAAQ,OAAO,GAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-lifecycle.service.d.cts","names":[],"sources":["../../../src/runtime/services/plugin-lifecycle.service.ts"],"mappings":";;;;;;IAWmB,WAAA,UAAU,WAAS,QAAU,kBAAkB,OAAE,OAAA;IAKvC,aAAA,QAAA,kBAAkB,eAAU,OAAA;IAO9B,WAAA,QAAA,kBAAkB,eAAU,OAAA,aAA5B;;;;cAnBd,+BAA+B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-lifecycle.service.d.mts","names":[],"sources":["../../../src/runtime/services/plugin-lifecycle.service.ts"],"mappings":";;;;;;IAWmB,WAAA,UAAU,WAAS,QAAU,kBAAkB,OAAE,OAAA;IAKvC,aAAA,QAAA,kBAAkB,eAAU,OAAA;IAO9B,WAAA,QAAA,kBAAkB,eAAU,OAAA,aAA5B;;;;cAnBd,+BAA+B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-loader.service.d.cts","names":[],"sources":["../../../src/runtime/services/plugin-loader.service.ts"],"mappings":";;;;;;;;cAkBa,0BAA0B;;cAK1B,qBAAqB;;;IAWZ,MAAA,qBAAM,OAAA;;MAsBT,UAAA;;;MAUF,UAAA;;IAIW,YAAA,qBAAM,OAAA,OAAA;;;cA1CrB,wBAAwB;;;IA2DN,aAAA,qBAAM,OAAA;;;;IAuDT,oBAAA,UAAU,WAAS,kBAAkB,cAAgB,aAAa,OAAE,OAAA;;;;IAmBrE,mBAAA,UAAU,WAAS,gBACpB,eAAe,IAAE;MAE/B,WAAW,iBAAiB;MAC5B,SAAS,iBAAiB;OAC3B,UACS,4BAAuB,OAAA;;;;;;;;;;;;cA5F9B,4BAA4B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-loader.service.d.mts","names":[],"sources":["../../../src/runtime/services/plugin-loader.service.ts"],"mappings":";;;;;;;;cAkBa,0BAA0B;;cAK1B,qBAAqB;;;IAWZ,MAAA,qBAAM,OAAA;;MAsBT,UAAA;;;MAUF,UAAA;;IAIW,YAAA,qBAAM,OAAA,OAAA;;;cA1CrB,wBAAwB;;;IA2DN,aAAA,qBAAM,OAAA;;;;IAuDT,oBAAA,UAAU,WAAS,kBAAkB,cAAgB,aAAa,OAAE,OAAA;;;;IAmBrE,mBAAA,UAAU,WAAS,gBACpB,eAAe,IAAE;MAE/B,WAAW,iBAAiB;MAC5B,SAAS,iBAAiB;OAC3B,UACS,4BAAuB,OAAA;;;;;;;;;;;;cA5F9B,4BAA4B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.service.d.cts","names":[],"sources":["../../../src/runtime/services/secrets.service.ts"],"mappings":";;;;;cAWa,yBAAyB;;;IA6Cf,iBAAA,GAAC,QAAU,MAAC,OAAA,OAAA,GAAA;;;cAxCtB,uBAAuB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.service.d.mts","names":[],"sources":["../../../src/runtime/services/secrets.service.ts"],"mappings":";;;;;cAWa,yBAAyB;;;IA6Cf,iBAAA,GAAC,QAAU,MAAC,OAAA,OAAA,GAAA;;;cAxCtB,uBAAuB"}
|
package/dist/testing/index.cjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime_index = require('../runtime/index.cjs');
|
|
3
|
-
|
|
4
|
-
//#region src/testing/index.ts
|
|
5
|
-
/**
|
|
6
|
-
* Converts old pluginMap format to new registry format
|
|
7
|
-
*/
|
|
8
|
-
function convertPluginMapToRegistry(oldRegistry, pluginMap) {
|
|
9
|
-
const registry = {};
|
|
10
|
-
for (const [pluginId, ctor] of Object.entries(pluginMap)) {
|
|
11
|
-
const oldEntry = oldRegistry[pluginId];
|
|
12
|
-
registry[pluginId] = {
|
|
13
|
-
module: ctor,
|
|
14
|
-
remote: oldEntry?.remoteUrl,
|
|
15
|
-
version: oldEntry?.version,
|
|
16
|
-
description: oldEntry?.description
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
return registry;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Creates a plugin runtime for locally available plugins (non-remote).
|
|
23
|
-
* Automatically infers type bindings from the plugin map, eliminating
|
|
24
|
-
* the need for manual RegistryBindings definitions.
|
|
25
|
-
*
|
|
26
|
-
* @deprecated Use `createPluginRuntime` with module entries directly instead.
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* // Old API (deprecated)
|
|
30
|
-
* const runtime = createLocalPluginRuntime(
|
|
31
|
-
* { registry: { "my-plugin": { remoteUrl: "..." } }, secrets },
|
|
32
|
-
* { "my-plugin": MyPlugin }
|
|
33
|
-
* );
|
|
34
|
-
*
|
|
35
|
-
* // New API (recommended)
|
|
36
|
-
* const runtime = createPluginRuntime({
|
|
37
|
-
* registry: { "my-plugin": { module: MyPlugin } },
|
|
38
|
-
* secrets
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
function createLocalPluginRuntime(config, pluginMap) {
|
|
43
|
-
return require_runtime_index.createPluginRuntime({
|
|
44
|
-
registry: convertPluginMapToRegistry(config.registry, pluginMap),
|
|
45
|
-
secrets: config.secrets,
|
|
46
|
-
options: config.options
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* @deprecated Use `createLocalPluginRuntime` or `createPluginRuntime` instead.
|
|
51
|
-
*/
|
|
52
|
-
const createTestPluginRuntime = createLocalPluginRuntime;
|
|
53
|
-
|
|
54
|
-
//#endregion
|
|
55
|
-
exports.createLocalPluginRuntime = createLocalPluginRuntime;
|
|
56
|
-
exports.createTestPluginRuntime = createTestPluginRuntime;
|
|
57
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["createPluginRuntime"],"sources":["../../src/testing/index.ts"],"sourcesContent":["import type { LoadedPluginWithBinding } from \"../plugin\";\nimport { createPluginRuntime } from \"../runtime\";\nimport type { AnyPluginConstructor, PluginRegistryEntry, PluginRuntimeConfig } from \"../types\";\n\nexport type PluginMap = Record<string, LoadedPluginWithBinding<any, any, any, any>>;\n\n/**\n * Simplified type inference for local plugin maps.\n * Just use the constructor types directly.\n *\n * @example\n * ```ts\n * const pluginMap = { \"my-plugin\": MyPlugin } as const;\n * type MyBindings = InferBindingsFromMap<typeof pluginMap>;\n * ```\n */\nexport type InferBindingsFromMap<T extends PluginMap> = {\n [K in keyof T]: T[K];\n};\n\n/**\n * Converts old pluginMap format to new registry format\n */\nfunction convertPluginMapToRegistry<T extends PluginMap>(\n oldRegistry: Record<string, { remoteUrl: string; version?: string; description?: string }>,\n pluginMap: T,\n): Record<keyof T, PluginRegistryEntry> {\n const registry: Record<string, PluginRegistryEntry> = {};\n\n for (const [pluginId, ctor] of Object.entries(pluginMap)) {\n const oldEntry = oldRegistry[pluginId];\n registry[pluginId] = {\n module: ctor as AnyPluginConstructor,\n remote: oldEntry?.remoteUrl,\n version: oldEntry?.version,\n description: oldEntry?.description,\n };\n }\n\n return registry as Record<keyof T, PluginRegistryEntry>;\n}\n\n/**\n * Creates a plugin runtime for locally available plugins (non-remote).\n * Automatically infers type bindings from the plugin map, eliminating\n * the need for manual RegistryBindings definitions.\n *\n * @deprecated Use `createPluginRuntime` with module entries directly instead.\n * @example\n * ```ts\n * // Old API (deprecated)\n * const runtime = createLocalPluginRuntime(\n * { registry: { \"my-plugin\": { remoteUrl: \"...\" } }, secrets },\n * { \"my-plugin\": MyPlugin }\n * );\n *\n * // New API (recommended)\n * const runtime = createPluginRuntime({\n * registry: { \"my-plugin\": { module: MyPlugin } },\n * secrets\n * });\n * ```\n */\nexport function createLocalPluginRuntime<TMap extends PluginMap>(\n config: {\n registry: Record<string, { remoteUrl: string; version?: string; description?: string }>;\n secrets?: Record<string, string>;\n options?: any;\n },\n pluginMap: TMap,\n) {\n const newRegistry = convertPluginMapToRegistry(config.registry, pluginMap);\n\n return createPluginRuntime({\n registry: newRegistry,\n secrets: config.secrets,\n options: config.options,\n });\n}\n\n/**\n * @deprecated Use `createLocalPluginRuntime` or `createPluginRuntime` instead.\n */\nexport const createTestPluginRuntime = createLocalPluginRuntime;\n\nexport type { EveryPlugin, PluginRegistry, RegisteredPlugins } from \"../types\";\nexport type { PluginRuntimeConfig };\n"],"mappings":";;;;;;;AAuBA,SAAS,2BACP,aACA,WACsC;CACtC,MAAM,WAAgD,CAAC;CAEvD,KAAK,MAAM,CAAC,UAAU,SAAS,OAAO,QAAQ,SAAS,GAAG;EACxD,MAAM,WAAW,YAAY;EAC7B,SAAS,YAAY;GACnB,QAAQ;GACR,QAAQ,UAAU;GAClB,SAAS,UAAU;GACnB,aAAa,UAAU;EACzB;CACF;CAEA,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;AAuBA,SAAgB,yBACd,QAKA,WACA;CAGA,OAAOA,0CAAoB;EACzB,UAHkB,2BAA2B,OAAO,UAAU,SAG1C;EACpB,SAAS,OAAO;EAChB,SAAS,OAAO;CAClB,CAAC;AACH;;;;AAKA,MAAa,0BAA0B"}
|
package/dist/testing/index.d.cts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { LoadedPluginWithBinding } from "../plugin.cjs";
|
|
2
|
-
import { EveryPlugin, InferRegistryFromEntries, PluginRegistry, PluginRegistryEntry, PluginRuntimeConfig, RegisteredPlugins } from "../types.cjs";
|
|
3
|
-
import { PluginRuntime } from "../runtime/index.cjs";
|
|
4
|
-
import "../index.cjs";
|
|
5
|
-
//#region src/testing/index.d.ts
|
|
6
|
-
type PluginMap = Record<string, LoadedPluginWithBinding<any, any, any, any>>;
|
|
7
|
-
/**
|
|
8
|
-
* Simplified type inference for local plugin maps.
|
|
9
|
-
* Just use the constructor types directly.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const pluginMap = { "my-plugin": MyPlugin } as const;
|
|
14
|
-
* type MyBindings = InferBindingsFromMap<typeof pluginMap>;
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
type InferBindingsFromMap<T extends PluginMap> = { [K in keyof T]: T[K]; };
|
|
18
|
-
/**
|
|
19
|
-
* Creates a plugin runtime for locally available plugins (non-remote).
|
|
20
|
-
* Automatically infers type bindings from the plugin map, eliminating
|
|
21
|
-
* the need for manual RegistryBindings definitions.
|
|
22
|
-
*
|
|
23
|
-
* @deprecated Use `createPluginRuntime` with module entries directly instead.
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* // Old API (deprecated)
|
|
27
|
-
* const runtime = createLocalPluginRuntime(
|
|
28
|
-
* { registry: { "my-plugin": { remoteUrl: "..." } }, secrets },
|
|
29
|
-
* { "my-plugin": MyPlugin }
|
|
30
|
-
* );
|
|
31
|
-
*
|
|
32
|
-
* // New API (recommended)
|
|
33
|
-
* const runtime = createPluginRuntime({
|
|
34
|
-
* registry: { "my-plugin": { module: MyPlugin } },
|
|
35
|
-
* secrets
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
declare function createLocalPluginRuntime<TMap extends PluginMap>(config: {
|
|
40
|
-
registry: Record<string, {
|
|
41
|
-
remoteUrl: string;
|
|
42
|
-
version?: string;
|
|
43
|
-
description?: string;
|
|
44
|
-
}>;
|
|
45
|
-
secrets?: Record<string, string>;
|
|
46
|
-
options?: any;
|
|
47
|
-
}, pluginMap: TMap): PluginRuntime<InferRegistryFromEntries<Record<keyof TMap, PluginRegistryEntry>>>;
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated Use `createLocalPluginRuntime` or `createPluginRuntime` instead.
|
|
50
|
-
*/
|
|
51
|
-
declare const createTestPluginRuntime: typeof createLocalPluginRuntime;
|
|
52
|
-
//#endregion
|
|
53
|
-
export { type EveryPlugin, InferBindingsFromMap, PluginMap, type PluginRegistry, type PluginRuntimeConfig, type RegisteredPlugins, createLocalPluginRuntime, createTestPluginRuntime };
|
|
54
|
-
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/testing/index.ts"],"mappings":";;;;;KAIY,YAAY,eAAe;;;;;;;;;;;KAY3B,qBAAqB,UAAU,gBACxC,WAAW,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;iBA8CJ,yBAAyB,aAAa,WACpD;EACE,UAAU;IAAiB;IAAmB;IAAkB;;EAChE,UAAU;EACV;GAEF,WAAW,OAAI,cAAA,yBAAA,aAAA,MAAA;;;;cAcJ,gCAAuB"}
|
package/dist/testing/index.d.mts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { LoadedPluginWithBinding } from "../plugin.mjs";
|
|
2
|
-
import { EveryPlugin, InferRegistryFromEntries, PluginRegistry, PluginRegistryEntry, PluginRuntimeConfig, RegisteredPlugins } from "../types.mjs";
|
|
3
|
-
import { PluginRuntime } from "../runtime/index.mjs";
|
|
4
|
-
import "../index.mjs";
|
|
5
|
-
//#region src/testing/index.d.ts
|
|
6
|
-
type PluginMap = Record<string, LoadedPluginWithBinding<any, any, any, any>>;
|
|
7
|
-
/**
|
|
8
|
-
* Simplified type inference for local plugin maps.
|
|
9
|
-
* Just use the constructor types directly.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const pluginMap = { "my-plugin": MyPlugin } as const;
|
|
14
|
-
* type MyBindings = InferBindingsFromMap<typeof pluginMap>;
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
type InferBindingsFromMap<T extends PluginMap> = { [K in keyof T]: T[K]; };
|
|
18
|
-
/**
|
|
19
|
-
* Creates a plugin runtime for locally available plugins (non-remote).
|
|
20
|
-
* Automatically infers type bindings from the plugin map, eliminating
|
|
21
|
-
* the need for manual RegistryBindings definitions.
|
|
22
|
-
*
|
|
23
|
-
* @deprecated Use `createPluginRuntime` with module entries directly instead.
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* // Old API (deprecated)
|
|
27
|
-
* const runtime = createLocalPluginRuntime(
|
|
28
|
-
* { registry: { "my-plugin": { remoteUrl: "..." } }, secrets },
|
|
29
|
-
* { "my-plugin": MyPlugin }
|
|
30
|
-
* );
|
|
31
|
-
*
|
|
32
|
-
* // New API (recommended)
|
|
33
|
-
* const runtime = createPluginRuntime({
|
|
34
|
-
* registry: { "my-plugin": { module: MyPlugin } },
|
|
35
|
-
* secrets
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
declare function createLocalPluginRuntime<TMap extends PluginMap>(config: {
|
|
40
|
-
registry: Record<string, {
|
|
41
|
-
remoteUrl: string;
|
|
42
|
-
version?: string;
|
|
43
|
-
description?: string;
|
|
44
|
-
}>;
|
|
45
|
-
secrets?: Record<string, string>;
|
|
46
|
-
options?: any;
|
|
47
|
-
}, pluginMap: TMap): PluginRuntime<InferRegistryFromEntries<Record<keyof TMap, PluginRegistryEntry>>>;
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated Use `createLocalPluginRuntime` or `createPluginRuntime` instead.
|
|
50
|
-
*/
|
|
51
|
-
declare const createTestPluginRuntime: typeof createLocalPluginRuntime;
|
|
52
|
-
//#endregion
|
|
53
|
-
export { type EveryPlugin, InferBindingsFromMap, PluginMap, type PluginRegistry, type PluginRuntimeConfig, type RegisteredPlugins, createLocalPluginRuntime, createTestPluginRuntime };
|
|
54
|
-
//# sourceMappingURL=index.d.mts.map
|