polen 0.11.0-next.14 → 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/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/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 +2 -3
- package/build/exports/polen.d.ts.map +1 -1
- package/build/exports/polen.js +2 -3
- package/build/exports/polen.js.map +1 -1
- 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/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 +13 -10
- 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 +84 -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/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 +2 -3
- 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/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/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 +14 -10
- 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 -12
- package/build/api/vite/plugins/core.d.ts.map +0 -1
- package/build/api/vite/plugins/core.js +0 -237
- 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 -274
- 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/src/vite-env.d.ts +0 -5
- /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
@@ -0,0 +1,37 @@
|
|
1
|
+
import { Level } from '#lib/change/level';
|
2
|
+
import { S } from '#lib/kit-temp/effect';
|
3
|
+
// ============================================================================
|
4
|
+
// Schema
|
5
|
+
// ============================================================================
|
6
|
+
export const Criticality = S.Struct({
|
7
|
+
level: Level,
|
8
|
+
reason: S.optional(S.String),
|
9
|
+
}).annotations({
|
10
|
+
identifier: 'Criticality',
|
11
|
+
title: 'Change Criticality',
|
12
|
+
description: 'The criticality assessment of a GraphQL schema change',
|
13
|
+
});
|
14
|
+
// ============================================================================
|
15
|
+
// Constructors
|
16
|
+
// ============================================================================
|
17
|
+
export const make = Criticality.make;
|
18
|
+
// ============================================================================
|
19
|
+
// Guards
|
20
|
+
// ============================================================================
|
21
|
+
export const is = S.is(Criticality);
|
22
|
+
// ============================================================================
|
23
|
+
// State Predicates
|
24
|
+
// ============================================================================
|
25
|
+
export const isBreaking = (criticality) => criticality.level === 'BREAKING';
|
26
|
+
export const isDangerous = (criticality) => criticality.level === 'DANGEROUS';
|
27
|
+
export const isSafe = (criticality) => criticality.level === 'NON_BREAKING';
|
28
|
+
// ============================================================================
|
29
|
+
// Codecs
|
30
|
+
// ============================================================================
|
31
|
+
export const decode = S.decode(Criticality);
|
32
|
+
export const encode = S.encode(Criticality);
|
33
|
+
// ============================================================================
|
34
|
+
// Equivalence
|
35
|
+
// ============================================================================
|
36
|
+
export const equivalence = S.equivalence(Criticality);
|
37
|
+
//# sourceMappingURL=criticality.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"criticality.js","sourceRoot":"","sources":["../../../src/lib/change/criticality.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAExC,+EAA+E;AAC/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
1
|
+
{"version":3,"file":"level.d.ts","sourceRoot":"","sources":["../../../src/lib/change/level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAExC,eAAO,MAAM,KAAK,sDAAqD,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"level.js","sourceRoot":"","sources":["../../../src/lib/change/level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAExC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE,cAAc,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/lib/date-only/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$.js","sourceRoot":"","sources":["../../../src/lib/date-only/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { S } from '#lib/kit-temp/effect';
|
2
|
+
import { Order } from 'effect';
|
3
|
+
export declare const DateOnly: S.brand<S.refine<string, typeof S.String>, "DateOnly">;
|
4
|
+
export type DateOnly = S.Schema.Type<typeof DateOnly>;
|
5
|
+
export declare const make: (a: string, options?: S.MakeOptions) => string & import("effect/Brand").Brand<"DateOnly">;
|
6
|
+
export declare const order: Order.Order<DateOnly>;
|
7
|
+
export declare const min: {
|
8
|
+
(that: string & import("effect/Brand").Brand<"DateOnly">): (self: string & import("effect/Brand").Brand<"DateOnly">) => string & import("effect/Brand").Brand<"DateOnly">;
|
9
|
+
(self: string & import("effect/Brand").Brand<"DateOnly">, that: string & import("effect/Brand").Brand<"DateOnly">): string & import("effect/Brand").Brand<"DateOnly">;
|
10
|
+
};
|
11
|
+
export declare const max: {
|
12
|
+
(that: string & import("effect/Brand").Brand<"DateOnly">): (self: string & import("effect/Brand").Brand<"DateOnly">) => string & import("effect/Brand").Brand<"DateOnly">;
|
13
|
+
(self: string & import("effect/Brand").Brand<"DateOnly">, that: string & import("effect/Brand").Brand<"DateOnly">): string & import("effect/Brand").Brand<"DateOnly">;
|
14
|
+
};
|
15
|
+
export declare const lessThan: {
|
16
|
+
(that: string & import("effect/Brand").Brand<"DateOnly">): (self: string & import("effect/Brand").Brand<"DateOnly">) => boolean;
|
17
|
+
(self: string & import("effect/Brand").Brand<"DateOnly">, that: string & import("effect/Brand").Brand<"DateOnly">): boolean;
|
18
|
+
};
|
19
|
+
export declare const greaterThan: {
|
20
|
+
(that: string & import("effect/Brand").Brand<"DateOnly">): (self: string & import("effect/Brand").Brand<"DateOnly">) => boolean;
|
21
|
+
(self: string & import("effect/Brand").Brand<"DateOnly">, that: string & import("effect/Brand").Brand<"DateOnly">): boolean;
|
22
|
+
};
|
23
|
+
export declare const equivalence: import("effect/Equivalence").Equivalence<string & import("effect/Brand").Brand<"DateOnly">>;
|
24
|
+
export declare const is: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions | number) => u is string & import("effect/Brand").Brand<"DateOnly">;
|
25
|
+
export declare const decode: (i: string, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<string & import("effect/Brand").Brand<"DateOnly">, import("effect/ParseResult").ParseError, never>;
|
26
|
+
export declare const decodeSync: (i: string, overrideOptions?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"DateOnly">;
|
27
|
+
export declare const encode: (a: string & import("effect/Brand").Brand<"DateOnly">, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<string, import("effect/ParseResult").ParseError, never>;
|
28
|
+
export declare const fromDate: (date: Date) => DateOnly;
|
29
|
+
export declare const toDate: (date: DateOnly) => Date;
|
30
|
+
/**
|
31
|
+
* Get the year from a date
|
32
|
+
*/
|
33
|
+
export declare const getYear: (date: DateOnly) => number;
|
34
|
+
/**
|
35
|
+
* Get the month from a date (1-12)
|
36
|
+
*/
|
37
|
+
export declare const getMonth: (date: DateOnly) => number;
|
38
|
+
/**
|
39
|
+
* Get the day from a date (1-31)
|
40
|
+
*/
|
41
|
+
export declare const getDay: (date: DateOnly) => number;
|
42
|
+
/**
|
43
|
+
* Calculate the number of days between two dates
|
44
|
+
* @param from - The starting date
|
45
|
+
* @param to - The ending date
|
46
|
+
* @returns Number of days between the dates (positive if to > from, negative otherwise)
|
47
|
+
*/
|
48
|
+
export declare const getDaysBetween: (from: DateOnly, to: DateOnly) => number;
|
49
|
+
//# sourceMappingURL=date-only.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"date-only.d.ts","sourceRoot":"","sources":["../../../src/lib/date-only/date-only.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAM9B,eAAO,MAAM,QAAQ,wDASpB,CAAA;AAMD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAA;AAMrD,eAAO,MAAM,IAAI,2FAAgB,CAAA;AAMjC,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAgD,CAAA;AAExF,eAAO,MAAM,GAAG;;;CAAmB,CAAA;AAEnC,eAAO,MAAM,GAAG;;;CAAmB,CAAA;AAEnC,eAAO,MAAM,QAAQ;;;CAAwB,CAAA;AAE7C,eAAO,MAAM,WAAW;;;CAA2B,CAAA;AAMnD,eAAO,MAAM,WAAW,6FAA0B,CAAA;AAMlD,eAAO,MAAM,EAAE,4IAAiB,CAAA;AAMhC,eAAO,MAAM,MAAM,6MAAqB,CAAA;AAExC,eAAO,MAAM,UAAU,6HAAyB,CAAA;AAEhD,eAAO,MAAM,MAAM,6MAAqB,CAAA;AAMxC,eAAO,MAAM,QAAQ,GAAI,MAAM,IAAI,KAAG,QAGrC,CAAA;AAMD,eAAO,MAAM,MAAM,GAAI,MAAM,QAAQ,KAAG,IAAyC,CAAA;AAMjF;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,MAAM,QAAQ,KAAG,MAA4C,CAAA;AAErF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAM,QAAQ,KAAG,MAA4C,CAAA;AAEtF;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,MAAM,QAAQ,KAAG,MAA6C,CAAA;AAErF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,QAAQ,EAAE,IAAI,QAAQ,KAAG,MAK7D,CAAA"}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { S } from '#lib/kit-temp/effect';
|
2
|
+
import { Order } from 'effect';
|
3
|
+
// ============================================================================
|
4
|
+
// Schema
|
5
|
+
// ============================================================================
|
6
|
+
export const DateOnly = S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}$/), S.annotations({
|
7
|
+
identifier: 'DateOnly',
|
8
|
+
title: 'Date Only',
|
9
|
+
description: 'A date-only value in YYYY-MM-DD format',
|
10
|
+
examples: ['2024-01-15', '2023-12-31'],
|
11
|
+
}), S.brand('DateOnly'));
|
12
|
+
// ============================================================================
|
13
|
+
// Constructors
|
14
|
+
// ============================================================================
|
15
|
+
export const make = DateOnly.make;
|
16
|
+
// ============================================================================
|
17
|
+
// Ordering
|
18
|
+
// ============================================================================
|
19
|
+
export const order = Order.mapInput(Order.string, (date) => date);
|
20
|
+
export const min = Order.min(order);
|
21
|
+
export const max = Order.max(order);
|
22
|
+
export const lessThan = Order.lessThan(order);
|
23
|
+
export const greaterThan = Order.greaterThan(order);
|
24
|
+
// ============================================================================
|
25
|
+
// Equivalence
|
26
|
+
// ============================================================================
|
27
|
+
export const equivalence = S.equivalence(DateOnly);
|
28
|
+
// ============================================================================
|
29
|
+
// Type Guard
|
30
|
+
// ============================================================================
|
31
|
+
export const is = S.is(DateOnly);
|
32
|
+
// ============================================================================
|
33
|
+
// Codec
|
34
|
+
// ============================================================================
|
35
|
+
export const decode = S.decode(DateOnly);
|
36
|
+
export const decodeSync = S.decodeSync(DateOnly);
|
37
|
+
export const encode = S.encode(DateOnly);
|
38
|
+
// ============================================================================
|
39
|
+
// Importers
|
40
|
+
// ============================================================================
|
41
|
+
export const fromDate = (date) => {
|
42
|
+
const dateString = date.toISOString().split('T')[0];
|
43
|
+
return make(dateString);
|
44
|
+
};
|
45
|
+
// ============================================================================
|
46
|
+
// Exporters
|
47
|
+
// ============================================================================
|
48
|
+
export const toDate = (date) => new Date(date + 'T00:00:00.000Z');
|
49
|
+
// ============================================================================
|
50
|
+
// Domain Logic
|
51
|
+
// ============================================================================
|
52
|
+
/**
|
53
|
+
* Get the year from a date
|
54
|
+
*/
|
55
|
+
export const getYear = (date) => parseInt(date.substring(0, 4), 10);
|
56
|
+
/**
|
57
|
+
* Get the month from a date (1-12)
|
58
|
+
*/
|
59
|
+
export const getMonth = (date) => parseInt(date.substring(5, 7), 10);
|
60
|
+
/**
|
61
|
+
* Get the day from a date (1-31)
|
62
|
+
*/
|
63
|
+
export const getDay = (date) => parseInt(date.substring(8, 10), 10);
|
64
|
+
/**
|
65
|
+
* Calculate the number of days between two dates
|
66
|
+
* @param from - The starting date
|
67
|
+
* @param to - The ending date
|
68
|
+
* @returns Number of days between the dates (positive if to > from, negative otherwise)
|
69
|
+
*/
|
70
|
+
export const getDaysBetween = (from, to) => {
|
71
|
+
const fromDate = toDate(from);
|
72
|
+
const toDate_ = toDate(to);
|
73
|
+
const diffMs = toDate_.getTime() - fromDate.getTime();
|
74
|
+
return Math.floor(diffMs / (1000 * 60 * 60 * 24));
|
75
|
+
};
|
76
|
+
//# sourceMappingURL=date-only.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"date-only.js","sourceRoot":"","sources":["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,CAAC,MAAM,MAAM,GAAG,CAAC,IAAc,EAAU,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAA;AAErF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAc,EAAE,EAAY,EAAU,EAAE;IACrE,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;IAC7B,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;IAC1B,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAA;IACrD,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAA;AACnD,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/lib/file-path/$$.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$$.js","sourceRoot":"","sources":["../../../src/lib/file-path/$$.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,2BAA2B;AAC3B,+EAA+E;AAE/E,cAAc,gBAAgB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/lib/file-path/$.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,eAAe,MAAM,SAAS,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$.js","sourceRoot":"","sources":["../../../src/lib/file-path/$.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAE/E,OAAO,KAAK,eAAe,MAAM,SAAS,CAAA"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { S } from '#lib/kit-temp/effect';
|
2
|
+
import { Brand } from 'effect';
|
3
|
+
export declare const SEPARATOR: "/";
|
4
|
+
/**
|
5
|
+
* File path segment
|
6
|
+
*/
|
7
|
+
export type FilePathSegment = string & Brand.Brand<'FilePathSegment'>;
|
8
|
+
export declare const FilePathSegment: S.brand<typeof S.String, "FilePathSegment">;
|
9
|
+
export declare const make: (path: string) => FilePathSegment;
|
10
|
+
export declare const is: (value: unknown) => value is FilePathSegment;
|
11
|
+
export declare const decode: (i: string, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<string & Brand.Brand<"FilePathSegment">, import("effect/ParseResult").ParseError, never>;
|
12
|
+
export declare const decodeSync: (i: string, overrideOptions?: import("effect/SchemaAST").ParseOptions) => string & Brand.Brand<"FilePathSegment">;
|
13
|
+
export declare const encode: (a: string & Brand.Brand<"FilePathSegment">, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<string, import("effect/ParseResult").ParseError, never>;
|
14
|
+
/**
|
15
|
+
* Add extension to a file path
|
16
|
+
*/
|
17
|
+
export declare const ensureExtension: (path: FilePathSegment, extension: string) => FilePathSegment;
|
18
|
+
/**
|
19
|
+
* Remove extension from a file path
|
20
|
+
*/
|
21
|
+
export declare const withoutExtension: (path: FilePathSegment) => FilePathSegment;
|
22
|
+
/**
|
23
|
+
* Get the extension from a file path
|
24
|
+
*/
|
25
|
+
export declare const getExtension: (path: FilePathSegment) => string | undefined;
|
26
|
+
/**
|
27
|
+
* Get the file name from a path
|
28
|
+
*/
|
29
|
+
export declare const getFileName: (path: FilePathSegment) => string;
|
30
|
+
/**
|
31
|
+
* Get the directory from a path
|
32
|
+
*/
|
33
|
+
export declare const getDirectory: (path: FilePathSegment) => FilePathSegment;
|
34
|
+
/**
|
35
|
+
* Join multiple path segments together
|
36
|
+
* Uses node:path internally for proper path handling
|
37
|
+
*/
|
38
|
+
export declare const join: (...segments: ReadonlyArray<FilePathSegment>) => FilePathSegment;
|
39
|
+
/**
|
40
|
+
* Upsert extension - adds extension if missing, replaces if present
|
41
|
+
* @param path - The file path
|
42
|
+
* @param extension - The extension to upsert (with or without leading dot)
|
43
|
+
*/
|
44
|
+
export declare const upsertExtension: (path: FilePathSegment, extension: string) => FilePathSegment;
|
45
|
+
//# sourceMappingURL=file-path.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"file-path.d.ts","sourceRoot":"","sources":["../../../src/lib/file-path/file-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAO9B,eAAO,MAAM,SAAS,EAAG,GAAY,CAAA;AAMrC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACrE,eAAO,MAAM,eAAe,6CAM3B,CAAA;AAMD,eAAO,MAAM,IAAI,GAAI,MAAM,MAAM,KAAG,eAA0C,CAAA;AAM9E,eAAO,MAAM,EAAE,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,eAA4C,CAAA;AAMzF,eAAO,MAAM,MAAM,mMAA4B,CAAA;AAC/C,eAAO,MAAM,UAAU,mHAAgC,CAAA;AACvD,eAAO,MAAM,MAAM,mMAA4B,CAAA;AAM/C;;GAEG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,eAAe,EACrB,WAAW,MAAM,KAChB,eAGF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,eAAe,KAAG,eAOxD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,eAAe,KAAG,MAAM,GAAG,SAI7D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,eAAe,KAAG,MAEnD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,eAAe,KAAG,eAIpD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,GAAI,GAAG,UAAU,aAAa,CAAC,eAAe,CAAC,KAAG,eAUlE,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,eAAe,EACrB,WAAW,MAAM,KAChB,eAWF,CAAA"}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
import { S } from '#lib/kit-temp/effect';
|
2
|
+
import { Brand } from 'effect';
|
3
|
+
import * as Path from 'node:path';
|
4
|
+
// ============================================================================
|
5
|
+
// Constants
|
6
|
+
// ============================================================================
|
7
|
+
export const SEPARATOR = '/';
|
8
|
+
export const FilePathSegment = S.String.pipe(S.brand('FilePathSegment'), S.annotations({
|
9
|
+
identifier: 'FilePathSegment',
|
10
|
+
description: 'A segment of a file path',
|
11
|
+
}));
|
12
|
+
// ============================================================================
|
13
|
+
// Constructors
|
14
|
+
// ============================================================================
|
15
|
+
export const make = (path) => path;
|
16
|
+
// ============================================================================
|
17
|
+
// Type Guard
|
18
|
+
// ============================================================================
|
19
|
+
export const is = (value) => typeof value === 'string';
|
20
|
+
// ============================================================================
|
21
|
+
// Codec
|
22
|
+
// ============================================================================
|
23
|
+
export const decode = S.decode(FilePathSegment);
|
24
|
+
export const decodeSync = S.decodeSync(FilePathSegment);
|
25
|
+
export const encode = S.encode(FilePathSegment);
|
26
|
+
// ============================================================================
|
27
|
+
// Domain Logic
|
28
|
+
// ============================================================================
|
29
|
+
/**
|
30
|
+
* Add extension to a file path
|
31
|
+
*/
|
32
|
+
export const ensureExtension = (path, extension) => {
|
33
|
+
const ext = extension.startsWith('.') ? extension : `.${extension}`;
|
34
|
+
return `${path}${ext}`;
|
35
|
+
};
|
36
|
+
/**
|
37
|
+
* Remove extension from a file path
|
38
|
+
*/
|
39
|
+
export const withoutExtension = (path) => {
|
40
|
+
const dir = Path.dirname(path);
|
41
|
+
const base = Path.basename(path, Path.extname(path));
|
42
|
+
return join(dir, base);
|
43
|
+
};
|
44
|
+
/**
|
45
|
+
* Get the extension from a file path
|
46
|
+
*/
|
47
|
+
export const getExtension = (path) => {
|
48
|
+
const ext = Path.extname(path);
|
49
|
+
// Remove the leading dot if present
|
50
|
+
return ext ? ext.slice(1) : undefined;
|
51
|
+
};
|
52
|
+
/**
|
53
|
+
* Get the file name from a path
|
54
|
+
*/
|
55
|
+
export const getFileName = (path) => {
|
56
|
+
return Path.basename(path);
|
57
|
+
};
|
58
|
+
/**
|
59
|
+
* Get the directory from a path
|
60
|
+
*/
|
61
|
+
export const getDirectory = (path) => {
|
62
|
+
const dir = Path.dirname(path);
|
63
|
+
// Normalize to forward slashes
|
64
|
+
return dir.replace(/\\/g, SEPARATOR);
|
65
|
+
};
|
66
|
+
/**
|
67
|
+
* Join multiple path segments together
|
68
|
+
* Uses node:path internally for proper path handling
|
69
|
+
*/
|
70
|
+
export const join = (...segments) => {
|
71
|
+
if (segments.length === 0) {
|
72
|
+
return '';
|
73
|
+
}
|
74
|
+
// Use Path.join for consistent path handling
|
75
|
+
const joined = Path.join(...segments);
|
76
|
+
// Normalize to forward slashes
|
77
|
+
return joined.replace(/\\/g, SEPARATOR);
|
78
|
+
};
|
79
|
+
/**
|
80
|
+
* Upsert extension - adds extension if missing, replaces if present
|
81
|
+
* @param path - The file path
|
82
|
+
* @param extension - The extension to upsert (with or without leading dot)
|
83
|
+
*/
|
84
|
+
export const upsertExtension = (path, extension) => {
|
85
|
+
const ext = extension.startsWith('.') ? extension : `.${extension}`;
|
86
|
+
const currentExt = getExtension(path);
|
87
|
+
if (currentExt) {
|
88
|
+
// Replace existing extension
|
89
|
+
return ensureExtension(withoutExtension(path), extension);
|
90
|
+
}
|
91
|
+
else {
|
92
|
+
// Add extension
|
93
|
+
return ensureExtension(path, extension);
|
94
|
+
}
|
95
|
+
};
|
96
|
+
//# sourceMappingURL=file-path.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"file-path.js","sourceRoot":"","sources":["../../../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B,CAAA;CACF;AAUD,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,OAAO,EAAE,oBAAoB,CAAA;CAC9B;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAA;CACd;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,KAAK,KAAG,KAAK,IAAI,aAEvD,CAAA;AAcD,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,OAAO,EAAE,iBAAiB,CAAA;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAA;CACd;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,KAAK,KAAG,KAAK,IAAI,aAEvD,CAAA;AAcD;;;;EAIE;AACF,eAAO,MAAM,gBAAgB,GAAI,OAAO,KAAK,KAAG,KAAK,IAAI,aAIxD,CAAA;AASD,eAAO,MAAM,oBAAoB,GAAI,OAAO,KAAK,KAAG,OAEnD,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,OAAO,KAAK,EAAE,uBAAuB,WAAW,EAAE,KAAG,OAQjF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,KAAK,EAAE,qBAAqB,WAAW,EAAE,KAAG,KAUrF,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,OAAO,KAAK,WAEjD,CAAA"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Path } from '@wollybeard/kit';
|
2
|
+
import { Effect } from 'effect';
|
2
3
|
import { type Diagnostic } from './linter.js';
|
3
4
|
import { type Route, type RouteLogical } from './route.js';
|
4
5
|
export interface ScanResult {
|
@@ -8,7 +9,7 @@ export interface ScanResult {
|
|
8
9
|
export declare const scan: (parameters: {
|
9
10
|
dir: string;
|
10
11
|
glob?: string;
|
11
|
-
}) =>
|
12
|
+
}) => Effect.Effect<ScanResult, Error, never>;
|
12
13
|
export declare const filePathToRoute: (filePathExpression: string, rootDir: string) => Route;
|
13
14
|
export declare const filePathToRouteLogical: (filePath: Path.Parsed) => RouteLogical;
|
14
15
|
//# sourceMappingURL=scan.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../../../src/lib/file-router/scan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAO,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,aAAa,CAAA;AACnD,OAAO,EAAE,KAAK,KAAK,EAAkB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AA2B1E,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,WAAW,EAAE,UAAU,EAAE,CAAA;CAC1B;AAUD,eAAO,MAAM,IAAI,
|
1
|
+
{"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../../../src/lib/file-router/scan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAO,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,aAAa,CAAA;AACnD,OAAO,EAAE,KAAK,KAAK,EAAkB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AA2B1E,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,WAAW,EAAE,UAAU,EAAE,CAAA;CAC1B;AAUD,eAAO,MAAM,IAAI,GAAI,YAAY;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,KAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,CAqBtC,CAAA;AAEJ,eAAO,MAAM,eAAe,GAAI,oBAAoB,MAAM,EAAE,SAAS,MAAM,KAAG,KAqB7E,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,UAAU,IAAI,CAAC,MAAM,KAAG,YA2B9D,CAAA"}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import
|
1
|
+
import * as TinyGlobbyModule from '#dep/tiny-globby/index';
|
2
2
|
import { Path, Str } from '@wollybeard/kit';
|
3
|
+
import { Effect } from 'effect';
|
3
4
|
import { lint } from './linter.js';
|
4
5
|
import {} from './route.js';
|
5
6
|
//
|
@@ -24,20 +25,23 @@ const conventions = {
|
|
24
25
|
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ • Scan
|
25
26
|
//
|
26
27
|
//
|
27
|
-
export const scan =
|
28
|
+
export const scan = (parameters) => Effect.gen(function* () {
|
28
29
|
const { dir, glob = `**/*.{md,mdx}` } = parameters;
|
29
30
|
// Get all files directly
|
30
|
-
const filePaths =
|
31
|
+
const filePaths = yield* TinyGlobbyModule.EffectGlobby.glob(glob, {
|
31
32
|
absolute: true,
|
32
33
|
cwd: dir,
|
33
34
|
onlyFiles: true,
|
34
35
|
});
|
35
36
|
// Convert to routes
|
36
|
-
const routes = filePaths.map(filePath => filePathToRoute(filePath, dir));
|
37
|
+
const routes = filePaths.map((filePath) => filePathToRoute(filePath, dir));
|
37
38
|
// Apply linting
|
38
39
|
const lintResult = lint(routes);
|
39
|
-
return
|
40
|
-
|
40
|
+
return {
|
41
|
+
routes: lintResult.routes,
|
42
|
+
diagnostics: lintResult.diagnostics,
|
43
|
+
};
|
44
|
+
});
|
41
45
|
export const filePathToRoute = (filePathExpression, rootDir) => {
|
42
46
|
const file = {
|
43
47
|
path: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../src/lib/file-router/scan.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../src/lib/file-router/scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,IAAI,EAAE,GAAG,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AI,IAAI,OAAO,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,sCAAsC;IACtC,MAAM,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA;IAChF,MAAM,KAAK,GAAG,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAC9E,MAAM,iBAAiB,GAAG,WAAW,EAAE,MAAM,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAA;IAEnE,IAAI,iBAAiB,KAAK,WAAW,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QACjD,MAAM,IAAI,GAAG,OAAO,CAAA;QACpB,OAAO;YACL,IAAI;YACJ,KAAK;SACN,CAAA;IACH,CAAC;IAED,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAC9C,OAAO;QACL,IAAI;QACJ,KAAK;KACN,CAAA;AACH,CAAC,CAAA"}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
1
|
+
import { Effect } from 'effect';
|
2
2
|
import { type DocumentNode } from 'graphql';
|
3
|
+
export declare const parse: (source: string) => Effect.Effect<DocumentNode, Error>;
|
3
4
|
export { type DocumentNode as Document } from 'graphql';
|
4
5
|
export declare const empty: DocumentNode;
|
5
6
|
//# sourceMappingURL=ast.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/ast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/ast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,KAAK,YAAY,EAA+B,MAAM,SAAS,CAAA;AAGxE,eAAO,MAAM,KAAK,GAAI,QAAQ,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAIpE,CAAA;AAEJ,OAAO,EAAE,KAAK,YAAY,IAAI,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvD,eAAO,MAAM,KAAK,EAAE,YAAuD,CAAA"}
|
@@ -1,5 +1,10 @@
|
|
1
|
-
|
2
|
-
import { Kind } from 'graphql';
|
1
|
+
import { Effect } from 'effect';
|
2
|
+
import { Kind, parse as graphqlParse } from 'graphql';
|
3
|
+
// Effect-based version of parse
|
4
|
+
export const parse = (source) => Effect.try({
|
5
|
+
try: () => graphqlParse(source),
|
6
|
+
catch: (error) => new Error(`Failed to parse GraphQL: ${error}`),
|
7
|
+
});
|
3
8
|
export {} from 'graphql';
|
4
9
|
export const empty = { definitions: [], kind: Kind.DOCUMENT };
|
5
10
|
//# sourceMappingURL=ast.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/ast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/ast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAqB,IAAI,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAExE,gCAAgC;AAChC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,MAAc,EAAsC,EAAE,CAC1E,MAAM,CAAC,GAAG,CAAC;IACT,GAAG,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,4BAA4B,KAAK,EAAE,CAAC;CACjE,CAAC,CAAA;AAEJ,OAAO,EAAiC,MAAM,SAAS,CAAA;AAEvD,MAAM,CAAC,MAAM,KAAK,GAAiB,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAA"}
|
@@ -1,4 +1,6 @@
|
|
1
|
+
import { FileSystem } from '@effect/platform/FileSystem';
|
1
2
|
import { Fs } from '@wollybeard/kit';
|
3
|
+
import { Effect } from 'effect';
|
2
4
|
import { type GraphQLSchema } from 'graphql';
|
3
|
-
export declare const read: (sdlFilePath: string) =>
|
5
|
+
export declare const read: (sdlFilePath: string) => Effect.Effect<null | Fs.File<GraphQLSchema>, Error, FileSystem>;
|
4
6
|
//# sourceMappingURL=read.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAA;AAI5C,eAAO,MAAM,IAAI,GAAI,aAAa,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,UAAU,CAqBrG,CAAA"}
|
@@ -1,14 +1,24 @@
|
|
1
|
+
import { FileSystem } from '@effect/platform/FileSystem';
|
1
2
|
import { Fs } from '@wollybeard/kit';
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
import { Effect } from 'effect';
|
4
|
+
import {} from 'graphql';
|
5
|
+
import * as AST from './ast.js';
|
6
|
+
import { fromAST } from './schema.js';
|
7
|
+
export const read = (sdlFilePath) => Effect.gen(function* () {
|
8
|
+
const fs = yield* FileSystem;
|
9
|
+
// Check if file exists
|
10
|
+
const exists = yield* Effect.either(fs.exists(sdlFilePath));
|
11
|
+
if (exists._tag === 'Left' || !exists.right) {
|
6
12
|
return null;
|
7
|
-
|
8
|
-
|
13
|
+
}
|
14
|
+
// Read file content
|
15
|
+
const content = yield* fs.readFileString(sdlFilePath);
|
16
|
+
// Parse and build schema
|
17
|
+
const node = yield* AST.parse(content);
|
18
|
+
const schema = yield* fromAST(node);
|
9
19
|
return {
|
10
20
|
path: sdlFilePath,
|
11
21
|
content: schema,
|
12
22
|
};
|
13
|
-
};
|
23
|
+
});
|
14
24
|
//# sourceMappingURL=read.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../src/lib/grafaid/schema/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAsB,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,WAAmB,EAAmE,EAAE,CAC3G,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAA;IAE5B,uBAAuB;IACvB,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAA;IAC3D,IAAI,MAAM,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAC5C,OAAO,IAAI,CAAA;IACb,CAAC;IAED,oBAAoB;IACpB,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;IAErD,yBAAyB;IACzB,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IACtC,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAEnC,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,MAAM;KAChB,CAAA;AACH,CAAC,CAAC,CAAA"}
|
@@ -1,5 +1,7 @@
|
|
1
|
+
import { Effect } from 'effect';
|
1
2
|
import { type GraphQLSchema } from 'graphql';
|
2
|
-
export {
|
3
|
+
export { buildClientSchema as fromIntrospectionQuery, GraphQLSchema as Schema, introspectionFromSchema as toIntrospectionQuery, printSchema as print, } from 'graphql';
|
4
|
+
export declare const fromAST: (ast: AST.Document) => Effect.Effect<GraphQLSchema, Error>;
|
3
5
|
export * as AST from './ast.js';
|
4
6
|
export * as Type from './type.js';
|
5
7
|
export * from './type-class-name.js';
|
@@ -14,5 +16,6 @@ export * as Args from './args.js';
|
|
14
16
|
export * as TypesLike from './types-like.js';
|
15
17
|
export * as NodesLike from './nodes-like.js';
|
16
18
|
export * from './read.js';
|
19
|
+
import * as AST from './ast.js';
|
17
20
|
export declare const empty: GraphQLSchema;
|
18
21
|
//# sourceMappingURL=schema.d.ts.map
|