polen 0.11.0-next.13 → 0.11.0-next.15
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/README.md +1 -1
- package/build/api/api.d.ts +3 -3
- package/build/api/api.d.ts.map +1 -1
- package/build/api/api.js +3 -6
- package/build/api/api.js.map +1 -1
- package/build/api/builder/builder.d.ts +5 -3
- package/build/api/builder/builder.d.ts.map +1 -1
- package/build/api/builder/builder.js +25 -12
- package/build/api/builder/builder.js.map +1 -1
- package/build/api/builder/ssg/generate.d.ts +5 -0
- package/build/api/builder/ssg/generate.d.ts.map +1 -0
- package/build/api/builder/ssg/generate.js +149 -0
- package/build/api/builder/ssg/generate.js.map +1 -0
- package/build/api/builder/ssg/page-generator.worker.d.ts +2 -0
- package/build/api/builder/ssg/page-generator.worker.d.ts.map +1 -0
- package/build/api/builder/ssg/page-generator.worker.js +80 -0
- package/build/api/builder/ssg/page-generator.worker.js.map +1 -0
- package/build/api/builder/ssg/server-runner.worker.d.ts +2 -0
- package/build/api/builder/ssg/server-runner.worker.d.ts.map +1 -0
- package/build/api/builder/ssg/server-runner.worker.js +127 -0
- package/build/api/builder/ssg/server-runner.worker.js.map +1 -0
- package/build/api/builder/ssg/worker-messages.d.ts +43 -0
- package/build/api/builder/ssg/worker-messages.d.ts.map +1 -0
- package/build/api/builder/ssg/worker-messages.js +49 -0
- package/build/api/builder/ssg/worker-messages.js.map +1 -0
- package/build/api/builder/ssg/worker-spawners.d.ts +11 -0
- package/build/api/builder/ssg/worker-spawners.d.ts.map +1 -0
- package/build/api/builder/ssg/worker-spawners.js +64 -0
- package/build/api/builder/ssg/worker-spawners.js.map +1 -0
- package/build/api/cache/cache.d.ts +9 -8
- package/build/api/cache/cache.d.ts.map +1 -1
- package/build/api/cache/cache.js +109 -110
- package/build/api/cache/cache.js.map +1 -1
- package/build/api/config/$$.d.ts +4 -0
- package/build/api/config/$$.d.ts.map +1 -0
- package/build/api/config/$$.js +4 -0
- package/build/api/config/$$.js.map +1 -0
- package/build/api/config/$.d.ts +2 -0
- package/build/api/config/$.d.ts.map +1 -0
- package/build/api/config/$.js +2 -0
- package/build/api/config/$.js.map +1 -0
- package/build/api/config/input.d.ts +646 -0
- package/build/api/config/input.d.ts.map +1 -0
- package/build/api/config/input.js +285 -0
- package/build/api/config/input.js.map +1 -0
- package/build/api/config/load.d.ts +4 -2
- package/build/api/config/load.d.ts.map +1 -1
- package/build/api/config/load.js +33 -22
- package/build/api/config/load.js.map +1 -1
- package/build/api/config/normalized.d.ts +1414 -0
- package/build/api/config/normalized.d.ts.map +1 -0
- package/build/api/config/normalized.js +364 -0
- package/build/api/config/normalized.js.map +1 -0
- package/build/api/config-resolver/config-resolver.d.ts +0 -1
- package/build/api/config-resolver/config-resolver.d.ts.map +1 -1
- package/build/api/config-resolver/config-resolver.js +0 -1
- package/build/api/config-resolver/config-resolver.js.map +1 -1
- package/build/api/config-resolver/resolve.d.ts +7 -5
- package/build/api/config-resolver/resolve.d.ts.map +1 -1
- package/build/api/config-resolver/resolve.js +10 -11
- package/build/api/config-resolver/resolve.js.map +1 -1
- package/build/api/content/metadata.d.ts +7 -11
- package/build/api/content/metadata.d.ts.map +1 -1
- package/build/api/content/metadata.js +4 -4
- package/build/api/content/metadata.js.map +1 -1
- package/build/api/content/scan.d.ts +3 -1
- package/build/api/content/scan.d.ts.map +1 -1
- package/build/api/content/scan.js +15 -11
- package/build/api/content/scan.js.map +1 -1
- package/build/api/content/sidebar.d.ts +1 -1
- package/build/api/content/sidebar.js +1 -1
- package/build/api/hooks/helpers.d.ts +5 -0
- package/build/api/hooks/helpers.d.ts.map +1 -0
- package/build/api/hooks/helpers.js +4 -0
- package/build/api/hooks/helpers.js.map +1 -0
- package/build/api/hooks/index.d.ts +3 -0
- package/build/api/hooks/index.d.ts.map +1 -0
- package/build/api/hooks/index.js +3 -0
- package/build/api/hooks/index.js.map +1 -0
- package/build/api/hooks/types.d.ts +11 -0
- package/build/api/hooks/types.d.ts.map +1 -0
- package/build/api/hooks/types.js +2 -0
- package/build/api/hooks/types.js.map +1 -0
- package/build/api/iso/schema/constants.d.ts +1 -0
- package/build/api/iso/schema/constants.d.ts.map +1 -1
- package/build/api/iso/schema/constants.js +1 -0
- package/build/api/iso/schema/constants.js.map +1 -1
- package/build/api/iso/schema/routing.d.ts +14 -4
- package/build/api/iso/schema/routing.d.ts.map +1 -1
- package/build/api/iso/schema/routing.js +22 -5
- package/build/api/iso/schema/routing.js.map +1 -1
- package/build/api/routes/$$.d.ts +2 -0
- package/build/api/routes/$$.d.ts.map +1 -0
- package/build/api/routes/$$.js +2 -0
- package/build/api/routes/$$.js.map +1 -0
- package/build/api/routes/$.d.ts +2 -0
- package/build/api/routes/$.d.ts.map +1 -0
- package/build/api/routes/$.js +2 -0
- package/build/api/routes/$.js.map +1 -0
- package/build/api/routes/manifest/$$.d.ts +2 -0
- package/build/api/routes/manifest/$$.d.ts.map +1 -0
- package/build/api/routes/manifest/$$.js +2 -0
- package/build/api/routes/manifest/$$.js.map +1 -0
- package/build/api/routes/manifest/$.d.ts +2 -0
- package/build/api/routes/manifest/$.d.ts.map +1 -0
- package/build/api/routes/manifest/$.js +2 -0
- package/build/api/routes/manifest/$.js.map +1 -0
- package/build/api/routes/manifest/manifest.d.ts +29 -0
- package/build/api/routes/manifest/manifest.d.ts.map +1 -0
- package/build/api/routes/manifest/manifest.js +43 -0
- package/build/api/routes/manifest/manifest.js.map +1 -0
- package/build/api/schema/$$.d.ts +8 -0
- package/build/api/schema/$$.d.ts.map +1 -0
- package/build/api/schema/$$.js +8 -0
- package/build/api/schema/$$.js.map +1 -0
- package/build/api/schema/$.d.ts +2 -0
- package/build/api/schema/$.d.ts.map +1 -0
- package/build/api/schema/$.js +2 -0
- package/build/api/schema/$.js.map +1 -0
- package/build/api/schema/augmentations/$.d.ts +2 -0
- package/build/api/schema/augmentations/$.d.ts.map +1 -0
- package/build/api/schema/augmentations/$.js +2 -0
- package/build/api/schema/augmentations/$.js.map +1 -0
- package/build/api/schema/augmentations/augmentations/description.d.ts +26 -0
- package/build/api/schema/augmentations/augmentations/description.d.ts.map +1 -0
- package/build/api/schema/augmentations/augmentations/description.js +55 -0
- package/build/api/schema/augmentations/augmentations/description.js.map +1 -0
- package/build/api/schema/augmentations/schema-augmentation.d.ts +20 -0
- package/build/api/schema/augmentations/schema-augmentation.d.ts.map +1 -0
- package/build/api/schema/augmentations/schema-augmentation.js +22 -0
- package/build/api/schema/augmentations/schema-augmentation.js.map +1 -0
- package/build/api/schema/augmentations/target.d.ts +25 -0
- package/build/api/schema/augmentations/target.d.ts.map +1 -0
- package/build/api/schema/augmentations/target.js +39 -0
- package/build/api/schema/augmentations/target.js.map +1 -0
- package/build/api/schema/config-schema.d.ts +555 -0
- package/build/api/schema/config-schema.d.ts.map +1 -0
- package/build/api/schema/config-schema.js +388 -0
- package/build/api/schema/config-schema.js.map +1 -0
- package/build/api/schema/config.d.ts +5 -0
- package/build/api/schema/config.d.ts.map +1 -0
- package/build/api/schema/config.js +2 -0
- package/build/api/schema/config.js.map +1 -0
- package/build/api/schema/input-source/$$.d.ts +3 -0
- package/build/api/schema/input-source/$$.d.ts.map +1 -0
- package/build/api/schema/input-source/$$.js +3 -0
- package/build/api/schema/input-source/$$.js.map +1 -0
- package/build/api/schema/input-source/$.d.ts +2 -0
- package/build/api/schema/input-source/$.d.ts.map +1 -0
- package/build/api/schema/input-source/$.js +2 -0
- package/build/api/schema/input-source/$.js.map +1 -0
- package/build/api/schema/input-source/input-source.d.ts +39 -0
- package/build/api/schema/input-source/input-source.d.ts.map +1 -0
- package/build/api/schema/input-source/input-source.js +35 -0
- package/build/api/schema/input-source/input-source.js.map +1 -0
- package/build/api/schema/input-source/load.d.ts +23 -0
- package/build/api/schema/input-source/load.d.ts.map +1 -0
- package/build/api/schema/input-source/load.js +39 -0
- package/build/api/schema/input-source/load.js.map +1 -0
- package/build/api/schema/input-sources/$$.d.ts +7 -0
- package/build/api/schema/input-sources/$$.d.ts.map +1 -0
- package/build/api/schema/input-sources/$$.js +7 -0
- package/build/api/schema/input-sources/$$.js.map +1 -0
- package/build/api/schema/input-sources/$.d.ts +2 -0
- package/build/api/schema/input-sources/$.d.ts.map +1 -0
- package/build/api/schema/input-sources/$.js +2 -0
- package/build/api/schema/input-sources/$.js.map +1 -0
- package/build/api/schema/input-sources/directory.d.ts +646 -0
- package/build/api/schema/input-sources/directory.d.ts.map +1 -0
- package/build/api/schema/input-sources/directory.js +148 -0
- package/build/api/schema/input-sources/directory.js.map +1 -0
- package/build/api/schema/input-sources/file.d.ts +627 -0
- package/build/api/schema/input-sources/file.d.ts.map +1 -0
- package/build/api/schema/input-sources/file.js +62 -0
- package/build/api/schema/input-sources/file.js.map +1 -0
- package/build/api/schema/input-sources/introspection-file.d.ts +645 -0
- package/build/api/schema/input-sources/introspection-file.d.ts.map +1 -0
- package/build/api/schema/input-sources/introspection-file.js +90 -0
- package/build/api/schema/input-sources/introspection-file.js.map +1 -0
- package/build/api/schema/input-sources/introspection.d.ts +651 -0
- package/build/api/schema/input-sources/introspection.d.ts.map +1 -0
- package/build/api/schema/input-sources/introspection.js +123 -0
- package/build/api/schema/input-sources/introspection.js.map +1 -0
- package/build/api/schema/input-sources/memory.d.ts +671 -0
- package/build/api/schema/input-sources/memory.d.ts.map +1 -0
- package/build/api/schema/input-sources/memory.js +133 -0
- package/build/api/schema/input-sources/memory.js.map +1 -0
- package/build/api/schema/input-sources/versioned-directory.d.ts +1257 -0
- package/build/api/schema/input-sources/versioned-directory.d.ts.map +1 -0
- package/build/api/schema/input-sources/versioned-directory.js +352 -0
- package/build/api/schema/input-sources/versioned-directory.js.map +1 -0
- package/build/api/schema/load.d.ts +29 -0
- package/build/api/schema/load.d.ts.map +1 -0
- package/build/api/schema/load.js +132 -0
- package/build/api/schema/load.js.map +1 -0
- package/build/api/server/report-error.js +4 -1
- package/build/api/server/report-error.js.map +1 -1
- package/build/api/singletons/markdown/markdown.d.ts +2 -1
- package/build/api/singletons/markdown/markdown.d.ts.map +1 -1
- package/build/api/singletons/markdown/markdown.js +4 -3
- package/build/api/singletons/markdown/markdown.js.map +1 -1
- package/build/api/static/manifest.d.ts +30 -15
- package/build/api/static/manifest.d.ts.map +1 -1
- package/build/api/static/manifest.js +35 -10
- package/build/api/static/manifest.js.map +1 -1
- package/build/api/static/rebase.d.ts.map +1 -1
- package/build/api/static/rebase.js +89 -58
- package/build/api/static/rebase.js.map +1 -1
- package/build/cli/_/parameters.d.ts +1 -0
- package/build/cli/_/parameters.d.ts.map +1 -1
- package/build/cli/_/parameters.js +4 -0
- package/build/cli/_/parameters.js.map +1 -1
- package/build/cli/commands/build.d.ts +11 -1
- package/build/cli/commands/build.d.ts.map +1 -1
- package/build/cli/commands/build.js +14 -4
- package/build/cli/commands/build.js.map +1 -1
- package/build/cli/commands/cache/delete.js +2 -1
- package/build/cli/commands/cache/delete.js.map +1 -1
- package/build/cli/commands/cache/show.js +2 -0
- package/build/cli/commands/cache/show.js.map +1 -1
- package/build/cli/commands/config/create.js +2 -1
- package/build/cli/commands/config/create.js.map +1 -1
- package/build/cli/commands/dev.js +8 -3
- package/build/cli/commands/dev.js.map +1 -1
- package/build/cli/commands/open.js +6 -2
- package/build/cli/commands/open.js.map +1 -1
- package/build/cli/commands/static/rebase.js +6 -1
- package/build/cli/commands/static/rebase.js.map +1 -1
- package/build/cli/index.js +26 -0
- package/build/cli/index.js.map +1 -1
- package/build/cli-effect/_/parameters.d.ts +7 -0
- package/build/cli-effect/_/parameters.d.ts.map +1 -0
- package/build/cli-effect/_/parameters.js +7 -0
- package/build/cli-effect/_/parameters.js.map +1 -0
- package/build/cli-effect/commands/build.d.ts +11 -0
- package/build/cli-effect/commands/build.d.ts.map +1 -0
- package/build/cli-effect/commands/build.js +40 -0
- package/build/cli-effect/commands/build.js.map +1 -0
- package/build/cli-effect/commands/cache/delete.d.ts +7 -0
- package/build/cli-effect/commands/cache/delete.d.ts.map +1 -0
- package/build/cli-effect/commands/cache/delete.js +15 -0
- package/build/cli-effect/commands/cache/delete.js.map +1 -0
- package/build/cli-effect/commands/cache/show.d.ts +6 -0
- package/build/cli-effect/commands/cache/show.d.ts.map +1 -0
- package/build/cli-effect/commands/cache/show.js +80 -0
- package/build/cli-effect/commands/cache/show.js.map +1 -0
- package/build/cli-effect/commands/cache.d.ts +11 -0
- package/build/cli-effect/commands/cache.d.ts.map +1 -0
- package/build/cli-effect/commands/cache.js +18 -0
- package/build/cli-effect/commands/cache.js.map +1 -0
- package/build/cli-effect/commands/config/create.d.ts +7 -0
- package/build/cli-effect/commands/config/create.d.ts.map +1 -0
- package/build/cli-effect/commands/config/create.js +36 -0
- package/build/cli-effect/commands/config/create.js.map +1 -0
- package/build/cli-effect/commands/config.d.ts +8 -0
- package/build/cli-effect/commands/config.d.ts.map +1 -0
- package/build/cli-effect/commands/config.js +16 -0
- package/build/cli-effect/commands/config.js.map +1 -0
- package/build/cli-effect/commands/create.d.ts +10 -0
- package/build/cli-effect/commands/create.d.ts.map +1 -0
- package/build/cli-effect/commands/create.js +112 -0
- package/build/cli-effect/commands/create.js.map +1 -0
- package/build/cli-effect/commands/dev.d.ts +10 -0
- package/build/cli-effect/commands/dev.d.ts.map +1 -0
- package/build/cli-effect/commands/dev.js +48 -0
- package/build/cli-effect/commands/dev.js.map +1 -0
- package/build/cli-effect/commands/open.d.ts +11 -0
- package/build/cli-effect/commands/open.d.ts.map +1 -0
- package/build/cli-effect/commands/open.js +131 -0
- package/build/cli-effect/commands/open.js.map +1 -0
- package/build/cli-effect/commands/static/rebase.d.ts +9 -0
- package/build/cli-effect/commands/static/rebase.d.ts.map +1 -0
- package/build/cli-effect/commands/static/rebase.js +44 -0
- package/build/cli-effect/commands/static/rebase.js.map +1 -0
- package/build/cli-effect/commands/static.d.ts +10 -0
- package/build/cli-effect/commands/static.d.ts.map +1 -0
- package/build/cli-effect/commands/static.js +29 -0
- package/build/cli-effect/commands/static.js.map +1 -0
- package/build/cli-effect/index.d.ts +3 -0
- package/build/cli-effect/index.d.ts.map +1 -0
- package/build/cli-effect/index.js +61 -0
- package/build/cli-effect/index.js.map +1 -0
- package/build/dep/tiny-globby/index.d.ts +1 -0
- package/build/dep/tiny-globby/index.d.ts.map +1 -1
- package/build/dep/tiny-globby/index.js +1 -0
- package/build/dep/tiny-globby/index.js.map +1 -1
- package/build/dep/tiny-globby/tiny-globby.d.ts +12 -0
- package/build/dep/tiny-globby/tiny-globby.d.ts.map +1 -1
- package/build/dep/tiny-globby/tiny-globby.js +18 -0
- package/build/dep/tiny-globby/tiny-globby.js.map +1 -1
- package/build/exports/polen.d.ts +3 -3
- package/build/exports/polen.d.ts.map +1 -1
- package/build/exports/polen.js +3 -3
- package/build/exports/polen.js.map +1 -1
- package/build/exports/radix-ui/react-icons.d.ts +2 -0
- package/build/exports/radix-ui/react-icons.d.ts.map +1 -0
- package/build/exports/radix-ui/react-icons.js +4 -0
- package/build/exports/radix-ui/react-icons.js.map +1 -0
- package/build/exports/radix-ui/themes.d.ts +2 -0
- package/build/exports/radix-ui/themes.d.ts.map +1 -0
- package/build/exports/radix-ui/themes.js +4 -0
- package/build/exports/radix-ui/themes.js.map +1 -0
- package/build/lib/catalog/$.d.ts +2 -0
- package/build/lib/catalog/$.d.ts.map +1 -0
- package/build/lib/catalog/$.js +2 -0
- package/build/lib/catalog/$.js.map +1 -0
- package/build/lib/catalog/catalog.d.ts +12455 -0
- package/build/lib/catalog/catalog.d.ts.map +1 -0
- package/build/lib/catalog/catalog.js +50 -0
- package/build/lib/catalog/catalog.js.map +1 -0
- package/build/lib/catalog/unversioned.d.ts +5331 -0
- package/build/lib/catalog/unversioned.d.ts.map +1 -0
- package/build/lib/catalog/unversioned.js +31 -0
- package/build/lib/catalog/unversioned.js.map +1 -0
- package/build/lib/catalog/versioned.d.ts +10720 -0
- package/build/lib/catalog/versioned.d.ts.map +1 -0
- package/build/lib/catalog/versioned.js +31 -0
- package/build/lib/catalog/versioned.js.map +1 -0
- package/build/lib/change/$$.d.ts +4 -0
- package/build/lib/change/$$.d.ts.map +1 -0
- package/build/lib/change/$$.js +4 -0
- package/build/lib/change/$$.js.map +1 -0
- package/build/lib/change/$.d.ts +2 -0
- package/build/lib/change/$.d.ts.map +1 -0
- package/build/lib/change/$.js +2 -0
- package/build/lib/change/$.js.map +1 -0
- package/build/lib/change/calc-changeset.d.ts +11 -0
- package/build/lib/change/calc-changeset.d.ts.map +1 -0
- package/build/lib/change/calc-changeset.js +584 -0
- package/build/lib/change/calc-changeset.js.map +1 -0
- package/build/lib/change/change.d.ts +4709 -0
- package/build/lib/change/change.d.ts.map +1 -0
- package/build/lib/change/change.js +545 -0
- package/build/lib/change/change.js.map +1 -0
- package/build/lib/change/criticality.d.ts +41 -0
- package/build/lib/change/criticality.d.ts.map +1 -0
- package/build/lib/change/criticality.js +37 -0
- package/build/lib/change/criticality.js.map +1 -0
- package/build/lib/change/level.d.ts +3 -0
- package/build/lib/change/level.d.ts.map +1 -0
- package/build/lib/change/level.js +3 -0
- package/build/lib/change/level.js.map +1 -0
- package/build/lib/date-only/$.d.ts +2 -0
- package/build/lib/date-only/$.d.ts.map +1 -0
- package/build/lib/date-only/$.js +2 -0
- package/build/lib/date-only/$.js.map +1 -0
- package/build/lib/date-only/date-only.d.ts +49 -0
- package/build/lib/date-only/date-only.d.ts.map +1 -0
- package/build/lib/date-only/date-only.js +76 -0
- package/build/lib/date-only/date-only.js.map +1 -0
- package/build/lib/file-path/$$.d.ts +2 -0
- package/build/lib/file-path/$$.d.ts.map +1 -0
- package/build/lib/file-path/$$.js +5 -0
- package/build/lib/file-path/$$.js.map +1 -0
- package/build/lib/file-path/$.d.ts +2 -0
- package/build/lib/file-path/$.d.ts.map +1 -0
- package/build/lib/file-path/$.js +5 -0
- package/build/lib/file-path/$.js.map +1 -0
- package/build/lib/file-path/file-path.d.ts +45 -0
- package/build/lib/file-path/file-path.d.ts.map +1 -0
- package/build/lib/file-path/file-path.js +96 -0
- package/build/lib/file-path/file-path.js.map +1 -0
- package/build/lib/file-router/route.d.ts +1 -1
- package/build/lib/file-router/route.d.ts.map +1 -1
- package/build/lib/file-router/scan.d.ts +2 -1
- package/build/lib/file-router/scan.d.ts.map +1 -1
- package/build/lib/file-router/scan.js +10 -6
- package/build/lib/file-router/scan.js.map +1 -1
- package/build/lib/grafaid/schema/ast.d.ts +2 -1
- package/build/lib/grafaid/schema/ast.d.ts.map +1 -1
- package/build/lib/grafaid/schema/ast.js +7 -2
- package/build/lib/grafaid/schema/ast.js.map +1 -1
- package/build/lib/grafaid/schema/read.d.ts +3 -1
- package/build/lib/grafaid/schema/read.d.ts.map +1 -1
- package/build/lib/grafaid/schema/read.js +17 -7
- package/build/lib/grafaid/schema/read.js.map +1 -1
- package/build/lib/grafaid/schema/schema.d.ts +4 -1
- package/build/lib/grafaid/schema/schema.d.ts.map +1 -1
- package/build/lib/grafaid/schema/schema.js +7 -1
- package/build/lib/grafaid/schema/schema.js.map +1 -1
- package/build/lib/grafaid/schema/type-class-name.d.ts +1 -1
- package/build/lib/grafaid/schema/type-class-name.d.ts.map +1 -1
- package/build/lib/grafaid-old/grafaid.d.ts +2 -2
- package/build/lib/grafaid-old/grafaid.d.ts.map +1 -1
- package/build/lib/graph/$$.d.ts +2 -0
- package/build/lib/graph/$$.d.ts.map +1 -0
- package/build/lib/graph/$$.js +2 -0
- package/build/lib/graph/$$.js.map +1 -0
- package/build/lib/graph/$.d.ts +2 -0
- package/build/lib/graph/$.d.ts.map +1 -0
- package/build/lib/graph/$.js +2 -0
- package/build/lib/graph/$.js.map +1 -0
- package/build/lib/graph/graph.d.ts +127 -0
- package/build/lib/graph/graph.d.ts.map +1 -0
- package/build/lib/graph/graph.js +152 -0
- package/build/lib/graph/graph.js.map +1 -0
- package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts +4 -2
- package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts.map +1 -1
- package/build/lib/graphql-schema-loader/graphql-schema-loader.js +29 -28
- package/build/lib/graphql-schema-loader/graphql-schema-loader.js.map +1 -1
- package/build/lib/helpers.d.ts +30 -1
- package/build/lib/helpers.d.ts.map +1 -1
- package/build/lib/helpers.js +53 -9
- package/build/lib/helpers.js.map +1 -1
- package/build/lib/kit-temp/$$.d.ts +7 -0
- package/build/lib/kit-temp/$$.d.ts.map +1 -0
- package/build/lib/kit-temp/$$.js +7 -0
- package/build/lib/kit-temp/$$.js.map +1 -0
- package/build/lib/kit-temp/$.d.ts +2 -0
- package/build/lib/kit-temp/$.d.ts.map +1 -0
- package/build/lib/kit-temp/$.js +3 -0
- package/build/lib/kit-temp/$.js.map +1 -0
- package/build/lib/kit-temp/array.d.ts +2 -0
- package/build/lib/kit-temp/array.d.ts.map +1 -0
- package/build/lib/kit-temp/array.js +23 -0
- package/build/lib/kit-temp/array.js.map +1 -0
- package/build/lib/kit-temp/effect.d.ts +271 -0
- package/build/lib/kit-temp/effect.d.ts.map +1 -0
- package/build/lib/kit-temp/effect.js +383 -0
- package/build/lib/kit-temp/effect.js.map +1 -0
- package/build/lib/kit-temp/global-local-check.d.ts +51 -0
- package/build/lib/kit-temp/global-local-check.d.ts.map +1 -0
- package/build/lib/kit-temp/global-local-check.js +115 -0
- package/build/lib/kit-temp/global-local-check.js.map +1 -0
- package/build/lib/kit-temp/ob.d.ts +13 -0
- package/build/lib/kit-temp/ob.d.ts.map +1 -0
- package/build/lib/kit-temp/ob.js +2 -0
- package/build/lib/kit-temp/ob.js.map +1 -0
- package/build/lib/kit-temp/other.d.ts +341 -0
- package/build/lib/kit-temp/other.d.ts.map +1 -0
- package/build/lib/kit-temp/other.js +584 -0
- package/build/lib/kit-temp/other.js.map +1 -0
- package/build/lib/kit-temp/other.test-d.d.ts +2 -0
- package/build/lib/kit-temp/other.test-d.d.ts.map +1 -0
- package/build/lib/kit-temp/other.test-d.js +75 -0
- package/build/lib/kit-temp/other.test-d.js.map +1 -0
- package/build/lib/kit-temp/resource.d.ts +139 -0
- package/build/lib/kit-temp/resource.d.ts.map +1 -0
- package/build/lib/kit-temp/resource.js +155 -0
- package/build/lib/kit-temp/resource.js.map +1 -0
- package/build/lib/lifecycles/$$.d.ts +2 -0
- package/build/lib/lifecycles/$$.d.ts.map +1 -0
- package/build/lib/lifecycles/$$.js +2 -0
- package/build/lib/lifecycles/$$.js.map +1 -0
- package/build/lib/lifecycles/$.d.ts +2 -0
- package/build/lib/lifecycles/$.d.ts.map +1 -0
- package/build/lib/lifecycles/$.js +2 -0
- package/build/lib/lifecycles/$.js.map +1 -0
- package/build/lib/lifecycles/lifecycles.d.ts +91 -0
- package/build/lib/lifecycles/lifecycles.d.ts.map +1 -0
- package/build/lib/lifecycles/lifecycles.js +393 -0
- package/build/lib/lifecycles/lifecycles.js.map +1 -0
- package/build/lib/mask/apply.d.ts +3 -3
- package/build/lib/mask/apply.d.ts.map +1 -1
- package/build/lib/memory-filesystem/$$.d.ts +2 -0
- package/build/lib/memory-filesystem/$$.d.ts.map +1 -0
- package/build/lib/memory-filesystem/$$.js +2 -0
- package/build/lib/memory-filesystem/$$.js.map +1 -0
- package/build/lib/memory-filesystem/$.d.ts +2 -0
- package/build/lib/memory-filesystem/$.d.ts.map +1 -0
- package/build/lib/memory-filesystem/$.js +2 -0
- package/build/lib/memory-filesystem/$.js.map +1 -0
- package/build/lib/memory-filesystem/memory-filesystem.d.ts +26 -0
- package/build/lib/memory-filesystem/memory-filesystem.d.ts.map +1 -0
- package/build/lib/memory-filesystem/memory-filesystem.js +122 -0
- package/build/lib/memory-filesystem/memory-filesystem.js.map +1 -0
- package/build/lib/path-map/path-map.d.ts +11 -11
- package/build/lib/path-map/path-map.d.ts.map +1 -1
- package/build/lib/path-map/path-map.js.map +1 -1
- package/build/lib/react-router-effect/$$.d.ts +5 -0
- package/build/lib/react-router-effect/$$.d.ts.map +1 -0
- package/build/lib/react-router-effect/$$.js +6 -0
- package/build/lib/react-router-effect/$$.js.map +1 -0
- package/build/lib/react-router-effect/$.d.ts +2 -0
- package/build/lib/react-router-effect/$.d.ts.map +1 -0
- package/build/lib/react-router-effect/$.js +2 -0
- package/build/lib/react-router-effect/$.js.map +1 -0
- package/build/lib/react-router-effect/create-loader.d.ts +2 -0
- package/build/lib/react-router-effect/create-loader.d.ts.map +1 -0
- package/build/lib/react-router-effect/create-loader.js +57 -0
- package/build/lib/react-router-effect/create-loader.js.map +1 -0
- package/build/lib/react-router-effect/route-helpers.d.ts +11 -0
- package/build/lib/react-router-effect/route-helpers.d.ts.map +1 -0
- package/build/lib/react-router-effect/route-helpers.js +17 -0
- package/build/lib/react-router-effect/route-helpers.js.map +1 -0
- package/build/lib/react-router-effect/route.d.ts +30 -0
- package/build/lib/react-router-effect/route.d.ts.map +1 -0
- package/build/lib/react-router-effect/route.js +66 -0
- package/build/lib/react-router-effect/route.js.map +1 -0
- package/build/lib/react-router-effect/types.d.ts +72 -0
- package/build/lib/react-router-effect/types.d.ts.map +1 -0
- package/build/lib/react-router-effect/types.js +2 -0
- package/build/lib/react-router-effect/types.js.map +1 -0
- package/build/lib/react-router-effect/use-loader-data.d.ts +59 -0
- package/build/lib/react-router-effect/use-loader-data.d.ts.map +1 -0
- package/build/lib/react-router-effect/use-loader-data.js +107 -0
- package/build/lib/react-router-effect/use-loader-data.js.map +1 -0
- package/build/lib/revision/$.d.ts +2 -0
- package/build/lib/revision/$.d.ts.map +1 -0
- package/build/lib/revision/$.js +2 -0
- package/build/lib/revision/$.js.map +1 -0
- package/build/lib/revision/revision.d.ts +18268 -0
- package/build/lib/revision/revision.d.ts.map +1 -0
- package/build/lib/revision/revision.js +45 -0
- package/build/lib/revision/revision.js.map +1 -0
- package/build/lib/schema/$.d.ts +2 -0
- package/build/lib/schema/$.d.ts.map +1 -0
- package/build/lib/schema/$.js +2 -0
- package/build/lib/schema/$.js.map +1 -0
- package/build/lib/schema/schema.d.ts +12410 -0
- package/build/lib/schema/schema.d.ts.map +1 -0
- package/build/lib/schema/schema.js +34 -0
- package/build/lib/schema/schema.js.map +1 -0
- package/build/lib/schema/unversioned.d.ts +17204 -0
- package/build/lib/schema/unversioned.d.ts.map +1 -0
- package/build/lib/schema/unversioned.js +45 -0
- package/build/lib/schema/unversioned.js.map +1 -0
- package/build/lib/schema/versioned.d.ts +10734 -0
- package/build/lib/schema/versioned.d.ts.map +1 -0
- package/build/lib/schema/versioned.js +40 -0
- package/build/lib/schema/versioned.js.map +1 -0
- package/build/lib/schema-definition/$.d.ts +2 -0
- package/build/lib/schema-definition/$.d.ts.map +1 -0
- package/build/lib/schema-definition/$.js +2 -0
- package/build/lib/schema-definition/$.js.map +1 -0
- package/build/lib/schema-definition/graphql-ast.d.ts +4 -0
- package/build/lib/schema-definition/graphql-ast.d.ts.map +1 -0
- package/build/lib/schema-definition/graphql-ast.js +12 -0
- package/build/lib/schema-definition/graphql-ast.js.map +1 -0
- package/build/lib/schema-definition/schema-definition.d.ts +16 -0
- package/build/lib/schema-definition/schema-definition.d.ts.map +1 -0
- package/build/lib/schema-definition/schema-definition.js +85 -0
- package/build/lib/schema-definition/schema-definition.js.map +1 -0
- package/build/lib/semver/$$.d.ts +2 -0
- package/build/lib/semver/$$.d.ts.map +1 -0
- package/build/lib/semver/$$.js +2 -0
- package/build/lib/semver/$$.js.map +1 -0
- package/build/lib/semver/$.d.ts +2 -0
- package/build/lib/semver/$.d.ts.map +1 -0
- package/build/lib/semver/$.js +2 -0
- package/build/lib/semver/$.js.map +1 -0
- package/build/lib/semver/official-release.d.ts +89 -0
- package/build/lib/semver/official-release.d.ts.map +1 -0
- package/build/lib/semver/official-release.js +35 -0
- package/build/lib/semver/official-release.js.map +1 -0
- package/build/lib/semver/pre-release.d.ts +100 -0
- package/build/lib/semver/pre-release.d.ts.map +1 -0
- package/build/lib/semver/pre-release.js +36 -0
- package/build/lib/semver/pre-release.js.map +1 -0
- package/build/lib/semver/semver.d.ts +463 -0
- package/build/lib/semver/semver.d.ts.map +1 -0
- package/build/lib/semver/semver.js +142 -0
- package/build/lib/semver/semver.js.map +1 -0
- package/build/lib/services-crud/$$.d.ts +5 -0
- package/build/lib/services-crud/$$.d.ts.map +1 -0
- package/build/lib/services-crud/$$.js +5 -0
- package/build/lib/services-crud/$$.js.map +1 -0
- package/build/lib/services-crud/$.d.ts +2 -0
- package/build/lib/services-crud/$.d.ts.map +1 -0
- package/build/lib/services-crud/$.js +2 -0
- package/build/lib/services-crud/$.js.map +1 -0
- package/build/lib/services-crud/browser-ro.d.ts +51 -0
- package/build/lib/services-crud/browser-ro.d.ts.map +1 -0
- package/build/lib/services-crud/browser-ro.js +69 -0
- package/build/lib/services-crud/browser-ro.js.map +1 -0
- package/build/lib/services-crud/filesystem.d.ts +17 -0
- package/build/lib/services-crud/filesystem.d.ts.map +1 -0
- package/build/lib/services-crud/filesystem.js +36 -0
- package/build/lib/services-crud/filesystem.js.map +1 -0
- package/build/lib/services-crud/memory.d.ts +31 -0
- package/build/lib/services-crud/memory.d.ts.map +1 -0
- package/build/lib/services-crud/memory.js +61 -0
- package/build/lib/services-crud/memory.js.map +1 -0
- package/build/lib/services-crud/service.d.ts +45 -0
- package/build/lib/services-crud/service.d.ts.map +1 -0
- package/build/lib/services-crud/service.js +6 -0
- package/build/lib/services-crud/service.js.map +1 -0
- package/build/lib/stack-processor/stack-processor.d.ts +17 -0
- package/build/lib/stack-processor/stack-processor.d.ts.map +1 -1
- package/build/lib/stack-processor/stack-processor.js +24 -0
- package/build/lib/stack-processor/stack-processor.js.map +1 -1
- package/build/lib/task/report.d.ts +2 -2
- package/build/lib/task/report.d.ts.map +1 -1
- package/build/lib/task/task.d.ts +13 -12
- package/build/lib/task/task.d.ts.map +1 -1
- package/build/lib/task/task.js +22 -14
- package/build/lib/task/task.js.map +1 -1
- package/build/lib/version/$$.d.ts +2 -0
- package/build/lib/version/$$.d.ts.map +1 -0
- package/build/lib/version/$$.js +2 -0
- package/build/lib/version/$$.js.map +1 -0
- package/build/lib/version/$.d.ts +2 -0
- package/build/lib/version/$.d.ts.map +1 -0
- package/build/lib/version/$.js +2 -0
- package/build/lib/version/$.js.map +1 -0
- package/build/lib/version/custom.d.ts +44 -0
- package/build/lib/version/custom.d.ts.map +1 -0
- package/build/lib/version/custom.js +31 -0
- package/build/lib/version/custom.js.map +1 -0
- package/build/lib/version/date.d.ts +44 -0
- package/build/lib/version/date.d.ts.map +1 -0
- package/build/lib/version/date.js +32 -0
- package/build/lib/version/date.js.map +1 -0
- package/build/lib/version/integer.d.ts +44 -0
- package/build/lib/version/integer.d.ts.map +1 -0
- package/build/lib/version/integer.js +31 -0
- package/build/lib/version/integer.js.map +1 -0
- package/build/lib/version/semver.d.ts +44 -0
- package/build/lib/version/semver.d.ts.map +1 -0
- package/build/lib/version/semver.js +31 -0
- package/build/lib/version/semver.js.map +1 -0
- package/build/lib/version/version.d.ts +386 -0
- package/build/lib/version/version.d.ts.map +1 -0
- package/build/lib/version/version.js +181 -0
- package/build/lib/version/version.js.map +1 -0
- package/build/lib/vite-plugin-json/vite-plugin-json.d.ts +1 -1
- package/build/lib/vite-plugin-json/vite-plugin-json.d.ts.map +1 -1
- package/build/lib/vite-plugin-json/vite-plugin-json.js +1 -2
- package/build/lib/vite-plugin-json/vite-plugin-json.js.map +1 -1
- package/build/lib/vite-plugin-mdx/vite-plugin-mdx.d.ts.map +1 -1
- package/build/lib/vite-plugin-mdx/vite-plugin-mdx.js +2 -0
- package/build/lib/vite-plugin-mdx/vite-plugin-mdx.js.map +1 -1
- package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.d.ts +1 -1
- package/build/project-data.d.ts +1 -1
- package/build/project-data.d.ts.map +1 -1
- package/build/sandbox.js +15 -1
- package/build/sandbox.js.map +1 -1
- package/build/template/catalog-bridge.d.ts +1837 -0
- package/build/template/catalog-bridge.d.ts.map +1 -0
- package/build/template/catalog-bridge.js +87 -0
- package/build/template/catalog-bridge.js.map +1 -0
- package/build/template/components/Changelog/ChangeBase.d.ts +1 -1
- package/build/template/components/Changelog/ChangeBase.d.ts.map +1 -1
- package/build/template/components/Changelog/ChangeBase.js +1 -0
- package/build/template/components/Changelog/ChangeBase.js.map +1 -1
- package/build/template/components/Changelog/Changelog.d.ts +8 -0
- package/build/template/components/Changelog/Changelog.d.ts.map +1 -0
- package/build/template/components/Changelog/Changelog.js +105 -0
- package/build/template/components/Changelog/Changelog.js.map +1 -0
- package/build/template/components/Changelog/ChangelogVersionPicker.d.ts +8 -0
- package/build/template/components/Changelog/ChangelogVersionPicker.d.ts.map +1 -0
- package/build/template/components/Changelog/ChangelogVersionPicker.js +16 -0
- package/build/template/components/Changelog/ChangelogVersionPicker.js.map +1 -0
- package/build/template/components/Changelog/CriticalitySection.d.ts +2 -2
- package/build/template/components/Changelog/CriticalitySection.d.ts.map +1 -1
- package/build/template/components/Changelog/CriticalitySection.js +15 -1
- package/build/template/components/Changelog/CriticalitySection.js.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgument.d.ts +1 -2
- package/build/template/components/Changelog/groups/DirectiveArgument.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgument.js +4 -3
- package/build/template/components/Changelog/groups/DirectiveArgument.js.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentDescription.d.ts +1 -2
- package/build/template/components/Changelog/groups/DirectiveArgumentDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentDescription.js +2 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentDescription.js.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentOperation.d.ts +1 -2
- package/build/template/components/Changelog/groups/DirectiveArgumentOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentOperation.js +4 -3
- package/build/template/components/Changelog/groups/DirectiveArgumentOperation.js.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveDescription.d.ts +1 -2
- package/build/template/components/Changelog/groups/DirectiveDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveDescription.js +2 -1
- package/build/template/components/Changelog/groups/DirectiveDescription.js.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveLocationOperation.d.ts +1 -2
- package/build/template/components/Changelog/groups/DirectiveLocationOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveLocationOperation.js +4 -3
- package/build/template/components/Changelog/groups/DirectiveLocationOperation.js.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveOperation.d.ts +1 -2
- package/build/template/components/Changelog/groups/DirectiveOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveOperation.js +4 -3
- package/build/template/components/Changelog/groups/DirectiveOperation.js.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueDeprecationReason.d.ts +1 -2
- package/build/template/components/Changelog/groups/EnumValueDeprecationReason.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueDeprecationReason.js +5 -4
- package/build/template/components/Changelog/groups/EnumValueDeprecationReason.js.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueDescription.d.ts +1 -2
- package/build/template/components/Changelog/groups/EnumValueDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueDescription.js +2 -1
- package/build/template/components/Changelog/groups/EnumValueDescription.js.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueOperation.d.ts +1 -2
- package/build/template/components/Changelog/groups/EnumValueOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueOperation.js +4 -3
- package/build/template/components/Changelog/groups/EnumValueOperation.js.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.d.ts +1 -2
- package/build/template/components/Changelog/groups/FieldArgument.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.js +4 -3
- package/build/template/components/Changelog/groups/FieldArgument.js.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentDescription.d.ts +1 -2
- package/build/template/components/Changelog/groups/FieldArgumentDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentDescription.js +2 -1
- package/build/template/components/Changelog/groups/FieldArgumentDescription.js.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentOperation.d.ts +1 -2
- package/build/template/components/Changelog/groups/FieldArgumentOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentOperation.js +4 -3
- package/build/template/components/Changelog/groups/FieldArgumentOperation.js.map +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecation.d.ts +1 -2
- package/build/template/components/Changelog/groups/FieldDeprecation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecation.js +4 -3
- package/build/template/components/Changelog/groups/FieldDeprecation.js.map +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecationReason.d.ts +1 -2
- package/build/template/components/Changelog/groups/FieldDeprecationReason.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecationReason.js +5 -4
- package/build/template/components/Changelog/groups/FieldDeprecationReason.js.map +1 -1
- package/build/template/components/Changelog/groups/FieldDescription.d.ts +1 -2
- package/build/template/components/Changelog/groups/FieldDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldDescription.js +5 -4
- package/build/template/components/Changelog/groups/FieldDescription.js.map +1 -1
- package/build/template/components/Changelog/groups/FieldOperation.d.ts +1 -2
- package/build/template/components/Changelog/groups/FieldOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldOperation.js +5 -4
- package/build/template/components/Changelog/groups/FieldOperation.js.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldDefaultValue.d.ts +1 -2
- package/build/template/components/Changelog/groups/InputFieldDefaultValue.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldDefaultValue.js +2 -1
- package/build/template/components/Changelog/groups/InputFieldDefaultValue.js.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldDescription.d.ts +1 -2
- package/build/template/components/Changelog/groups/InputFieldDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldDescription.js +5 -4
- package/build/template/components/Changelog/groups/InputFieldDescription.js.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldOperation.d.ts +1 -2
- package/build/template/components/Changelog/groups/InputFieldOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldOperation.js +5 -4
- package/build/template/components/Changelog/groups/InputFieldOperation.js.map +1 -1
- package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.d.ts +1 -2
- package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.js +4 -3
- package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.js.map +1 -1
- package/build/template/components/Changelog/groups/SchemaRootType.d.ts +1 -2
- package/build/template/components/Changelog/groups/SchemaRootType.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/SchemaRootType.js +5 -4
- package/build/template/components/Changelog/groups/SchemaRootType.js.map +1 -1
- package/build/template/components/Changelog/groups/TypeDescription.d.ts +1 -2
- package/build/template/components/Changelog/groups/TypeDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/TypeDescription.js +5 -4
- package/build/template/components/Changelog/groups/TypeDescription.js.map +1 -1
- package/build/template/components/Changelog/groups/TypeOperation.d.ts +1 -2
- package/build/template/components/Changelog/groups/TypeOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/TypeOperation.js +5 -4
- package/build/template/components/Changelog/groups/TypeOperation.js.map +1 -1
- package/build/template/components/Changelog/groups/UnionMemberOperation.d.ts +1 -2
- package/build/template/components/Changelog/groups/UnionMemberOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/UnionMemberOperation.js +4 -3
- package/build/template/components/Changelog/groups/UnionMemberOperation.js.map +1 -1
- package/build/template/components/Changelog/groups/index.d.ts +0 -1
- package/build/template/components/Changelog/groups/index.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/index.js +1 -1
- package/build/template/components/Changelog/groups/index.js.map +1 -1
- package/build/template/components/CodeBlock.d.ts.map +1 -1
- package/build/template/components/CodeBlock.js +6 -2
- package/build/template/components/CodeBlock.js.map +1 -1
- package/build/template/components/Field.d.ts.map +1 -1
- package/build/template/components/Field.js +19 -19
- package/build/template/components/Field.js.map +1 -1
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js +1 -1
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js.map +1 -1
- package/build/template/components/GraphQLInteractive/lib/parser.d.ts +1 -1
- package/build/template/components/GraphQLInteractive/lib/parser.d.ts.map +1 -1
- package/build/template/components/HamburgerMenu.d.ts.map +1 -1
- package/build/template/components/HamburgerMenu.js +1 -1
- package/build/template/components/HamburgerMenu.js.map +1 -1
- package/build/template/components/Link.js +1 -1
- package/build/template/components/Link.js.map +1 -1
- package/build/template/components/NamedType.d.ts.map +1 -1
- package/build/template/components/NamedType.js +15 -9
- package/build/template/components/NamedType.js.map +1 -1
- package/build/template/components/VersionPicker.d.ts +3 -2
- package/build/template/components/VersionPicker.d.ts.map +1 -1
- package/build/template/components/VersionPicker.js +34 -15
- package/build/template/components/VersionPicker.js.map +1 -1
- package/build/template/components/navbar/DefaultNavbar.d.ts +4 -0
- package/build/template/components/navbar/DefaultNavbar.d.ts.map +1 -0
- package/build/template/components/navbar/DefaultNavbar.js +10 -0
- package/build/template/components/navbar/DefaultNavbar.js.map +1 -0
- package/build/template/components/navbar/Item.d.ts +7 -0
- package/build/template/components/navbar/Item.d.ts.map +1 -0
- package/build/template/components/navbar/Item.js +6 -0
- package/build/template/components/navbar/Item.js.map +1 -0
- package/build/template/components/sidebar/Sidebar.js +1 -1
- package/build/template/components/sidebar/Sidebar.js.map +1 -1
- package/build/template/contexts/GraphqlLifecycleContext.d.ts +31 -0
- package/build/template/contexts/GraphqlLifecycleContext.d.ts.map +1 -0
- package/build/template/contexts/GraphqlLifecycleContext.js +27 -0
- package/build/template/contexts/GraphqlLifecycleContext.js.map +1 -0
- package/build/template/contexts/ThemeContext.js.map +1 -1
- package/build/template/data/catalog.d.ts +3 -0
- package/build/template/data/catalog.d.ts.map +1 -0
- package/build/template/data/catalog.js +7 -0
- package/build/template/data/catalog.js.map +1 -0
- package/build/template/entry.client.js +7 -3
- package/build/template/entry.client.js.map +1 -1
- package/build/template/hooks/useVersionPath.d.ts.map +1 -1
- package/build/template/hooks/useVersionPath.js +6 -1
- package/build/template/hooks/useVersionPath.js.map +1 -1
- package/build/template/layouts/ChangelogLayout.d.ts +3 -3
- package/build/template/layouts/ChangelogLayout.d.ts.map +1 -1
- package/build/template/layouts/ChangelogLayout.js +64 -46
- package/build/template/layouts/ChangelogLayout.js.map +1 -1
- package/build/template/layouts/SidebarLayout.d.ts.map +1 -1
- package/build/template/layouts/SidebarLayout.js +1 -1
- package/build/template/layouts/SidebarLayout.js.map +1 -1
- package/build/template/lib/polen-url.js +1 -1
- package/build/template/lib/polen-url.js.map +1 -1
- package/build/template/routes/changelog.d.ts +1648 -9
- package/build/template/routes/changelog.d.ts.map +1 -1
- package/build/template/routes/changelog.js +26 -22
- package/build/template/routes/changelog.js.map +1 -1
- package/build/template/routes/index.d.ts +1 -1
- package/build/template/routes/index.d.ts.map +1 -1
- package/build/template/routes/index.js +1 -1
- package/build/template/routes/index.js.map +1 -1
- package/build/template/routes/pages.d.ts +1 -9
- package/build/template/routes/pages.d.ts.map +1 -1
- package/build/template/routes/pages.js +4 -17
- package/build/template/routes/pages.js.map +1 -1
- package/build/template/routes/reference.d.ts +1 -56
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.js +83 -43
- package/build/template/routes/reference.js.map +1 -1
- package/build/template/routes/root.d.ts +2 -7
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.js +25 -16
- package/build/template/routes/root.js.map +1 -1
- package/build/template/server/create-page-html-response.js.map +1 -1
- package/build/template/server/main.js +4 -7
- package/build/template/server/main.js.map +1 -1
- package/build/template/server/view.d.ts.map +1 -1
- package/build/template/server/view.js +4 -2
- package/build/template/server/view.js.map +1 -1
- package/build/template/stores/$$.d.ts +2 -0
- package/build/template/stores/$$.d.ts.map +1 -1
- package/build/template/stores/$$.js +2 -0
- package/build/template/stores/$$.js.map +1 -1
- package/build/template/stores/changelog.d.ts +1714 -0
- package/build/template/stores/changelog.d.ts.map +1 -0
- package/build/template/stores/changelog.js +73 -0
- package/build/template/stores/changelog.js.map +1 -0
- package/build/template/stores/schema.d.ts +9 -14
- package/build/template/stores/schema.d.ts.map +1 -1
- package/build/template/stores/schema.js +19 -2
- package/build/template/stores/schema.js.map +1 -1
- package/build/template/stores/toast.d.ts +76 -29
- package/build/template/stores/toast.d.ts.map +1 -1
- package/build/template/stores/toast.js +53 -16
- package/build/template/stores/toast.js.map +1 -1
- package/build/vite/config.d.ts +10 -0
- package/build/vite/config.d.ts.map +1 -0
- package/build/vite/config.js +17 -0
- package/build/vite/config.js.map +1 -0
- package/build/vite/index.d.ts +6 -0
- package/build/vite/index.d.ts.map +1 -0
- package/build/vite/index.js +6 -0
- package/build/vite/index.js.map +1 -0
- package/build/vite/log-filters.d.ts.map +1 -0
- package/build/vite/log-filters.js.map +1 -0
- package/build/vite/logger.d.ts +27 -0
- package/build/vite/logger.d.ts.map +1 -0
- package/build/vite/logger.js +67 -0
- package/build/vite/logger.js.map +1 -0
- package/build/vite/plugins/branding.d.ts.map +1 -0
- package/build/vite/plugins/branding.js +80 -0
- package/build/vite/plugins/branding.js.map +1 -0
- package/build/vite/plugins/build.d.ts +4 -0
- package/build/vite/plugins/build.d.ts.map +1 -0
- package/build/vite/plugins/build.js +144 -0
- package/build/vite/plugins/build.js.map +1 -0
- package/build/vite/plugins/core.d.ts +12 -0
- package/build/vite/plugins/core.d.ts.map +1 -0
- package/build/vite/plugins/core.js +226 -0
- package/build/vite/plugins/core.js.map +1 -0
- package/build/vite/plugins/index.d.ts +8 -0
- package/build/vite/plugins/index.d.ts.map +1 -0
- package/build/vite/plugins/index.js +8 -0
- package/build/vite/plugins/index.js.map +1 -0
- package/build/vite/plugins/main.d.ts +4 -0
- package/build/vite/plugins/main.d.ts.map +1 -0
- package/build/vite/plugins/main.js +26 -0
- package/build/vite/plugins/main.js.map +1 -0
- package/build/vite/plugins/manifest.d.ts +4 -0
- package/build/vite/plugins/manifest.d.ts.map +1 -0
- package/build/vite/plugins/manifest.js +27 -0
- package/build/vite/plugins/manifest.js.map +1 -0
- package/build/vite/plugins/pages.d.ts +17 -0
- package/build/vite/plugins/pages.d.ts.map +1 -0
- package/build/vite/plugins/pages.js +210 -0
- package/build/vite/plugins/pages.js.map +1 -0
- package/build/vite/plugins/routes-manifest.d.ts +9 -0
- package/build/vite/plugins/routes-manifest.d.ts.map +1 -0
- package/build/vite/plugins/routes-manifest.js +99 -0
- package/build/vite/plugins/routes-manifest.js.map +1 -0
- package/build/vite/plugins/schema-assets.d.ts +20 -0
- package/build/vite/plugins/schema-assets.d.ts.map +1 -0
- package/build/vite/plugins/schema-assets.js +225 -0
- package/build/vite/plugins/schema-assets.js.map +1 -0
- package/build/vite/plugins/serve.d.ts +4 -0
- package/build/vite/plugins/serve.d.ts.map +1 -0
- package/build/vite/plugins/serve.js +160 -0
- package/build/vite/plugins/serve.js.map +1 -0
- package/build/vite/vi.d.ts.map +1 -0
- package/build/vite/vi.js.map +1 -0
- package/package.json +90 -49
- package/src/api/api.ts +3 -8
- package/src/api/builder/builder.ts +44 -26
- package/src/api/builder/ssg/generate.ts +224 -0
- package/src/api/builder/ssg/page-generator.worker.ts +110 -0
- package/src/api/builder/ssg/server-runner.worker.ts +158 -0
- package/src/api/builder/ssg/worker-messages.ts +69 -0
- package/src/api/builder/ssg/worker-spawners.ts +69 -0
- package/src/api/cache/cache.ts +180 -134
- package/src/api/config/$$.ts +3 -0
- package/src/api/config/$.ts +1 -0
- package/src/api/config/input.ts +340 -0
- package/src/api/config/load.ts +94 -70
- package/src/api/config/normalized.ts +433 -0
- package/src/api/config-resolver/config-resolver.ts +0 -1
- package/src/api/config-resolver/resolve.ts +18 -16
- package/src/api/content/$.test.ts +28 -32
- package/src/api/content/metadata.ts +5 -5
- package/src/api/content/scan.ts +91 -83
- package/src/api/content/sidebar.ts +1 -1
- package/src/api/hooks/helpers.ts +5 -0
- package/src/api/hooks/index.ts +2 -0
- package/src/api/hooks/types.ts +8 -0
- package/src/api/iso/schema/constants.ts +1 -0
- package/src/api/iso/schema/routing.ts +28 -9
- package/src/api/routes/$$.ts +1 -0
- package/src/api/routes/$.ts +1 -0
- package/src/api/routes/manifest/$$.ts +1 -0
- package/src/api/routes/manifest/$.ts +1 -0
- package/src/api/routes/manifest/manifest.ts +61 -0
- package/src/api/schema/$$.ts +7 -0
- package/src/api/schema/$.test.ts +504 -0
- package/src/api/schema/$.ts +1 -0
- package/src/api/schema/augmentations/$.ts +1 -0
- package/src/api/schema/augmentations/augmentations/description.ts +69 -0
- package/src/api/schema/augmentations/schema-augmentation.ts +32 -0
- package/src/api/schema/augmentations/target.ts +61 -0
- package/src/api/schema/config-schema.ts +415 -0
- package/src/api/schema/config.ts +7 -0
- package/src/api/schema/input-source/$$.ts +2 -0
- package/src/api/schema/input-source/$.ts +1 -0
- package/src/api/schema/input-source/input-source.ts +134 -0
- package/src/api/schema/input-source/load.ts +75 -0
- package/src/api/schema/input-sources/$$.ts +6 -0
- package/src/api/schema/input-sources/$.ts +1 -0
- package/src/api/schema/input-sources/directory.ts +259 -0
- package/src/api/schema/input-sources/file.ts +113 -0
- package/src/api/schema/input-sources/introspection-file.ts +179 -0
- package/src/api/schema/input-sources/introspection.ts +222 -0
- package/src/api/schema/input-sources/memory.ts +241 -0
- package/src/api/schema/input-sources/versioned-directory.ts +535 -0
- package/src/api/schema/load.ts +186 -0
- package/src/api/server/report-error.ts +4 -1
- package/src/api/singletons/markdown/markdown.test.ts +7 -6
- package/src/api/singletons/markdown/markdown.ts +6 -4
- package/src/api/static/manifest.test.ts +11 -8
- package/src/api/static/manifest.ts +46 -11
- package/src/api/static/rebase.ts +171 -82
- package/src/cli/_/parameters.ts +7 -0
- package/src/cli/commands/build.ts +32 -16
- package/src/cli/commands/cache/delete.ts +2 -1
- package/src/cli/commands/cache/show.ts +2 -0
- package/src/cli/commands/config/create.ts +2 -1
- package/src/cli/commands/dev.ts +24 -14
- package/src/cli/commands/open.ts +6 -2
- package/src/cli/commands/static/rebase.ts +9 -1
- package/src/cli/index.ts +28 -0
- package/src/cli-effect/_/parameters.ts +17 -0
- package/src/cli-effect/commands/build.ts +66 -0
- package/src/cli-effect/commands/cache/delete.ts +21 -0
- package/src/cli-effect/commands/cache/show.ts +99 -0
- package/src/cli-effect/commands/cache.ts +27 -0
- package/src/cli-effect/commands/config/create.ts +49 -0
- package/src/cli-effect/commands/config.ts +25 -0
- package/src/cli-effect/commands/create.ts +167 -0
- package/src/cli-effect/commands/dev.ts +72 -0
- package/src/cli-effect/commands/open.ts +183 -0
- package/src/cli-effect/commands/static/rebase.ts +66 -0
- package/src/cli-effect/commands/static.ts +39 -0
- package/src/cli-effect/index.ts +79 -0
- package/src/dep/tiny-globby/index.ts +1 -0
- package/src/dep/tiny-globby/tiny-globby.ts +27 -0
- package/src/exports/polen.ts +3 -3
- package/src/exports/radix-ui/react-icons.ts +3 -0
- package/src/exports/radix-ui/themes.ts +3 -0
- package/src/lib/catalog/$.ts +1 -0
- package/src/lib/catalog/catalog.ts +73 -0
- package/src/lib/catalog/unversioned.ts +42 -0
- package/src/lib/catalog/versioned.ts +42 -0
- package/src/lib/change/$$.ts +3 -0
- package/src/lib/change/$.ts +1 -0
- package/src/lib/change/calc-changeset.ts +650 -0
- package/src/lib/change/change.ts +718 -0
- package/src/lib/change/criticality.ts +53 -0
- package/src/lib/change/level.ts +3 -0
- package/src/lib/date-only/$.ts +1 -0
- package/src/lib/date-only/date-only.ts +112 -0
- package/src/lib/file-path/$$.ts +5 -0
- package/src/lib/file-path/$.ts +5 -0
- package/src/lib/file-path/file-path.test.ts +80 -0
- package/src/lib/file-path/file-path.ts +134 -0
- package/src/lib/file-router/index.test.ts +3 -2
- package/src/lib/file-router/linter.test.ts +95 -79
- package/src/lib/file-router/route.ts +1 -1
- package/src/lib/file-router/scan.ts +22 -17
- package/src/lib/grafaid/schema/ast.ts +8 -2
- package/src/lib/grafaid/schema/read.ts +28 -12
- package/src/lib/grafaid/schema/schema.ts +8 -1
- package/src/lib/grafaid/schema/type-class-name.ts +9 -9
- package/src/lib/grafaid-old/grafaid.ts +6 -6
- package/src/lib/graph/$$.ts +1 -0
- package/src/lib/graph/$.ts +1 -0
- package/src/lib/graph/graph.ts +197 -0
- package/src/lib/graphql-schema-loader/graphql-schema-loader.ts +66 -51
- package/src/lib/helpers.ts +78 -14
- package/src/lib/html-utils/inject-global-data.test.ts +63 -66
- package/src/lib/kit-temp/$$.ts +6 -0
- package/src/lib/kit-temp/$.ts +2 -0
- package/src/lib/kit-temp/array.ts +30 -0
- package/src/lib/kit-temp/effect.test.ts +124 -0
- package/src/lib/kit-temp/effect.ts +656 -0
- package/src/lib/kit-temp/effect.union-adt.test.ts +81 -0
- package/src/lib/kit-temp/global-local-check.ts +179 -0
- package/src/lib/kit-temp/ob.ts +19 -0
- package/src/lib/kit-temp/other.test-d.ts +120 -0
- package/src/lib/kit-temp/other.test.ts +256 -0
- package/src/lib/kit-temp/other.ts +835 -0
- package/src/lib/kit-temp/resource.test.ts +365 -0
- package/src/lib/kit-temp/resource.ts +255 -0
- package/src/lib/lifecycles/$$.ts +1 -0
- package/src/lib/lifecycles/$.ts +1 -0
- package/src/lib/lifecycles/lifecycles.ts +521 -0
- package/src/lib/mask/$.test.ts +60 -82
- package/src/lib/mask/apply.ts +9 -9
- package/src/lib/mask/mask.test-d.ts +1 -1
- package/src/lib/memory-filesystem/$$.ts +1 -0
- package/src/lib/memory-filesystem/$.ts +1 -0
- package/src/lib/memory-filesystem/memory-filesystem.ts +162 -0
- package/src/lib/path-map/$.test.ts +2 -2
- package/src/lib/path-map/path-map.ts +15 -15
- package/src/lib/react-router-effect/$$.ts +5 -0
- package/src/lib/react-router-effect/$.ts +1 -0
- package/src/lib/react-router-effect/README.md +178 -0
- package/src/lib/react-router-effect/create-loader.ts +57 -0
- package/src/lib/react-router-effect/route-helpers.ts +25 -0
- package/src/lib/react-router-effect/route.ts +78 -0
- package/src/lib/react-router-effect/types.ts +82 -0
- package/src/lib/react-router-effect/use-loader-data.ts +133 -0
- package/src/lib/revision/$.ts +1 -0
- package/src/lib/revision/revision.ts +64 -0
- package/src/lib/schema/$.test.ts +54 -0
- package/src/lib/schema/schema.ts +50 -0
- package/src/lib/schema/unversioned.ts +59 -0
- package/src/lib/schema/versioned.ts +83 -0
- package/src/lib/schema-definition/$.test.ts +58 -0
- package/src/lib/schema-definition/$.ts +1 -0
- package/src/lib/schema-definition/graphql-ast.ts +14 -0
- package/src/lib/schema-definition/schema-definition.ts +115 -0
- package/src/lib/semver/$$.ts +1 -0
- package/src/lib/semver/$.test.ts +179 -0
- package/src/lib/semver/$.ts +1 -0
- package/src/lib/semver/official-release.ts +50 -0
- package/src/lib/semver/pre-release.ts +51 -0
- package/src/lib/semver/semver.ts +200 -0
- package/src/lib/services-crud/$$.ts +4 -0
- package/src/lib/services-crud/$.ts +1 -0
- package/src/lib/services-crud/browser-ro.ts +98 -0
- package/src/lib/services-crud/filesystem.ts +63 -0
- package/src/lib/services-crud/memory.ts +86 -0
- package/src/lib/services-crud/service.ts +49 -0
- package/src/lib/stack-processor/stack-processor.ts +32 -0
- package/src/lib/task/$.test.ts +37 -36
- package/src/lib/task/report.ts +2 -2
- package/src/lib/task/task.ts +72 -55
- package/src/lib/theme/theme.test.ts +40 -74
- package/src/lib/version/$$.ts +1 -0
- package/src/lib/version/$.test.ts +101 -0
- package/src/lib/version/$.ts +1 -0
- package/src/lib/version/custom.ts +46 -0
- package/src/lib/version/date.ts +47 -0
- package/src/lib/version/integer.ts +46 -0
- package/src/lib/version/semver.ts +46 -0
- package/src/lib/version/version.ts +222 -0
- package/src/lib/vite-plugin-json/vite-plugin-json.ts +2 -3
- package/src/lib/vite-plugin-mdx/vite-plugin-mdx.ts +3 -1
- package/src/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.ts +1 -1
- package/src/project-data.ts +1 -1
- package/src/sandbox.ts +15 -1
- package/src/template/catalog-bridge.ts +102 -0
- package/src/template/components/Changelog/ChangeBase.tsx +1 -1
- package/src/template/components/Changelog/Changelog.tsx +148 -0
- package/src/template/components/Changelog/ChangelogVersionPicker.tsx +36 -0
- package/src/template/components/Changelog/CriticalitySection.tsx +18 -2
- package/src/template/components/Changelog/groups/DirectiveArgument.tsx +7 -8
- package/src/template/components/Changelog/groups/DirectiveArgumentDescription.tsx +3 -4
- package/src/template/components/Changelog/groups/DirectiveArgumentOperation.tsx +5 -7
- package/src/template/components/Changelog/groups/DirectiveDescription.tsx +3 -3
- package/src/template/components/Changelog/groups/DirectiveLocationOperation.tsx +5 -7
- package/src/template/components/Changelog/groups/DirectiveOperation.tsx +5 -5
- package/src/template/components/Changelog/groups/EnumValueDeprecationReason.tsx +7 -9
- package/src/template/components/Changelog/groups/EnumValueDescription.tsx +3 -3
- package/src/template/components/Changelog/groups/EnumValueOperation.tsx +5 -5
- package/src/template/components/Changelog/groups/FieldArgument.tsx +8 -10
- package/src/template/components/Changelog/groups/FieldArgumentDescription.tsx +5 -4
- package/src/template/components/Changelog/groups/FieldArgumentOperation.tsx +7 -8
- package/src/template/components/Changelog/groups/FieldDeprecation.tsx +5 -5
- package/src/template/components/Changelog/groups/FieldDeprecationReason.tsx +9 -10
- package/src/template/components/Changelog/groups/FieldDescription.tsx +6 -6
- package/src/template/components/Changelog/groups/FieldOperation.tsx +7 -7
- package/src/template/components/Changelog/groups/InputFieldDefaultValue.tsx +4 -5
- package/src/template/components/Changelog/groups/InputFieldDescription.tsx +6 -9
- package/src/template/components/Changelog/groups/InputFieldOperation.tsx +7 -8
- package/src/template/components/Changelog/groups/ObjectTypeInterfaceOperation.tsx +5 -7
- package/src/template/components/Changelog/groups/SchemaRootType.tsx +8 -10
- package/src/template/components/Changelog/groups/TypeDescription.tsx +6 -6
- package/src/template/components/Changelog/groups/TypeOperation.tsx +6 -6
- package/src/template/components/Changelog/groups/UnionMemberOperation.tsx +5 -5
- package/src/template/components/Changelog/groups/index.ts +1 -1
- package/src/template/components/CodeBlock.tsx +6 -2
- package/src/template/components/Field.tsx +38 -28
- package/src/template/components/GraphQLInteractive/GraphQLInteractive.tsx +1 -1
- package/src/template/components/GraphQLInteractive/components/GraphQLTokenPopover.tsx +8 -8
- package/src/template/components/GraphQLInteractive/lib/parser.ts +1 -1
- package/src/template/components/GraphQLInteractive/tests/parser-error-hint.test.ts +3 -3
- package/src/template/components/GraphQLInteractive/tests/parser.test.ts +76 -65
- package/src/template/components/HamburgerMenu.tsx +5 -1
- package/src/template/components/Link.tsx +1 -1
- package/src/template/components/NamedType.tsx +34 -17
- package/src/template/components/VersionPicker.tsx +48 -23
- package/src/template/components/navbar/DefaultNavbar.tsx +22 -0
- package/src/template/components/navbar/Item.tsx +11 -0
- package/src/template/components/sidebar/Sidebar.tsx +1 -1
- package/src/template/contexts/GraphqlLifecycleContext.tsx +43 -0
- package/src/template/contexts/ThemeContext.tsx +2 -2
- package/src/template/data/catalog.ts +7 -0
- package/src/template/entry.client.tsx +7 -3
- package/src/template/env.d.ts +3 -0
- package/src/template/hooks/useVersionPath.ts +6 -1
- package/src/template/layouts/ChangelogLayout.tsx +85 -64
- package/src/template/layouts/SidebarLayout.tsx +7 -3
- package/src/template/lib/polen-url.ts +1 -1
- package/src/template/routes/changelog.tsx +27 -27
- package/src/template/routes/index.tsx +1 -1
- package/src/template/routes/pages.tsx +4 -19
- package/src/template/routes/reference.tsx +102 -55
- package/src/template/routes/root.tsx +39 -39
- package/src/template/server/create-page-html-response.ts +2 -2
- package/src/template/server/main.ts +7 -7
- package/src/template/server/view.ts +4 -2
- package/src/template/stores/$$.ts +3 -0
- package/src/template/stores/changelog.ts +87 -0
- package/src/template/stores/schema.ts +21 -10
- package/src/template/stores/toast.ts +56 -37
- package/src/types/global-constants.d.ts +36 -0
- package/src/types/global.d.ts +17 -0
- package/src/types/virtual-modules.d.ts +41 -0
- package/src/vite/config.ts +27 -0
- package/src/vite/index.ts +5 -0
- package/src/vite/logger.ts +90 -0
- package/src/vite/plugins/branding.ts +108 -0
- package/src/vite/plugins/build.ts +147 -0
- package/src/vite/plugins/core.ts +279 -0
- package/src/vite/plugins/index.ts +7 -0
- package/src/vite/plugins/main.ts +42 -0
- package/src/vite/plugins/manifest.ts +36 -0
- package/src/vite/plugins/pages.ts +266 -0
- package/src/vite/plugins/routes-manifest.ts +145 -0
- package/src/vite/plugins/schema-assets.ts +265 -0
- package/src/vite/plugins/serve.ts +201 -0
- package/build/api/config/config.d.ts +0 -5
- package/build/api/config/config.d.ts.map +0 -1
- package/build/api/config/config.js +0 -5
- package/build/api/config/config.js.map +0 -1
- package/build/api/config/configurator.d.ts +0 -380
- package/build/api/config/configurator.d.ts.map +0 -1
- package/build/api/config/configurator.js +0 -177
- package/build/api/config/configurator.js.map +0 -1
- package/build/api/config/define.d.ts +0 -7
- package/build/api/config/define.d.ts.map +0 -1
- package/build/api/config/define.js +0 -7
- package/build/api/config/define.js.map +0 -1
- package/build/api/config/index.d.ts +0 -2
- package/build/api/config/index.d.ts.map +0 -1
- package/build/api/config/index.js +0 -2
- package/build/api/config/index.js.map +0 -1
- package/build/api/config/merge.d.ts +0 -7
- package/build/api/config/merge.d.ts.map +0 -1
- package/build/api/config/merge.js +0 -42
- package/build/api/config/merge.js.map +0 -1
- package/build/api/config-resolver/vite.d.ts +0 -10
- package/build/api/config-resolver/vite.d.ts.map +0 -1
- package/build/api/config-resolver/vite.js +0 -19
- package/build/api/config-resolver/vite.js.map +0 -1
- package/build/api/schema/data-sources/data-sources.d.ts +0 -5
- package/build/api/schema/data-sources/data-sources.d.ts.map +0 -1
- package/build/api/schema/data-sources/data-sources.js +0 -5
- package/build/api/schema/data-sources/data-sources.js.map +0 -1
- package/build/api/schema/data-sources/index.d.ts +0 -2
- package/build/api/schema/data-sources/index.d.ts.map +0 -1
- package/build/api/schema/data-sources/index.js +0 -2
- package/build/api/schema/data-sources/index.js.map +0 -1
- package/build/api/schema/data-sources/introspection/introspection.d.ts +0 -84
- package/build/api/schema/data-sources/introspection/introspection.d.ts.map +0 -1
- package/build/api/schema/data-sources/introspection/introspection.js +0 -111
- package/build/api/schema/data-sources/introspection/introspection.js.map +0 -1
- package/build/api/schema/data-sources/memory/memory.d.ts +0 -51
- package/build/api/schema/data-sources/memory/memory.d.ts.map +0 -1
- package/build/api/schema/data-sources/memory/memory.js +0 -63
- package/build/api/schema/data-sources/memory/memory.js.map +0 -1
- package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.d.ts +0 -13
- package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.d.ts.map +0 -1
- package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.js +0 -49
- package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.js.map +0 -1
- package/build/api/schema/data-sources/schema-directory/file-name-expression/index.d.ts +0 -2
- package/build/api/schema/data-sources/schema-directory/file-name-expression/index.d.ts.map +0 -1
- package/build/api/schema/data-sources/schema-directory/file-name-expression/index.js +0 -2
- package/build/api/schema/data-sources/schema-directory/file-name-expression/index.js.map +0 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts +0 -49
- package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts.map +0 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.js +0 -100
- package/build/api/schema/data-sources/schema-directory/schema-directory.js.map +0 -1
- package/build/api/schema/data-sources/schema-file/schema-file.d.ts +0 -35
- package/build/api/schema/data-sources/schema-file/schema-file.d.ts.map +0 -1
- package/build/api/schema/data-sources/schema-file/schema-file.js +0 -45
- package/build/api/schema/data-sources/schema-file/schema-file.js.map +0 -1
- package/build/api/schema/index.d.ts +0 -2
- package/build/api/schema/index.d.ts.map +0 -1
- package/build/api/schema/index.js +0 -2
- package/build/api/schema/index.js.map +0 -1
- package/build/api/schema/metadata.d.ts +0 -16
- package/build/api/schema/metadata.d.ts.map +0 -1
- package/build/api/schema/metadata.js +0 -19
- package/build/api/schema/metadata.js.map +0 -1
- package/build/api/schema/read.d.ts +0 -135
- package/build/api/schema/read.d.ts.map +0 -1
- package/build/api/schema/read.js +0 -50
- package/build/api/schema/read.js.map +0 -1
- package/build/api/schema/schema.d.ts +0 -6
- package/build/api/schema/schema.d.ts.map +0 -1
- package/build/api/schema/schema.js +0 -8
- package/build/api/schema/schema.js.map +0 -1
- package/build/api/schema-augmentation/augmentations/description.d.ts +0 -17
- package/build/api/schema-augmentation/augmentations/description.d.ts.map +0 -1
- package/build/api/schema-augmentation/augmentations/description.js +0 -40
- package/build/api/schema-augmentation/augmentations/description.js.map +0 -1
- package/build/api/schema-augmentation/index.d.ts +0 -2
- package/build/api/schema-augmentation/index.d.ts.map +0 -1
- package/build/api/schema-augmentation/index.js +0 -2
- package/build/api/schema-augmentation/index.js.map +0 -1
- package/build/api/schema-augmentation/schema-augmentation.d.ts +0 -6
- package/build/api/schema-augmentation/schema-augmentation.d.ts.map +0 -1
- package/build/api/schema-augmentation/schema-augmentation.js +0 -17
- package/build/api/schema-augmentation/schema-augmentation.js.map +0 -1
- package/build/api/schema-augmentation/target.d.ts +0 -14
- package/build/api/schema-augmentation/target.d.ts.map +0 -1
- package/build/api/schema-augmentation/target.js +0 -25
- package/build/api/schema-augmentation/target.js.map +0 -1
- package/build/api/schema-source/index.d.ts +0 -2
- package/build/api/schema-source/index.d.ts.map +0 -1
- package/build/api/schema-source/index.js +0 -2
- package/build/api/schema-source/index.js.map +0 -1
- package/build/api/schema-source/schema-source.d.ts +0 -37
- package/build/api/schema-source/schema-source.d.ts.map +0 -1
- package/build/api/schema-source/schema-source.js +0 -150
- package/build/api/schema-source/schema-source.js.map +0 -1
- package/build/api/vite/log-filters.d.ts.map +0 -1
- package/build/api/vite/log-filters.js.map +0 -1
- package/build/api/vite/logger.d.ts +0 -4
- package/build/api/vite/logger.d.ts.map +0 -1
- package/build/api/vite/logger.js +0 -29
- package/build/api/vite/logger.js.map +0 -1
- package/build/api/vite/plugins/branding.d.ts.map +0 -1
- package/build/api/vite/plugins/branding.js +0 -80
- package/build/api/vite/plugins/branding.js.map +0 -1
- package/build/api/vite/plugins/build.d.ts +0 -4
- package/build/api/vite/plugins/build.d.ts.map +0 -1
- package/build/api/vite/plugins/build.js +0 -167
- package/build/api/vite/plugins/build.js.map +0 -1
- package/build/api/vite/plugins/core.d.ts +0 -11
- package/build/api/vite/plugins/core.d.ts.map +0 -1
- package/build/api/vite/plugins/core.js +0 -210
- package/build/api/vite/plugins/core.js.map +0 -1
- package/build/api/vite/plugins/main.d.ts +0 -4
- package/build/api/vite/plugins/main.d.ts.map +0 -1
- package/build/api/vite/plugins/main.js +0 -25
- package/build/api/vite/plugins/main.js.map +0 -1
- package/build/api/vite/plugins/pages.d.ts +0 -17
- package/build/api/vite/plugins/pages.d.ts.map +0 -1
- package/build/api/vite/plugins/pages.js +0 -209
- package/build/api/vite/plugins/pages.js.map +0 -1
- package/build/api/vite/plugins/schema-assets.d.ts +0 -22
- package/build/api/vite/plugins/schema-assets.d.ts.map +0 -1
- package/build/api/vite/plugins/schema-assets.js +0 -319
- package/build/api/vite/plugins/schema-assets.js.map +0 -1
- package/build/api/vite/plugins/serve.d.ts +0 -4
- package/build/api/vite/plugins/serve.d.ts.map +0 -1
- package/build/api/vite/plugins/serve.js +0 -134
- package/build/api/vite/plugins/serve.js.map +0 -1
- package/build/api/vite/vi.d.ts.map +0 -1
- package/build/api/vite/vi.js.map +0 -1
- package/build/dep/superjson/index.d.ts +0 -2
- package/build/dep/superjson/index.d.ts.map +0 -1
- package/build/dep/superjson/index.js +0 -2
- package/build/dep/superjson/index.js.map +0 -1
- package/build/dep/superjson/superjson.d.ts +0 -5
- package/build/dep/superjson/superjson.d.ts.map +0 -1
- package/build/dep/superjson/superjson.js +0 -2
- package/build/dep/superjson/superjson.js.map +0 -1
- package/build/lib/graphql-change/$$.d.ts +0 -11
- package/build/lib/graphql-change/$$.d.ts.map +0 -1
- package/build/lib/graphql-change/$$.js +0 -10
- package/build/lib/graphql-change/$$.js.map +0 -1
- package/build/lib/graphql-change/$.d.ts +0 -2
- package/build/lib/graphql-change/$.d.ts.map +0 -1
- package/build/lib/graphql-change/$.js +0 -2
- package/build/lib/graphql-change/$.js.map +0 -1
- package/build/lib/graphql-change/change-groups.d.ts +0 -58
- package/build/lib/graphql-change/change-groups.d.ts.map +0 -1
- package/build/lib/graphql-change/change-groups.js +0 -87
- package/build/lib/graphql-change/change-groups.js.map +0 -1
- package/build/lib/graphql-change/change-types.d.ts +0 -170
- package/build/lib/graphql-change/change-types.d.ts.map +0 -1
- package/build/lib/graphql-change/change-types.js +0 -11
- package/build/lib/graphql-change/change-types.js.map +0 -1
- package/build/lib/graphql-change/criticality.d.ts +0 -26
- package/build/lib/graphql-change/criticality.d.ts.map +0 -1
- package/build/lib/graphql-change/criticality.js +0 -30
- package/build/lib/graphql-change/criticality.js.map +0 -1
- package/build/lib/graphql-change/old.d.ts +0 -2
- package/build/lib/graphql-change/old.d.ts.map +0 -1
- package/build/lib/graphql-change/old.js +0 -130
- package/build/lib/graphql-change/old.js.map +0 -1
- package/build/lib/graphql-changeset/$$.d.ts +0 -4
- package/build/lib/graphql-changeset/$$.d.ts.map +0 -1
- package/build/lib/graphql-changeset/$$.js +0 -4
- package/build/lib/graphql-changeset/$$.js.map +0 -1
- package/build/lib/graphql-changeset/$.d.ts +0 -2
- package/build/lib/graphql-changeset/$.d.ts.map +0 -1
- package/build/lib/graphql-changeset/$.js +0 -2
- package/build/lib/graphql-changeset/$.js.map +0 -1
- package/build/lib/graphql-changeset/changelog.d.ts +0 -4
- package/build/lib/graphql-changeset/changelog.d.ts.map +0 -1
- package/build/lib/graphql-changeset/changelog.js +0 -2
- package/build/lib/graphql-changeset/changelog.js.map +0 -1
- package/build/lib/graphql-changeset/changeset.d.ts +0 -66
- package/build/lib/graphql-changeset/changeset.d.ts.map +0 -1
- package/build/lib/graphql-changeset/changeset.js +0 -139
- package/build/lib/graphql-changeset/changeset.js.map +0 -1
- package/build/lib/graphql-changeset/versioned-schema.d.ts +0 -31
- package/build/lib/graphql-changeset/versioned-schema.d.ts.map +0 -1
- package/build/lib/graphql-changeset/versioned-schema.js +0 -14
- package/build/lib/graphql-changeset/versioned-schema.js.map +0 -1
- package/build/lib/kit-temp.d.ts +0 -285
- package/build/lib/kit-temp.d.ts.map +0 -1
- package/build/lib/kit-temp.js +0 -486
- package/build/lib/kit-temp.js.map +0 -1
- package/build/lib/kit-temp.test-d.d.ts +0 -2
- package/build/lib/kit-temp.test-d.d.ts.map +0 -1
- package/build/lib/kit-temp.test-d.js +0 -75
- package/build/lib/kit-temp.test-d.js.map +0 -1
- package/build/lib/react-router-loader/$$.d.ts +0 -6
- package/build/lib/react-router-loader/$$.d.ts.map +0 -1
- package/build/lib/react-router-loader/$$.js +0 -24
- package/build/lib/react-router-loader/$$.js.map +0 -1
- package/build/lib/react-router-loader/$.d.ts +0 -2
- package/build/lib/react-router-loader/$.d.ts.map +0 -1
- package/build/lib/react-router-loader/$.js +0 -2
- package/build/lib/react-router-loader/$.js.map +0 -1
- package/build/lib/schema-lifecycle/$$.d.ts +0 -6
- package/build/lib/schema-lifecycle/$$.d.ts.map +0 -1
- package/build/lib/schema-lifecycle/$$.js +0 -6
- package/build/lib/schema-lifecycle/$$.js.map +0 -1
- package/build/lib/schema-lifecycle/$.d.ts +0 -2
- package/build/lib/schema-lifecycle/$.d.ts.map +0 -1
- package/build/lib/schema-lifecycle/$.js +0 -2
- package/build/lib/schema-lifecycle/$.js.map +0 -1
- package/build/lib/schema-lifecycle/FieldLifecycle.d.ts +0 -17
- package/build/lib/schema-lifecycle/FieldLifecycle.d.ts.map +0 -1
- package/build/lib/schema-lifecycle/FieldLifecycle.js +0 -2
- package/build/lib/schema-lifecycle/FieldLifecycle.js.map +0 -1
- package/build/lib/schema-lifecycle/LifecycleEvent.d.ts +0 -25
- package/build/lib/schema-lifecycle/LifecycleEvent.d.ts.map +0 -1
- package/build/lib/schema-lifecycle/LifecycleEvent.js +0 -2
- package/build/lib/schema-lifecycle/LifecycleEvent.js.map +0 -1
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.d.ts +0 -59
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.d.ts.map +0 -1
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.js +0 -24
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.js.map +0 -1
- package/build/lib/schema-lifecycle/SchemaLifecycle.d.ts +0 -25
- package/build/lib/schema-lifecycle/SchemaLifecycle.d.ts.map +0 -1
- package/build/lib/schema-lifecycle/SchemaLifecycle.js +0 -59
- package/build/lib/schema-lifecycle/SchemaLifecycle.js.map +0 -1
- package/build/lib/schema-lifecycle/SchemaLink.d.ts +0 -2
- package/build/lib/schema-lifecycle/SchemaLink.d.ts.map +0 -1
- package/build/lib/schema-lifecycle/SchemaLink.js +0 -38
- package/build/lib/schema-lifecycle/SchemaLink.js.map +0 -1
- package/build/lib/schema-lifecycle/handlers.d.ts +0 -20
- package/build/lib/schema-lifecycle/handlers.d.ts.map +0 -1
- package/build/lib/schema-lifecycle/handlers.js +0 -168
- package/build/lib/schema-lifecycle/handlers.js.map +0 -1
- package/build/lib/schema-lifecycle/utils.d.ts +0 -53
- package/build/lib/schema-lifecycle/utils.d.ts.map +0 -1
- package/build/lib/schema-lifecycle/utils.js +0 -160
- package/build/lib/schema-lifecycle/utils.js.map +0 -1
- package/build/lib/superjson-codec/$$.d.ts +0 -3
- package/build/lib/superjson-codec/$$.d.ts.map +0 -1
- package/build/lib/superjson-codec/$$.js +0 -3
- package/build/lib/superjson-codec/$$.js.map +0 -1
- package/build/lib/superjson-codec/$.d.ts +0 -2
- package/build/lib/superjson-codec/$.d.ts.map +0 -1
- package/build/lib/superjson-codec/$.js +0 -2
- package/build/lib/superjson-codec/$.js.map +0 -1
- package/build/lib/superjson-codec/codec.d.ts +0 -9
- package/build/lib/superjson-codec/codec.d.ts.map +0 -1
- package/build/lib/superjson-codec/codec.js +0 -7
- package/build/lib/superjson-codec/codec.js.map +0 -1
- package/build/lib/superjson-codec/codecs/graphql-schema.d.ts +0 -3
- package/build/lib/superjson-codec/codecs/graphql-schema.d.ts.map +0 -1
- package/build/lib/superjson-codec/codecs/graphql-schema.js +0 -22
- package/build/lib/superjson-codec/codecs/graphql-schema.js.map +0 -1
- package/build/singletons/superjson.d.ts +0 -4
- package/build/singletons/superjson.d.ts.map +0 -1
- package/build/singletons/superjson.js +0 -6
- package/build/singletons/superjson.js.map +0 -1
- package/build/template/components/Changelog/groups/DirectiveUsage.d.ts +0 -6
- package/build/template/components/Changelog/groups/DirectiveUsage.d.ts.map +0 -1
- package/build/template/components/Changelog/groups/DirectiveUsage.js +0 -59
- package/build/template/components/Changelog/groups/DirectiveUsage.js.map +0 -1
- package/build/template/components/Changelog.d.ts +0 -7
- package/build/template/components/Changelog.d.ts.map +0 -1
- package/build/template/components/Changelog.js +0 -52
- package/build/template/components/Changelog.js.map +0 -1
- package/build/template/contexts/SchemaLifecycleContext.d.ts +0 -14
- package/build/template/contexts/SchemaLifecycleContext.d.ts.map +0 -1
- package/build/template/contexts/SchemaLifecycleContext.js +0 -15
- package/build/template/contexts/SchemaLifecycleContext.js.map +0 -1
- package/build/template/server/ssg/generate.d.ts +0 -3
- package/build/template/server/ssg/generate.d.ts.map +0 -1
- package/build/template/server/ssg/generate.js +0 -79
- package/build/template/server/ssg/generate.js.map +0 -1
- package/build/template/server/ssg/get-route-paths.d.ts +0 -2
- package/build/template/server/ssg/get-route-paths.d.ts.map +0 -1
- package/build/template/server/ssg/get-route-paths.js +0 -149
- package/build/template/server/ssg/get-route-paths.js.map +0 -1
- package/build/template/sources/schema-source.d.ts +0 -17
- package/build/template/sources/schema-source.d.ts.map +0 -1
- package/build/template/sources/schema-source.js +0 -64
- package/build/template/sources/schema-source.js.map +0 -1
- package/src/api/config/config.ts +0 -4
- package/src/api/config/configurator.ts +0 -566
- package/src/api/config/define.ts +0 -8
- package/src/api/config/index.ts +0 -1
- package/src/api/config/merge.ts +0 -61
- package/src/api/config-resolver/vite.ts +0 -28
- package/src/api/schema/data-sources/data-sources.ts +0 -4
- package/src/api/schema/data-sources/index.ts +0 -1
- package/src/api/schema/data-sources/introspection/introspection.ts +0 -216
- package/src/api/schema/data-sources/memory/memory.ts +0 -125
- package/src/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.ts +0 -84
- package/src/api/schema/data-sources/schema-directory/file-name-expression/index.ts +0 -1
- package/src/api/schema/data-sources/schema-directory/schema-directory.ts +0 -178
- package/src/api/schema/data-sources/schema-file/schema-file.ts +0 -84
- package/src/api/schema/metadata.ts +0 -23
- package/src/api/schema/read.ts +0 -196
- package/src/api/schema/schema.ts +0 -8
- package/src/api/schema-augmentation/augmentations/description.ts +0 -57
- package/src/api/schema-augmentation/index.ts +0 -1
- package/src/api/schema-augmentation/schema-augmentation.ts +0 -25
- package/src/api/schema-augmentation/target.ts +0 -50
- package/src/api/schema-source/index.ts +0 -1
- package/src/api/schema-source/schema-source.ts +0 -216
- package/src/api/vite/logger.ts +0 -33
- package/src/api/vite/plugins/branding.ts +0 -108
- package/src/api/vite/plugins/build.ts +0 -179
- package/src/api/vite/plugins/core.ts +0 -244
- package/src/api/vite/plugins/main.ts +0 -40
- package/src/api/vite/plugins/pages.ts +0 -261
- package/src/api/vite/plugins/schema-assets.ts +0 -378
- package/src/api/vite/plugins/serve.ts +0 -161
- package/src/dep/superjson/index.ts +0 -1
- package/src/dep/superjson/superjson.ts +0 -8
- package/src/lib/graphql-change/$$.ts +0 -18
- package/src/lib/graphql-change/$.ts +0 -1
- package/src/lib/graphql-change/change-groups.ts +0 -337
- package/src/lib/graphql-change/change-types.ts +0 -203
- package/src/lib/graphql-change/criticality.ts +0 -45
- package/src/lib/graphql-change/old.ts +0 -163
- package/src/lib/graphql-changeset/$$.ts +0 -3
- package/src/lib/graphql-changeset/$.ts +0 -1
- package/src/lib/graphql-changeset/changelog.ts +0 -9
- package/src/lib/graphql-changeset/changeset.ts +0 -190
- package/src/lib/graphql-changeset/versioned-schema.ts +0 -43
- package/src/lib/kit-temp.test-d.ts +0 -120
- package/src/lib/kit-temp.test.ts +0 -232
- package/src/lib/kit-temp.ts +0 -661
- package/src/lib/react-router-loader/$$.ts +0 -40
- package/src/lib/react-router-loader/$.ts +0 -1
- package/src/lib/schema-lifecycle/$$.ts +0 -19
- package/src/lib/schema-lifecycle/$.test.ts +0 -222
- package/src/lib/schema-lifecycle/$.ts +0 -1
- package/src/lib/schema-lifecycle/FieldLifecycle.ts +0 -18
- package/src/lib/schema-lifecycle/LifecycleEvent.ts +0 -27
- package/src/lib/schema-lifecycle/NamedTypeLifecycle.ts +0 -96
- package/src/lib/schema-lifecycle/SchemaLifecycle.ts +0 -85
- package/src/lib/schema-lifecycle/SchemaLink.ts +0 -40
- package/src/lib/schema-lifecycle/handlers.ts +0 -215
- package/src/lib/schema-lifecycle/utils.ts +0 -234
- package/src/lib/superjson-codec/$$.ts +0 -2
- package/src/lib/superjson-codec/$.ts +0 -1
- package/src/lib/superjson-codec/codec.ts +0 -18
- package/src/lib/superjson-codec/codecs/graphql-schema.ts +0 -24
- package/src/singletons/superjson.ts +0 -11
- package/src/template/components/Changelog/groups/DirectiveUsage.tsx +0 -137
- package/src/template/components/Changelog.tsx +0 -80
- package/src/template/contexts/SchemaLifecycleContext.tsx +0 -30
- package/src/template/global.d.ts +0 -7
- package/src/template/server/ssg/generate.ts +0 -101
- package/src/template/server/ssg/get-route-paths.test.ts +0 -145
- package/src/template/server/ssg/get-route-paths.ts +0 -151
- package/src/template/sources/schema-source.ts +0 -69
- /package/build/{api/vite → vite}/log-filters.d.ts +0 -0
- /package/build/{api/vite → vite}/log-filters.js +0 -0
- /package/build/{api/vite → vite}/plugins/branding.d.ts +0 -0
- /package/build/{api/vite → vite}/vi.d.ts +0 -0
- /package/build/{api/vite → vite}/vi.js +0 -0
- /package/src/{api/schema/index.ts → lib/schema/$.ts} +0 -0
- /package/src/{api/vite → vite}/log-filters.ts +0 -0
- /package/src/{api/vite → vite}/vi.ts +0 -0
@@ -1,216 +0,0 @@
|
|
1
|
-
import { Grafaid } from '#lib/grafaid'
|
2
|
-
import { GraphqlChange } from '#lib/graphql-change'
|
3
|
-
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
4
|
-
import { GraphqlSchemaLoader } from '#lib/graphql-schema-loader'
|
5
|
-
import { Fs, Json, Path } from '@wollybeard/kit'
|
6
|
-
import type { SchemaReadResult } from '../../schema.js'
|
7
|
-
|
8
|
-
/**
|
9
|
-
* Configuration for loading schema via GraphQL introspection.
|
10
|
-
*
|
11
|
-
* Polen supports two introspection features:
|
12
|
-
* 1. **File Convention**: Automatically detects `schema.introspection.json` if present
|
13
|
-
* 2. **Automatic Introspection**: Fetches from your endpoint and creates the file
|
14
|
-
*
|
15
|
-
* When configured, Polen will:
|
16
|
-
* - Execute the standard GraphQL introspection query against your endpoint
|
17
|
-
* - Save the result to `schema.introspection.json` in your project root
|
18
|
-
* - Use this cached file for subsequent builds (no network requests)
|
19
|
-
*
|
20
|
-
* The saved file contains a standard GraphQL introspection query result as defined
|
21
|
-
* in the GraphQL specification, making it compatible with any tool that works with
|
22
|
-
* introspection data (GraphQL Codegen, Apollo CLI, etc.).
|
23
|
-
*
|
24
|
-
* To refresh the schema, delete `schema.introspection.json` and rebuild.
|
25
|
-
*
|
26
|
-
* **Technical details**:
|
27
|
-
* - Uses Graffle's introspection extension
|
28
|
-
* - Performs the full introspection query (all types, fields, descriptions, etc.)
|
29
|
-
* - No customization of the query is currently supported
|
30
|
-
*
|
31
|
-
* @see https://spec.graphql.org/draft/#sec-Introspection - GraphQL Introspection spec
|
32
|
-
* @see https://github.com/graphql/graphql-js/blob/main/src/utilities/getIntrospectionQuery.ts - Reference implementation
|
33
|
-
*
|
34
|
-
* @example
|
35
|
-
* ```ts
|
36
|
-
* // Basic introspection
|
37
|
-
* introspection: {
|
38
|
-
* url: 'https://api.example.com/graphql'
|
39
|
-
* }
|
40
|
-
*
|
41
|
-
* // With authentication
|
42
|
-
* introspection: {
|
43
|
-
* url: 'https://api.example.com/graphql',
|
44
|
-
* headers: {
|
45
|
-
* 'Authorization': `Bearer ${process.env.API_TOKEN}`
|
46
|
-
* }
|
47
|
-
* }
|
48
|
-
* ```
|
49
|
-
*/
|
50
|
-
export interface ConfigInput {
|
51
|
-
/**
|
52
|
-
* The GraphQL endpoint URL to introspect.
|
53
|
-
*
|
54
|
-
* Must be a valid GraphQL endpoint that supports introspection queries.
|
55
|
-
*
|
56
|
-
* @example 'https://api.example.com/graphql'
|
57
|
-
*/
|
58
|
-
url?: string
|
59
|
-
/**
|
60
|
-
* Optional headers to include in the introspection request.
|
61
|
-
*
|
62
|
-
* Use this for authentication, API keys, or any custom headers
|
63
|
-
* required by your GraphQL endpoint.
|
64
|
-
*
|
65
|
-
* @example
|
66
|
-
* ```ts
|
67
|
-
* headers: {
|
68
|
-
* 'Authorization': `Bearer ${process.env.API_TOKEN}`,
|
69
|
-
* 'X-API-Key': process.env.API_KEY
|
70
|
-
* }
|
71
|
-
* ```
|
72
|
-
*/
|
73
|
-
headers?: Record<string, string>
|
74
|
-
projectRoot?: string
|
75
|
-
}
|
76
|
-
|
77
|
-
export interface Config {
|
78
|
-
url: string
|
79
|
-
headers?: Record<string, string>
|
80
|
-
projectRoot: string
|
81
|
-
}
|
82
|
-
|
83
|
-
export const normalizeConfig = (configInput: ConfigInput): Config => {
|
84
|
-
if (!configInput.url) {
|
85
|
-
throw new Error(`Introspection data source requires a URL`)
|
86
|
-
}
|
87
|
-
|
88
|
-
if (!configInput.projectRoot) {
|
89
|
-
throw new Error(`Introspection data source requires a projectRoot`)
|
90
|
-
}
|
91
|
-
|
92
|
-
const config: Config = {
|
93
|
-
url: configInput.url,
|
94
|
-
headers: configInput.headers,
|
95
|
-
projectRoot: configInput.projectRoot,
|
96
|
-
}
|
97
|
-
|
98
|
-
return config
|
99
|
-
}
|
100
|
-
|
101
|
-
const INTROSPECTION_FILE_NAME = `schema.introspection.json`
|
102
|
-
|
103
|
-
const getIntrospectionFilePath = (projectRoot: string) => {
|
104
|
-
return Path.join(projectRoot, INTROSPECTION_FILE_NAME)
|
105
|
-
}
|
106
|
-
|
107
|
-
export const readOrThrow = async (
|
108
|
-
configInput: ConfigInput,
|
109
|
-
): Promise<SchemaReadResult> => {
|
110
|
-
const config = normalizeConfig(configInput)
|
111
|
-
const introspectionFilePath = getIntrospectionFilePath(config.projectRoot)
|
112
|
-
|
113
|
-
// Check if introspection file exists
|
114
|
-
const introspectionFileContent = await Fs.read(introspectionFilePath)
|
115
|
-
let schema: Grafaid.Schema.Schema
|
116
|
-
|
117
|
-
if (introspectionFileContent) {
|
118
|
-
// Load from existing file - no reCreate capability
|
119
|
-
try {
|
120
|
-
const introspectionData = Json.codec.decode(introspectionFileContent)
|
121
|
-
|
122
|
-
// Validate introspection data structure before passing to fromIntrospectionQuery
|
123
|
-
if (!introspectionData || typeof introspectionData !== 'object') {
|
124
|
-
throw new Error('Introspection data must be a valid JSON object')
|
125
|
-
}
|
126
|
-
|
127
|
-
// Allow fromIntrospectionQuery to handle validation of the introspection format
|
128
|
-
// It will provide more specific GraphQL-related error messages
|
129
|
-
if (!('data' in introspectionData)) {
|
130
|
-
throw new Error(
|
131
|
-
'Introspection data missing required "data" property (expected GraphQL introspection result format)',
|
132
|
-
)
|
133
|
-
}
|
134
|
-
|
135
|
-
schema = Grafaid.Schema.fromIntrospectionQuery(introspectionData as any)
|
136
|
-
} catch (error) {
|
137
|
-
if (error instanceof SyntaxError) {
|
138
|
-
throw new Error(`Invalid JSON in ${introspectionFilePath}: ${error.message}`)
|
139
|
-
} else {
|
140
|
-
throw new Error(
|
141
|
-
`Invalid introspection data in ${introspectionFilePath}: ${
|
142
|
-
error instanceof Error ? error.message : String(error)
|
143
|
-
}. Delete this file to fetch fresh introspection data.`,
|
144
|
-
)
|
145
|
-
}
|
146
|
-
}
|
147
|
-
|
148
|
-
const schemaData = await createSingleSchemaChangeset(schema)
|
149
|
-
return {
|
150
|
-
data: schemaData,
|
151
|
-
source: { type: 'introspectionFile' },
|
152
|
-
}
|
153
|
-
} else {
|
154
|
-
// Fetch via introspection - can reCreate
|
155
|
-
const introspectionResult = await GraphqlSchemaLoader.load({
|
156
|
-
type: `introspect`,
|
157
|
-
url: config.url,
|
158
|
-
headers: config.headers,
|
159
|
-
})
|
160
|
-
|
161
|
-
schema = introspectionResult
|
162
|
-
|
163
|
-
// Get the raw introspection result for saving
|
164
|
-
const __schema = Grafaid.Schema.toIntrospectionQuery(schema)
|
165
|
-
|
166
|
-
// Wrap in GraphQL response format for consistency with API responses
|
167
|
-
const introspectionData = { data: { __schema } }
|
168
|
-
|
169
|
-
// Write to file
|
170
|
-
await Fs.write({
|
171
|
-
path: introspectionFilePath,
|
172
|
-
content: Json.codec.encode(introspectionData as any),
|
173
|
-
})
|
174
|
-
|
175
|
-
const schemaData = await createSingleSchemaChangeset(schema)
|
176
|
-
return {
|
177
|
-
data: schemaData,
|
178
|
-
source: {
|
179
|
-
type: 'introspectionAuto',
|
180
|
-
reCreate: async () => {
|
181
|
-
// Re-fetch using captured config - capture closure
|
182
|
-
const result = await readOrThrow(configInput)
|
183
|
-
return result.data
|
184
|
-
},
|
185
|
-
},
|
186
|
-
}
|
187
|
-
}
|
188
|
-
}
|
189
|
-
|
190
|
-
/**
|
191
|
-
* Create a single changeset from a schema object.
|
192
|
-
* This is the core logic for handling single (unversioned) schemas from introspection.
|
193
|
-
*/
|
194
|
-
export const createSingleSchemaChangeset = async (
|
195
|
-
schema: Grafaid.Schema.Schema,
|
196
|
-
): Promise<GraphqlChangeset.ChangelogLinked> => {
|
197
|
-
const date = new Date() // Generate date here for unversioned schema
|
198
|
-
const after = schema
|
199
|
-
const before = Grafaid.Schema.empty
|
200
|
-
const changes = await GraphqlChange.calcChangeset({
|
201
|
-
before,
|
202
|
-
after,
|
203
|
-
})
|
204
|
-
|
205
|
-
const changeset: GraphqlChangeset.IntermediateChangeSetLinked = {
|
206
|
-
type: 'IntermediateChangeSet',
|
207
|
-
date,
|
208
|
-
after: { version: null, data: after },
|
209
|
-
before: { version: null, data: before },
|
210
|
-
changes,
|
211
|
-
}
|
212
|
-
|
213
|
-
const result: GraphqlChangeset.ChangelogLinked = [changeset]
|
214
|
-
|
215
|
-
return result
|
216
|
-
}
|
@@ -1,125 +0,0 @@
|
|
1
|
-
import { Grafaid } from '#lib/grafaid'
|
2
|
-
import { GraphqlChange } from '#lib/graphql-change'
|
3
|
-
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
4
|
-
import { Arr } from '@wollybeard/kit'
|
5
|
-
|
6
|
-
/**
|
7
|
-
* Configuration for defining schemas programmatically in memory.
|
8
|
-
*
|
9
|
-
* Useful for demos, testing, or when schemas are generated dynamically.
|
10
|
-
*/
|
11
|
-
export interface ConfigInput {
|
12
|
-
/**
|
13
|
-
* Schema versions defined as SDL strings.
|
14
|
-
*
|
15
|
-
* Can be:
|
16
|
-
* - A single SDL string (no changelog)
|
17
|
-
* - Array of SDL strings (uses current date for all)
|
18
|
-
* - Array of objects with date and SDL (full changelog support)
|
19
|
-
*
|
20
|
-
* @example
|
21
|
-
* ```ts
|
22
|
-
* // Single schema
|
23
|
-
* versions: `
|
24
|
-
* type Query {
|
25
|
-
* hello: String
|
26
|
-
* }
|
27
|
-
* `
|
28
|
-
*
|
29
|
-
* // Multiple versions with explicit dates
|
30
|
-
* versions: [
|
31
|
-
* {
|
32
|
-
* date: new Date('2024-01-15'),
|
33
|
-
* value: `type Query { users: [User] }`
|
34
|
-
* },
|
35
|
-
* {
|
36
|
-
* date: new Date('2024-03-20'),
|
37
|
-
* value: `type Query { users: [User], posts: [Post] }`
|
38
|
-
* }
|
39
|
-
* ]
|
40
|
-
* ```
|
41
|
-
*/
|
42
|
-
versions:
|
43
|
-
| string
|
44
|
-
| string[]
|
45
|
-
| { date: Date; value: string }[]
|
46
|
-
}
|
47
|
-
|
48
|
-
export interface Config {
|
49
|
-
versions: { date: Date; value: string }[]
|
50
|
-
}
|
51
|
-
|
52
|
-
export const normalize = (configInput: ConfigInput): Config => {
|
53
|
-
const config: Config = {
|
54
|
-
versions: Arr.map(Arr.sure(configInput.versions), _ => {
|
55
|
-
if (typeof _ === `string`) {
|
56
|
-
return {
|
57
|
-
date: new Date(),
|
58
|
-
value: _,
|
59
|
-
}
|
60
|
-
}
|
61
|
-
return _
|
62
|
-
}),
|
63
|
-
}
|
64
|
-
|
65
|
-
return config
|
66
|
-
}
|
67
|
-
|
68
|
-
export const read = async (
|
69
|
-
configInput: ConfigInput,
|
70
|
-
): Promise<null | GraphqlChangeset.ChangelogLinked> => {
|
71
|
-
const config = normalize(configInput)
|
72
|
-
|
73
|
-
if (!Arr.isntEmpty(config.versions)) {
|
74
|
-
return null
|
75
|
-
}
|
76
|
-
|
77
|
-
const versions = Arr.map(config.versions, _ => {
|
78
|
-
return {
|
79
|
-
date: _.date,
|
80
|
-
schema: Grafaid.Schema.fromAST(Grafaid.Schema.AST.parse(_.value)),
|
81
|
-
}
|
82
|
-
})
|
83
|
-
|
84
|
-
versions.sort((a, b) => a.date.getTime() - b.date.getTime())
|
85
|
-
|
86
|
-
// todo: make DRY, this is same as for schema-directory
|
87
|
-
const changesets = await Promise.all(
|
88
|
-
Arr.map(versions, async (version, index): Promise<GraphqlChangeset.ChangeSetLinked> => {
|
89
|
-
const current = version
|
90
|
-
const previous = versions[index - 1]
|
91
|
-
|
92
|
-
const before = previous?.schema ?? Grafaid.Schema.empty
|
93
|
-
const after = current.schema
|
94
|
-
|
95
|
-
if (!previous) {
|
96
|
-
// First version - create InitialChangeSet
|
97
|
-
return {
|
98
|
-
type: 'InitialChangeSet',
|
99
|
-
date: current.date,
|
100
|
-
after: { version: null, data: after },
|
101
|
-
}
|
102
|
-
} else {
|
103
|
-
// Subsequent versions - create IntermediateChangeSet
|
104
|
-
const changes = await GraphqlChange.calcChangeset({
|
105
|
-
before,
|
106
|
-
after,
|
107
|
-
})
|
108
|
-
|
109
|
-
return {
|
110
|
-
type: 'IntermediateChangeSet',
|
111
|
-
date: current.date,
|
112
|
-
before: { version: null, data: before },
|
113
|
-
after: { version: null, data: after },
|
114
|
-
changes,
|
115
|
-
}
|
116
|
-
}
|
117
|
-
}),
|
118
|
-
)
|
119
|
-
|
120
|
-
changesets.reverse()
|
121
|
-
|
122
|
-
const schema: GraphqlChangeset.ChangelogLinked = changesets
|
123
|
-
|
124
|
-
return schema
|
125
|
-
}
|
package/src/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.ts
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
import { Path } from '@wollybeard/kit'
|
2
|
-
|
3
|
-
export type Expression = ExpressionVersioned | ExpressionSingle
|
4
|
-
|
5
|
-
export const parseOrThrow = (fileNameOrSerializedExpression: string): Expression => {
|
6
|
-
const result = parse(fileNameOrSerializedExpression)
|
7
|
-
if (!result) throw new Error(`Invalid serialized expression: ${fileNameOrSerializedExpression}`)
|
8
|
-
|
9
|
-
return result
|
10
|
-
}
|
11
|
-
|
12
|
-
export const parse = (fileName: string): null | Expression => {
|
13
|
-
const path = Path.parse(fileName)
|
14
|
-
if (path.ext !== `.graphql`) {
|
15
|
-
throw new Error(
|
16
|
-
`If file name is provided, must be .graphql. Got: ${fileName}`,
|
17
|
-
)
|
18
|
-
}
|
19
|
-
const serializedExpression = path.name
|
20
|
-
|
21
|
-
const versioned = parseExpressionVersionedSerialized(serializedExpression)
|
22
|
-
if (versioned) return { ...versioned, filePath: fileName, type: `FileNameExpressionVersioned` }
|
23
|
-
|
24
|
-
const single = parseExpressionSingleSerialized(serializedExpression)
|
25
|
-
if (single) return { ...single, filePath: fileName, type: `FileNameExpressionSingle` }
|
26
|
-
|
27
|
-
return null
|
28
|
-
}
|
29
|
-
|
30
|
-
// ----
|
31
|
-
|
32
|
-
export interface ExpressionVersioned {
|
33
|
-
type: `FileNameExpressionVersioned`
|
34
|
-
date: Date
|
35
|
-
filePath: string
|
36
|
-
}
|
37
|
-
|
38
|
-
const parseExpressionVersionedSerialized = (
|
39
|
-
serializedExpression: string,
|
40
|
-
): Pick<ExpressionVersioned, `date`> | null => {
|
41
|
-
const match = expressionVersionedSerializedPattern.exec(serializedExpression)
|
42
|
-
if (!match) return null
|
43
|
-
const { year, month, day } = match.groups as { year: string; month: string; day: string }
|
44
|
-
const date = new Date(parseInt(year), parseInt(month) - 1, parseInt(day))
|
45
|
-
return { date }
|
46
|
-
}
|
47
|
-
|
48
|
-
const expressionVersionedSerializedPattern = /^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})$/
|
49
|
-
|
50
|
-
// export const isExpressionVersioned = (expression: Expression): expression is ExpressionVersioned => {
|
51
|
-
// return expression.type === `FileNameExpressionVersioned`
|
52
|
-
// }
|
53
|
-
|
54
|
-
// ----
|
55
|
-
|
56
|
-
export interface ExpressionSingle {
|
57
|
-
type: `FileNameExpressionSingle`
|
58
|
-
filePath: string
|
59
|
-
}
|
60
|
-
|
61
|
-
const parseExpressionSingleSerialized = (
|
62
|
-
serializedExpression: string,
|
63
|
-
): {} | null => {
|
64
|
-
if (serializedExpression === `schema`) {
|
65
|
-
return {}
|
66
|
-
}
|
67
|
-
return null
|
68
|
-
}
|
69
|
-
|
70
|
-
// ----
|
71
|
-
|
72
|
-
// export interface ExpressionLatest {
|
73
|
-
// type: `FileNameExpressionLatest`
|
74
|
-
// filePath: string
|
75
|
-
// }
|
76
|
-
|
77
|
-
// const parseExpressionLatestSerialized = (serializedExpression: string): null | {} => {
|
78
|
-
// if (serializedExpression === `latest`) return {}
|
79
|
-
// return null
|
80
|
-
// }
|
81
|
-
|
82
|
-
// export const isExpressionLatest = (expression: Expression): expression is ExpressionLatest => {
|
83
|
-
// return expression.type === `FileNameExpressionLatest`
|
84
|
-
// }
|
@@ -1 +0,0 @@
|
|
1
|
-
export * as FileNameExpression from './file-name-expression.js'
|
@@ -1,178 +0,0 @@
|
|
1
|
-
import { Grafaid } from '#lib/grafaid'
|
2
|
-
import { GraphqlChange } from '#lib/graphql-change'
|
3
|
-
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
4
|
-
import { debugPolen } from '#singletons/debug'
|
5
|
-
import { Arr, Path } from '@wollybeard/kit'
|
6
|
-
import { glob } from 'tinyglobby'
|
7
|
-
import { readSingleSchemaFile } from '../schema-file/schema-file.js'
|
8
|
-
import { FileNameExpression } from './file-name-expression/index.js'
|
9
|
-
|
10
|
-
// const debug = debugPolen.sub([`schema`, `data-source-schema-directory`])
|
11
|
-
const debug = debugPolen.sub(`schema:data-source-schema-directory`)
|
12
|
-
|
13
|
-
const defaultPaths = {
|
14
|
-
schemaDirectory: `./schema`,
|
15
|
-
}
|
16
|
-
|
17
|
-
/**
|
18
|
-
* Configuration for loading schema(s) from a directory.
|
19
|
-
*
|
20
|
-
* Supports two modes:
|
21
|
-
* 1. Multiple versioned schemas with date prefixes (enables changelog feature)
|
22
|
-
* 2. Single schema file named 'schema.graphql' (non-versioned, like file data source)
|
23
|
-
*/
|
24
|
-
export interface ConfigInput {
|
25
|
-
/**
|
26
|
-
* Path to the directory containing schema files.
|
27
|
-
*
|
28
|
-
* Supports two patterns:
|
29
|
-
* 1. Multiple versioned files with ISO date prefixes: `YYYY-MM-DD.graphql`
|
30
|
-
* 2. Single file named: `schema.graphql`
|
31
|
-
*
|
32
|
-
* @default './schema'
|
33
|
-
*
|
34
|
-
* @example
|
35
|
-
* ```ts
|
36
|
-
* // Default location
|
37
|
-
* path: './schema'
|
38
|
-
*
|
39
|
-
* // Custom location
|
40
|
-
* path: './graphql/versions'
|
41
|
-
* ```
|
42
|
-
*
|
43
|
-
* Directory structure examples:
|
44
|
-
* ```
|
45
|
-
* // Versioned schemas (enables changelog)
|
46
|
-
* schema/
|
47
|
-
* 2024-01-15.graphql
|
48
|
-
* 2024-03-20.graphql
|
49
|
-
* 2024-06-10.graphql
|
50
|
-
*
|
51
|
-
* // Single schema (non-versioned)
|
52
|
-
* schema/
|
53
|
-
* schema.graphql
|
54
|
-
* ```
|
55
|
-
*/
|
56
|
-
path?: string
|
57
|
-
projectRoot?: string
|
58
|
-
}
|
59
|
-
|
60
|
-
export interface Config {
|
61
|
-
path: string
|
62
|
-
}
|
63
|
-
|
64
|
-
export const normalizeConfig = (configInput: ConfigInput): Config => {
|
65
|
-
const ensureAbsolute = Path.ensureAbsoluteWith(configInput.projectRoot)
|
66
|
-
const config: Config = {
|
67
|
-
path: ensureAbsolute(configInput.path ?? defaultPaths.schemaDirectory),
|
68
|
-
}
|
69
|
-
|
70
|
-
return config
|
71
|
-
}
|
72
|
-
|
73
|
-
export const readOrThrow = async (configInput: ConfigInput): Promise<null | GraphqlChangeset.ChangelogLinked> => {
|
74
|
-
const config = normalizeConfig(configInput)
|
75
|
-
|
76
|
-
debug(`will search`, config)
|
77
|
-
const filePaths = await glob({
|
78
|
-
cwd: config.path,
|
79
|
-
absolute: true,
|
80
|
-
onlyFiles: true,
|
81
|
-
patterns: [`*.graphql`],
|
82
|
-
})
|
83
|
-
debug(`did find`, filePaths)
|
84
|
-
|
85
|
-
if (!Arr.isntEmpty(filePaths)) {
|
86
|
-
return null
|
87
|
-
}
|
88
|
-
|
89
|
-
const fileNameExpressions = Arr.map(filePaths, FileNameExpression.parseOrThrow)
|
90
|
-
debug(`parsed file names`, fileNameExpressions)
|
91
|
-
|
92
|
-
// Separate versioned (dated) and single schema files
|
93
|
-
const versionedExpressions = fileNameExpressions.filter(
|
94
|
-
(expr): expr is FileNameExpression.ExpressionVersioned => expr.type === `FileNameExpressionVersioned`,
|
95
|
-
)
|
96
|
-
const singleExpressions = fileNameExpressions.filter(
|
97
|
-
(expr): expr is FileNameExpression.ExpressionSingle => expr.type === `FileNameExpressionSingle`,
|
98
|
-
)
|
99
|
-
|
100
|
-
// If we have versioned files, use them (versioned takes precedence)
|
101
|
-
if (Arr.isntEmpty(versionedExpressions)) {
|
102
|
-
return await readVersionedSchemas(versionedExpressions)
|
103
|
-
}
|
104
|
-
|
105
|
-
// If we have a single schema file, use it
|
106
|
-
if (Arr.isntEmpty(singleExpressions)) {
|
107
|
-
if (singleExpressions.length > 1) {
|
108
|
-
throw new Error(
|
109
|
-
`Multiple single schema files found, expected exactly one: ${
|
110
|
-
singleExpressions.map(e => e.filePath).join(', ')
|
111
|
-
}`,
|
112
|
-
)
|
113
|
-
}
|
114
|
-
return await readSingleSchemaFile(singleExpressions[0].filePath)
|
115
|
-
}
|
116
|
-
|
117
|
-
// Should not happen since we already checked for empty filePaths
|
118
|
-
throw new Error(`No schema files found despite non-empty file paths`)
|
119
|
-
}
|
120
|
-
|
121
|
-
/**
|
122
|
-
* Read multiple versioned schema files and create changesets
|
123
|
-
*/
|
124
|
-
const readVersionedSchemas = async (
|
125
|
-
versionedExpressions: FileNameExpression.ExpressionVersioned[],
|
126
|
-
): Promise<GraphqlChangeset.ChangelogLinked> => {
|
127
|
-
const versions = await Promise.all(Arr.map(versionedExpressions, async fileNameExpression => {
|
128
|
-
const schemaFile = await Grafaid.Schema.read(fileNameExpression.filePath)
|
129
|
-
// Should never happen since these paths come from the glob.
|
130
|
-
if (!schemaFile) throw new Error(`Failed to read schema file: ${fileNameExpression.filePath}`)
|
131
|
-
|
132
|
-
return {
|
133
|
-
...fileNameExpression,
|
134
|
-
schema: schemaFile.content,
|
135
|
-
}
|
136
|
-
}))
|
137
|
-
debug(`read versioned schemas`)
|
138
|
-
|
139
|
-
versions.sort((a, b) => a.date.getTime() - b.date.getTime())
|
140
|
-
|
141
|
-
const changesets = await Promise.all(
|
142
|
-
Arr.map(versions, async (version, index): Promise<GraphqlChangeset.ChangeSetLinked> => {
|
143
|
-
const current = version
|
144
|
-
const previous = versions[index - 1]
|
145
|
-
|
146
|
-
const before = previous?.schema ?? Grafaid.Schema.empty
|
147
|
-
const after = current.schema
|
148
|
-
|
149
|
-
if (!previous) {
|
150
|
-
// First version - create InitialChangeSet
|
151
|
-
return {
|
152
|
-
type: 'InitialChangeSet',
|
153
|
-
date: current.date,
|
154
|
-
after: { version: null, data: after },
|
155
|
-
}
|
156
|
-
} else {
|
157
|
-
// Subsequent versions - create IntermediateChangeSet
|
158
|
-
const changes = await GraphqlChange.calcChangeset({
|
159
|
-
before,
|
160
|
-
after,
|
161
|
-
})
|
162
|
-
|
163
|
-
return {
|
164
|
-
type: 'IntermediateChangeSet',
|
165
|
-
date: current.date,
|
166
|
-
before: { version: null, data: before },
|
167
|
-
after: { version: null, data: after },
|
168
|
-
changes,
|
169
|
-
}
|
170
|
-
}
|
171
|
-
}),
|
172
|
-
)
|
173
|
-
|
174
|
-
changesets.reverse()
|
175
|
-
|
176
|
-
debug(`computed versioned schema`)
|
177
|
-
return changesets as GraphqlChangeset.ChangelogLinked
|
178
|
-
}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
import { Grafaid } from '#lib/grafaid'
|
2
|
-
import { GraphqlChange } from '#lib/graphql-change'
|
3
|
-
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
4
|
-
import { Path } from '@wollybeard/kit'
|
5
|
-
|
6
|
-
const defaultPaths = {
|
7
|
-
schemaFile: `./schema.graphql`,
|
8
|
-
}
|
9
|
-
|
10
|
-
/**
|
11
|
-
* Configuration for loading schema from a single SDL file.
|
12
|
-
*/
|
13
|
-
export interface ConfigInput {
|
14
|
-
/**
|
15
|
-
* Path to the GraphQL SDL file.
|
16
|
-
*
|
17
|
-
* Can be absolute or relative to the project root.
|
18
|
-
*
|
19
|
-
* @default './schema.graphql'
|
20
|
-
*
|
21
|
-
* @example
|
22
|
-
* ```ts
|
23
|
-
* // Default location
|
24
|
-
* path: './schema.graphql'
|
25
|
-
*
|
26
|
-
* // Custom location
|
27
|
-
* path: './src/graphql/schema.sdl'
|
28
|
-
* ```
|
29
|
-
*/
|
30
|
-
path?: string
|
31
|
-
projectRoot?: string
|
32
|
-
}
|
33
|
-
|
34
|
-
export interface Config {
|
35
|
-
path: string
|
36
|
-
}
|
37
|
-
|
38
|
-
export const normalizeConfig = (configInput: ConfigInput): Config => {
|
39
|
-
const config: Config = {
|
40
|
-
path: Path.ensureAbsolute(configInput.path ?? defaultPaths.schemaFile, configInput.projectRoot),
|
41
|
-
}
|
42
|
-
|
43
|
-
return config
|
44
|
-
}
|
45
|
-
|
46
|
-
export const readOrThrow = async (
|
47
|
-
configInput: ConfigInput,
|
48
|
-
): Promise<null | GraphqlChangeset.ChangelogLinked> => {
|
49
|
-
const config = normalizeConfig(configInput)
|
50
|
-
|
51
|
-
const schemaFile = await Grafaid.Schema.read(config.path)
|
52
|
-
if (!schemaFile) return null
|
53
|
-
|
54
|
-
return await readSingleSchemaFile(config.path)
|
55
|
-
}
|
56
|
-
|
57
|
-
/**
|
58
|
-
* Create a single changeset from a schema file path.
|
59
|
-
* This is the core logic for handling single (unversioned) schemas.
|
60
|
-
*/
|
61
|
-
export const readSingleSchemaFile = async (filePath: string): Promise<GraphqlChangeset.ChangelogLinked> => {
|
62
|
-
const schemaFile = await Grafaid.Schema.read(filePath)
|
63
|
-
if (!schemaFile) throw new Error(`Failed to read schema file: ${filePath}`)
|
64
|
-
|
65
|
-
const date = new Date() // Generate date here for unversioned schema
|
66
|
-
const after = schemaFile.content
|
67
|
-
const before = Grafaid.Schema.empty
|
68
|
-
const changes = await GraphqlChange.calcChangeset({
|
69
|
-
before,
|
70
|
-
after,
|
71
|
-
})
|
72
|
-
|
73
|
-
const changeset: GraphqlChangeset.IntermediateChangeSetLinked = {
|
74
|
-
type: 'IntermediateChangeSet',
|
75
|
-
date,
|
76
|
-
after: { version: null, data: after },
|
77
|
-
before: { version: null, data: before },
|
78
|
-
changes,
|
79
|
-
}
|
80
|
-
|
81
|
-
const schema: GraphqlChangeset.ChangelogLinked = [changeset]
|
82
|
-
|
83
|
-
return schema
|
84
|
-
}
|