polen 0.11.0-next.12 → 0.11.0-next.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/api/api.d.ts +1 -0
- package/build/api/api.d.ts.map +1 -1
- package/build/api/api.js +1 -0
- package/build/api/api.js.map +1 -1
- package/build/api/cache/$$.d.ts +2 -0
- package/build/api/cache/$$.d.ts.map +1 -0
- package/build/api/cache/$$.js +2 -0
- package/build/api/cache/$$.js.map +1 -0
- package/build/api/cache/$.d.ts +2 -0
- package/build/api/cache/$.d.ts.map +1 -0
- package/build/api/cache/$.js +2 -0
- package/build/api/cache/$.js.map +1 -0
- package/build/api/cache/cache.d.ts +40 -0
- package/build/api/cache/cache.d.ts.map +1 -0
- package/build/api/cache/cache.js +158 -0
- package/build/api/cache/cache.js.map +1 -0
- package/build/api/content/navbar.d.ts +1 -0
- package/build/api/content/navbar.d.ts.map +1 -1
- package/build/api/content/navbar.js +1 -0
- package/build/api/content/navbar.js.map +1 -1
- package/build/api/content/page.d.ts +1 -1
- package/build/api/content/page.d.ts.map +1 -1
- package/build/api/content/scan.d.ts +1 -1
- package/build/api/content/scan.d.ts.map +1 -1
- package/build/api/content/scan.js +1 -1
- package/build/api/content/scan.js.map +1 -1
- package/build/api/content/sidebar.js +1 -1
- package/build/api/content/sidebar.js.map +1 -1
- package/build/api/hooks/helpers.d.ts +5 -0
- package/build/api/hooks/helpers.d.ts.map +1 -0
- package/build/api/hooks/helpers.js +4 -0
- package/build/api/hooks/helpers.js.map +1 -0
- package/build/api/hooks/index.d.ts +3 -0
- package/build/api/hooks/index.d.ts.map +1 -0
- package/build/api/hooks/index.js +3 -0
- package/build/api/hooks/index.js.map +1 -0
- package/build/api/hooks/types.d.ts +11 -0
- package/build/api/hooks/types.d.ts.map +1 -0
- package/build/api/hooks/types.js +2 -0
- package/build/api/hooks/types.js.map +1 -0
- package/build/api/iso/schema/$$.d.ts +0 -1
- package/build/api/iso/schema/$$.d.ts.map +1 -1
- package/build/api/iso/schema/routing.js +1 -1
- package/build/api/iso/schema/routing.js.map +1 -1
- package/build/api/iso/schema/validation.js +1 -1
- package/build/api/iso/schema/validation.js.map +1 -1
- package/build/api/schema/data-sources/introspection/introspection.d.ts +4 -3
- package/build/api/schema/data-sources/introspection/introspection.d.ts.map +1 -1
- package/build/api/schema/data-sources/introspection/introspection.js +6 -5
- package/build/api/schema/data-sources/introspection/introspection.js.map +1 -1
- package/build/api/schema/data-sources/memory/memory.d.ts +2 -2
- package/build/api/schema/data-sources/memory/memory.d.ts.map +1 -1
- package/build/api/schema/data-sources/memory/memory.js +24 -12
- package/build/api/schema/data-sources/memory/memory.js.map +1 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts +2 -2
- package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts.map +1 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.js +24 -12
- package/build/api/schema/data-sources/schema-directory/schema-directory.js.map +1 -1
- package/build/api/schema/data-sources/schema-file/schema-file.d.ts +3 -3
- package/build/api/schema/data-sources/schema-file/schema-file.d.ts.map +1 -1
- package/build/api/schema/data-sources/schema-file/schema-file.js +5 -4
- package/build/api/schema/data-sources/schema-file/schema-file.js.map +1 -1
- package/build/api/schema/read.d.ts +4 -4
- package/build/api/schema/read.d.ts.map +1 -1
- package/build/api/schema/read.js +1 -1
- package/build/api/schema/read.js.map +1 -1
- package/build/api/schema/schema.d.ts +0 -10
- package/build/api/schema/schema.d.ts.map +1 -1
- package/build/api/schema/schema.js.map +1 -1
- package/build/api/schema-augmentation/augmentations/description.d.ts +1 -1
- package/build/api/schema-augmentation/augmentations/description.d.ts.map +1 -1
- package/build/api/schema-augmentation/schema-augmentation.d.ts +1 -1
- package/build/api/schema-augmentation/schema-augmentation.d.ts.map +1 -1
- package/build/api/schema-augmentation/target.d.ts +1 -1
- package/build/api/schema-augmentation/target.d.ts.map +1 -1
- package/build/api/schema-augmentation/target.js +1 -1
- package/build/api/schema-augmentation/target.js.map +1 -1
- package/build/api/schema-source/schema-source.d.ts +9 -5
- package/build/api/schema-source/schema-source.d.ts.map +1 -1
- package/build/api/schema-source/schema-source.js +37 -24
- package/build/api/schema-source/schema-source.js.map +1 -1
- package/build/api/vite/plugins/build.js +1 -1
- package/build/api/vite/plugins/build.js.map +1 -1
- package/build/api/vite/plugins/core.d.ts +2 -1
- package/build/api/vite/plugins/core.d.ts.map +1 -1
- package/build/api/vite/plugins/core.js +47 -9
- package/build/api/vite/plugins/core.js.map +1 -1
- package/build/api/vite/plugins/pages.js +1 -1
- package/build/api/vite/plugins/pages.js.map +1 -1
- package/build/api/vite/plugins/schema-assets.d.ts +1 -1
- package/build/api/vite/plugins/schema-assets.d.ts.map +1 -1
- package/build/api/vite/plugins/schema-assets.js +14 -5
- package/build/api/vite/plugins/schema-assets.js.map +1 -1
- package/build/api/vite/vi.d.ts +1 -1
- package/build/api/vite/vi.d.ts.map +1 -1
- package/build/api/vite/vi.js +1 -1
- package/build/api/vite/vi.js.map +1 -1
- package/build/cli/commands/cache/$default.d.ts +3 -0
- package/build/cli/commands/cache/$default.d.ts.map +1 -0
- package/build/cli/commands/cache/$default.js +10 -0
- package/build/cli/commands/cache/$default.js.map +1 -0
- package/build/cli/commands/cache/delete.d.ts +2 -0
- package/build/cli/commands/cache/delete.d.ts.map +1 -0
- package/build/cli/commands/cache/delete.js +22 -0
- package/build/cli/commands/cache/delete.js.map +1 -0
- package/build/cli/commands/cache/show.d.ts +2 -0
- package/build/cli/commands/cache/show.d.ts.map +1 -0
- package/build/cli/commands/cache/show.js +86 -0
- package/build/cli/commands/cache/show.js.map +1 -0
- package/build/cli/commands/cache.d.ts +3 -0
- package/build/cli/commands/cache.d.ts.map +1 -0
- package/build/cli/commands/cache.js +7 -0
- package/build/cli/commands/cache.js.map +1 -0
- package/build/cli/commands/config.js +2 -0
- package/build/cli/commands/config.js.map +1 -1
- package/build/cli/commands/open.js +2 -2
- package/build/cli/commands/open.js.map +1 -1
- package/build/cli/commands/static.js +2 -0
- package/build/cli/commands/static.js.map +1 -1
- package/build/exports/polen.d.ts +1 -0
- package/build/exports/polen.d.ts.map +1 -1
- package/build/exports/polen.js +1 -0
- package/build/exports/polen.js.map +1 -1
- package/build/exports/radix-ui/react-icons.d.ts +2 -0
- package/build/exports/radix-ui/react-icons.d.ts.map +1 -0
- package/build/exports/radix-ui/react-icons.js +4 -0
- package/build/exports/radix-ui/react-icons.js.map +1 -0
- package/build/exports/radix-ui/themes.d.ts +2 -0
- package/build/exports/radix-ui/themes.d.ts.map +1 -0
- package/build/exports/radix-ui/themes.js +4 -0
- package/build/exports/radix-ui/themes.js.map +1 -0
- package/build/lib/apple-touch-icon/{index.js → $.d.ts} +1 -1
- package/build/lib/apple-touch-icon/$.d.ts.map +1 -0
- package/build/lib/apple-touch-icon/{index.d.ts → $.js} +1 -1
- package/build/lib/apple-touch-icon/$.js.map +1 -0
- package/build/lib/errors/{errors.js → $$.d.ts} +1 -1
- package/build/lib/errors/$$.d.ts.map +1 -0
- package/build/lib/errors/{errors.d.ts → $$.js} +1 -1
- package/build/lib/errors/$$.js.map +1 -0
- package/build/lib/errors/$.d.ts +2 -0
- package/build/lib/errors/$.d.ts.map +1 -0
- package/build/lib/errors/$.js +2 -0
- package/build/lib/errors/$.js.map +1 -0
- package/build/lib/extensible-data/{index.js → $.d.ts} +1 -1
- package/build/lib/extensible-data/$.d.ts.map +1 -0
- package/build/lib/extensible-data/{index.d.ts → $.js} +1 -1
- package/build/lib/extensible-data/$.js.map +1 -0
- package/build/lib/favicon/{index.js → $.d.ts} +1 -1
- package/build/lib/favicon/$.d.ts.map +1 -0
- package/build/lib/favicon/{index.d.ts → $.js} +1 -1
- package/build/lib/favicon/$.js.map +1 -0
- package/build/lib/file-router/{file-router.js → $$.d.ts} +1 -1
- package/build/lib/file-router/$$.d.ts.map +1 -0
- package/build/lib/file-router/{file-router.d.ts → $$.js} +1 -1
- package/build/lib/file-router/$$.js.map +1 -0
- package/build/lib/file-router/$.d.ts +2 -0
- package/build/lib/file-router/$.d.ts.map +1 -0
- package/build/lib/file-router/$.js +2 -0
- package/build/lib/file-router/$.js.map +1 -0
- package/build/lib/grafaid/{grafaid.js → $$.d.ts} +1 -1
- package/build/lib/grafaid/$$.d.ts.map +1 -0
- package/build/lib/grafaid/{grafaid.d.ts → $$.js} +1 -1
- package/build/lib/grafaid/$$.js.map +1 -0
- package/build/lib/grafaid/$.d.ts +2 -0
- package/build/lib/grafaid/$.d.ts.map +1 -0
- package/build/lib/grafaid/$.js +2 -0
- package/build/lib/grafaid/$.js.map +1 -0
- package/build/lib/grafaid/schema/type.d.ts.map +1 -1
- package/build/lib/grafaid/schema/type.js.map +1 -1
- package/build/lib/grafaid-old/{index.js → $.d.ts} +1 -1
- package/build/lib/grafaid-old/$.d.ts.map +1 -0
- package/build/lib/grafaid-old/{index.d.ts → $.js} +1 -1
- package/build/lib/grafaid-old/$.js.map +1 -0
- package/build/lib/graphql-change/{graphql-change.d.ts → $$.d.ts} +2 -2
- package/build/lib/graphql-change/$$.d.ts.map +1 -0
- package/build/lib/graphql-change/{graphql-change.js → $$.js} +1 -1
- package/build/lib/graphql-change/$$.js.map +1 -0
- package/build/lib/graphql-change/$.d.ts +2 -0
- package/build/lib/graphql-change/$.d.ts.map +1 -0
- package/build/lib/graphql-change/$.js +2 -0
- package/build/lib/graphql-change/$.js.map +1 -0
- package/build/lib/graphql-change/change-groups.d.ts +5 -1
- package/build/lib/graphql-change/change-groups.d.ts.map +1 -1
- package/build/lib/graphql-change/change-groups.js.map +1 -1
- package/build/lib/graphql-changeset/$$.d.ts +4 -0
- package/build/lib/graphql-changeset/$$.d.ts.map +1 -0
- package/build/lib/graphql-changeset/$$.js +4 -0
- package/build/lib/graphql-changeset/$$.js.map +1 -0
- package/build/lib/graphql-changeset/$.d.ts +2 -0
- package/build/lib/graphql-changeset/$.d.ts.map +1 -0
- package/build/lib/graphql-changeset/$.js +2 -0
- package/build/lib/graphql-changeset/$.js.map +1 -0
- package/build/lib/graphql-changeset/changelog.d.ts +4 -0
- package/build/lib/graphql-changeset/changelog.d.ts.map +1 -0
- package/build/lib/graphql-changeset/changelog.js +2 -0
- package/build/lib/graphql-changeset/changelog.js.map +1 -0
- package/build/lib/graphql-changeset/changeset.d.ts +66 -0
- package/build/lib/graphql-changeset/changeset.d.ts.map +1 -0
- package/build/lib/graphql-changeset/changeset.js +139 -0
- package/build/lib/graphql-changeset/changeset.js.map +1 -0
- package/build/lib/graphql-changeset/versioned-schema.d.ts +31 -0
- package/build/lib/graphql-changeset/versioned-schema.d.ts.map +1 -0
- package/build/lib/graphql-changeset/versioned-schema.js +14 -0
- package/build/lib/graphql-changeset/versioned-schema.js.map +1 -0
- package/build/lib/graphql-path/$$.d.ts +42 -0
- package/build/lib/graphql-path/$$.d.ts.map +1 -0
- package/build/lib/graphql-path/$$.js +42 -0
- package/build/lib/graphql-path/$$.js.map +1 -0
- package/build/lib/graphql-path/$.d.ts +5 -0
- package/build/lib/graphql-path/$.d.ts.map +1 -0
- package/build/lib/graphql-path/$.js +5 -0
- package/build/lib/graphql-path/$.js.map +1 -0
- package/build/lib/graphql-path/constructors.d.ts +57 -0
- package/build/lib/graphql-path/constructors.d.ts.map +1 -0
- package/build/lib/graphql-path/constructors.js +73 -0
- package/build/lib/graphql-path/constructors.js.map +1 -0
- package/build/lib/graphql-path/definition.d.ts +152 -0
- package/build/lib/graphql-path/definition.d.ts.map +1 -0
- package/build/lib/graphql-path/definition.js +192 -0
- package/build/lib/graphql-path/definition.js.map +1 -0
- package/build/lib/graphql-path/query.d.ts +75 -0
- package/build/lib/graphql-path/query.d.ts.map +1 -0
- package/build/lib/graphql-path/query.js +111 -0
- package/build/lib/graphql-path/query.js.map +1 -0
- package/build/lib/graphql-path/types.d.ts +50 -0
- package/build/lib/graphql-path/types.d.ts.map +1 -0
- package/build/lib/graphql-path/types.js +5 -0
- package/build/lib/graphql-path/types.js.map +1 -0
- package/build/lib/graphql-schema-loader/{index.js → $.d.ts} +1 -1
- package/build/lib/graphql-schema-loader/$.d.ts.map +1 -0
- package/build/lib/graphql-schema-loader/{index.d.ts → $.js} +1 -1
- package/build/lib/graphql-schema-loader/$.js.map +1 -0
- package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts +1 -1
- package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts.map +1 -1
- package/build/lib/graphql-schema-loader/graphql-schema-loader.js +1 -1
- package/build/lib/graphql-schema-loader/graphql-schema-loader.js.map +1 -1
- package/build/lib/hono-aid/{index.js → $.d.ts} +1 -1
- package/build/lib/hono-aid/$.d.ts.map +1 -0
- package/build/lib/hono-aid/{index.d.ts → $.js} +1 -1
- package/build/lib/hono-aid/$.js.map +1 -0
- package/build/lib/html-utils/$$.d.ts +3 -0
- package/build/lib/html-utils/$$.d.ts.map +1 -0
- package/build/lib/html-utils/$$.js +3 -0
- package/build/lib/html-utils/$$.js.map +1 -0
- package/build/lib/html-utils/$.d.ts +2 -0
- package/build/lib/html-utils/$.d.ts.map +1 -0
- package/build/lib/html-utils/$.js +2 -0
- package/build/lib/html-utils/$.js.map +1 -0
- package/build/lib/kit-temp.d.ts +1 -0
- package/build/lib/kit-temp.d.ts.map +1 -1
- package/build/lib/react-router-aid/{react-router-aid.d.ts → $$.d.ts} +1 -1
- package/build/lib/react-router-aid/$$.d.ts.map +1 -0
- package/build/lib/react-router-aid/{react-router-aid.js → $$.js} +1 -1
- package/build/lib/react-router-aid/$$.js.map +1 -0
- package/build/lib/react-router-aid/$.d.ts +2 -0
- package/build/lib/react-router-aid/$.d.ts.map +1 -0
- package/build/lib/react-router-aid/$.js +2 -0
- package/build/lib/react-router-aid/$.js.map +1 -0
- package/build/lib/react-router-loader/{react-router-loader.d.ts → $$.d.ts} +1 -1
- package/build/lib/react-router-loader/$$.d.ts.map +1 -0
- package/build/lib/react-router-loader/{react-router-loader.js → $$.js} +1 -1
- package/build/lib/react-router-loader/$$.js.map +1 -0
- package/build/lib/react-router-loader/$.d.ts +2 -0
- package/build/lib/react-router-loader/$.d.ts.map +1 -0
- package/build/lib/react-router-loader/$.js +2 -0
- package/build/lib/react-router-loader/$.js.map +1 -0
- package/build/lib/schema-lifecycle/$$.d.ts +6 -0
- package/build/lib/schema-lifecycle/$$.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/$$.js +6 -0
- package/build/lib/schema-lifecycle/$$.js.map +1 -0
- package/build/lib/schema-lifecycle/$.d.ts +2 -0
- package/build/lib/schema-lifecycle/$.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/$.js +2 -0
- package/build/lib/schema-lifecycle/$.js.map +1 -0
- package/build/lib/schema-lifecycle/FieldLifecycle.d.ts +17 -0
- package/build/lib/schema-lifecycle/FieldLifecycle.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/FieldLifecycle.js +2 -0
- package/build/lib/schema-lifecycle/FieldLifecycle.js.map +1 -0
- package/build/lib/schema-lifecycle/LifecycleEvent.d.ts +25 -0
- package/build/lib/schema-lifecycle/LifecycleEvent.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/LifecycleEvent.js +2 -0
- package/build/lib/schema-lifecycle/LifecycleEvent.js.map +1 -0
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.d.ts +59 -0
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.js +24 -0
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.js.map +1 -0
- package/build/lib/schema-lifecycle/SchemaLifecycle.d.ts +25 -0
- package/build/lib/schema-lifecycle/SchemaLifecycle.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/SchemaLifecycle.js +59 -0
- package/build/lib/schema-lifecycle/SchemaLifecycle.js.map +1 -0
- package/build/lib/schema-lifecycle/SchemaLink.d.ts +2 -0
- package/build/lib/schema-lifecycle/SchemaLink.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/SchemaLink.js +38 -0
- package/build/lib/schema-lifecycle/SchemaLink.js.map +1 -0
- package/build/lib/schema-lifecycle/handlers.d.ts +20 -0
- package/build/lib/schema-lifecycle/handlers.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/handlers.js +168 -0
- package/build/lib/schema-lifecycle/handlers.js.map +1 -0
- package/build/lib/schema-lifecycle/utils.d.ts +53 -0
- package/build/lib/schema-lifecycle/utils.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/utils.js +160 -0
- package/build/lib/schema-lifecycle/utils.js.map +1 -0
- package/build/lib/stack-processor/{index.js → $.d.ts} +1 -1
- package/build/lib/stack-processor/$.d.ts.map +1 -0
- package/build/lib/stack-processor/{index.d.ts → $.js} +1 -1
- package/build/lib/stack-processor/$.js.map +1 -0
- package/build/lib/superjson-codec/{exports.js → $$.d.ts} +1 -1
- package/build/lib/superjson-codec/$$.d.ts.map +1 -0
- package/build/lib/superjson-codec/{exports.d.ts → $$.js} +1 -1
- package/build/lib/superjson-codec/$$.js.map +1 -0
- package/build/lib/superjson-codec/$.d.ts +2 -0
- package/build/lib/superjson-codec/$.d.ts.map +1 -0
- package/build/lib/superjson-codec/$.js +2 -0
- package/build/lib/superjson-codec/$.js.map +1 -0
- package/build/lib/superjson-codec/codecs/graphql-schema.d.ts +1 -1
- package/build/lib/superjson-codec/codecs/graphql-schema.d.ts.map +1 -1
- package/build/lib/superjson-codec/codecs/graphql-schema.js +1 -1
- package/build/lib/superjson-codec/codecs/graphql-schema.js.map +1 -1
- package/build/lib/theme/$$.d.ts +2 -0
- package/build/lib/theme/$$.d.ts.map +1 -0
- package/build/lib/theme/$$.js +2 -0
- package/build/lib/theme/$$.js.map +1 -0
- package/build/lib/theme/$.d.ts +1 -1
- package/build/lib/theme/$.d.ts.map +1 -1
- package/build/lib/theme/$.js +1 -1
- package/build/lib/theme/$.js.map +1 -1
- package/build/lib/vite-plugin-config/{vite-plugin-config.d.ts → $$.d.ts} +1 -1
- package/build/lib/vite-plugin-config/$$.d.ts.map +1 -0
- package/build/lib/vite-plugin-config/{vite-plugin-config.js → $$.js} +1 -1
- package/build/lib/vite-plugin-config/$$.js.map +1 -0
- package/build/lib/vite-plugin-config/$.d.ts +2 -0
- package/build/lib/vite-plugin-config/$.d.ts.map +1 -0
- package/build/lib/vite-plugin-config/$.js +2 -0
- package/build/lib/vite-plugin-config/$.js.map +1 -0
- package/build/lib/vite-plugin-json/{index.js → $.d.ts} +1 -1
- package/build/lib/vite-plugin-json/$.d.ts.map +1 -0
- package/build/lib/vite-plugin-json/{index.d.ts → $.js} +1 -1
- package/build/lib/vite-plugin-json/$.js.map +1 -0
- package/build/lib/vite-plugin-mdx/{index.js → $.d.ts} +1 -1
- package/build/lib/vite-plugin-mdx/$.d.ts.map +1 -0
- package/build/lib/vite-plugin-mdx/{index.d.ts → $.js} +1 -1
- package/build/lib/vite-plugin-mdx/$.js.map +1 -0
- package/build/lib/vite-plugin-reactive-data/{index.js → $.d.ts} +1 -1
- package/build/lib/vite-plugin-reactive-data/$.d.ts.map +1 -0
- package/build/lib/vite-plugin-reactive-data/{index.d.ts → $.js} +1 -1
- package/build/lib/vite-plugin-reactive-data/$.js.map +1 -0
- package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.d.ts +1 -1
- package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.d.ts.map +1 -1
- package/build/lib/vite-plugins/$$.d.ts +2 -0
- package/build/lib/vite-plugins/$$.d.ts.map +1 -0
- package/build/lib/vite-plugins/$$.js +2 -0
- package/build/lib/vite-plugins/$$.js.map +1 -0
- package/build/lib/vite-plugins/$.d.ts +5 -0
- package/build/lib/vite-plugins/$.d.ts.map +1 -0
- package/build/lib/vite-plugins/$.js +5 -0
- package/build/lib/vite-plugins/$.js.map +1 -0
- package/build/lib/vite-virtual/{vite-virtual.js → $$.d.ts} +1 -1
- package/build/lib/vite-virtual/$$.d.ts.map +1 -0
- package/build/lib/vite-virtual/{vite-virtual.d.ts → $$.js} +1 -1
- package/build/lib/vite-virtual/$$.js.map +1 -0
- package/build/lib/vite-virtual/$.d.ts +2 -0
- package/build/lib/vite-virtual/$.d.ts.map +1 -0
- package/build/lib/vite-virtual/$.js +2 -0
- package/build/lib/vite-virtual/$.js.map +1 -0
- package/build/lib/vite-virtual/identified-loader.js +1 -1
- package/build/lib/vite-virtual/identified-loader.js.map +1 -1
- package/build/sandbox.js +2 -40
- package/build/sandbox.js.map +1 -1
- package/build/singletons/superjson.js +1 -1
- package/build/singletons/superjson.js.map +1 -1
- package/build/template/components/ArgumentListAnnotation.js +1 -1
- package/build/template/components/ArgumentListAnnotation.js.map +1 -1
- 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/CriticalitySection.d.ts +1 -1
- package/build/template/components/Changelog/CriticalitySection.d.ts.map +1 -1
- package/build/template/components/Changelog/CriticalitySection.js.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgument.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgument.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveLocationOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveLocationOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveUsage.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveUsage.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueDeprecationReason.d.ts +1 -1
- package/build/template/components/Changelog/groups/EnumValueDeprecationReason.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/EnumValueDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/EnumValueOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecation.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecationReason.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecationReason.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldDefaultValue.d.ts +1 -1
- package/build/template/components/Changelog/groups/InputFieldDefaultValue.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/InputFieldDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/InputFieldOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/SchemaRootType.d.ts +1 -1
- package/build/template/components/Changelog/groups/SchemaRootType.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/TypeDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/TypeDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/TypeOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/TypeOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/UnionMemberOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/UnionMemberOperation.d.ts.map +1 -1
- package/build/template/components/Changelog.d.ts +2 -2
- package/build/template/components/Changelog.d.ts.map +1 -1
- package/build/template/components/Changelog.js +11 -8
- package/build/template/components/Changelog.js.map +1 -1
- package/build/template/components/DeprecationReason.d.ts +1 -1
- package/build/template/components/DeprecationReason.d.ts.map +1 -1
- package/build/template/components/Description.d.ts +1 -1
- package/build/template/components/Description.d.ts.map +1 -1
- package/build/template/components/Field.d.ts +2 -1
- package/build/template/components/Field.d.ts.map +1 -1
- package/build/template/components/Field.js +23 -4
- package/build/template/components/Field.js.map +1 -1
- package/build/template/components/FieldList.d.ts +2 -1
- package/build/template/components/FieldList.d.ts.map +1 -1
- package/build/template/components/FieldList.js +3 -3
- package/build/template/components/FieldList.js.map +1 -1
- package/build/template/components/FieldListSection.js +2 -2
- package/build/template/components/FieldListSection.js.map +1 -1
- package/build/template/components/HamburgerMenu.d.ts +1 -0
- package/build/template/components/HamburgerMenu.d.ts.map +1 -1
- package/build/template/components/HamburgerMenu.js +2 -2
- package/build/template/components/HamburgerMenu.js.map +1 -1
- package/build/template/components/NamedType.d.ts.map +1 -1
- package/build/template/components/NamedType.js +11 -2
- package/build/template/components/NamedType.js.map +1 -1
- package/build/template/components/TypeIndex.js +1 -1
- package/build/template/components/TypeIndex.js.map +1 -1
- package/build/template/components/graphql/type-kind-icon.d.ts +1 -1
- package/build/template/components/graphql/type-kind-icon.d.ts.map +1 -1
- package/build/template/components/graphql/type-link.d.ts +1 -1
- package/build/template/components/graphql/type-link.d.ts.map +1 -1
- package/build/template/components/graphql/type-link.js +1 -1
- package/build/template/components/graphql/type-link.js.map +1 -1
- package/build/template/components/navbar/DefaultNavbar.d.ts +4 -0
- package/build/template/components/navbar/DefaultNavbar.d.ts.map +1 -0
- package/build/template/components/navbar/DefaultNavbar.js +10 -0
- package/build/template/components/navbar/DefaultNavbar.js.map +1 -0
- package/build/template/components/navbar/Item.d.ts +7 -0
- package/build/template/components/navbar/Item.d.ts.map +1 -0
- package/build/template/components/navbar/Item.js +6 -0
- package/build/template/components/navbar/Item.js.map +1 -0
- package/build/template/components/sidebar/Sidebar.d.ts +2 -1
- package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
- package/build/template/components/sidebar/Sidebar.js +2 -2
- package/build/template/components/sidebar/Sidebar.js.map +1 -1
- package/build/template/contexts/SchemaLifecycleContext.d.ts +14 -0
- package/build/template/contexts/SchemaLifecycleContext.d.ts.map +1 -0
- package/build/template/contexts/SchemaLifecycleContext.js +15 -0
- package/build/template/contexts/SchemaLifecycleContext.js.map +1 -0
- package/build/template/layouts/ChangelogLayout.d.ts +1 -1
- package/build/template/layouts/ChangelogLayout.d.ts.map +1 -1
- package/build/template/layouts/ChangelogLayout.js +11 -3
- package/build/template/layouts/ChangelogLayout.js.map +1 -1
- package/build/template/layouts/SidebarLayout.d.ts +1 -0
- package/build/template/layouts/SidebarLayout.d.ts.map +1 -1
- package/build/template/layouts/SidebarLayout.js +2 -2
- package/build/template/layouts/SidebarLayout.js.map +1 -1
- package/build/template/routes/changelog.d.ts +4 -2
- package/build/template/routes/changelog.d.ts.map +1 -1
- package/build/template/routes/changelog.js.map +1 -1
- package/build/template/routes/reference.d.ts +6 -1
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.js +8 -4
- package/build/template/routes/reference.js.map +1 -1
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.js +12 -2
- package/build/template/routes/root.js.map +1 -1
- package/build/template/server/middleware/unsupported-assets.js +2 -2
- package/build/template/server/middleware/unsupported-assets.js.map +1 -1
- package/build/template/server/ssg/get-route-paths.js +1 -1
- package/build/template/server/ssg/get-route-paths.js.map +1 -1
- package/build/template/sources/schema-source.d.ts +6 -4
- package/build/template/sources/schema-source.d.ts.map +1 -1
- package/package.json +124 -4
- package/src/api/api.ts +1 -0
- package/src/api/cache/$$.ts +1 -0
- package/src/api/cache/$.ts +1 -0
- package/src/api/cache/cache.ts +210 -0
- package/src/api/content/navbar.test.ts +3 -3
- package/src/api/content/navbar.ts +2 -0
- package/src/api/content/page.ts +1 -1
- package/src/api/content/scan.ts +1 -1
- package/src/api/content/sidebar.ts +1 -1
- package/src/api/hooks/helpers.ts +5 -0
- package/src/api/hooks/index.ts +2 -0
- package/src/api/hooks/types.ts +8 -0
- package/src/api/iso/schema/$$.ts +0 -3
- package/src/api/iso/schema/routing.ts +1 -1
- package/src/api/iso/schema/validation.ts +1 -1
- package/src/api/schema/data-sources/introspection/introspection.ts +13 -10
- package/src/api/schema/data-sources/memory/memory.ts +26 -16
- package/src/api/schema/data-sources/schema-directory/schema-directory.ts +28 -18
- package/src/api/schema/data-sources/schema-file/schema-file.ts +10 -10
- package/src/api/schema/read.ts +5 -5
- package/src/api/schema/schema.ts +0 -14
- package/src/api/schema-augmentation/augmentations/description.ts +1 -1
- package/src/api/schema-augmentation/schema-augmentation.ts +1 -1
- package/src/api/schema-augmentation/target.ts +1 -1
- package/src/api/schema-source/schema-source.ts +59 -32
- package/src/api/vite/plugins/build.ts +1 -1
- package/src/api/vite/plugins/core.ts +51 -12
- package/src/api/vite/plugins/pages.ts +1 -1
- package/src/api/vite/plugins/schema-assets.ts +21 -7
- package/src/api/vite/vi.ts +1 -1
- package/src/cli/commands/cache/$default.ts +10 -0
- package/src/cli/commands/cache/delete.ts +27 -0
- package/src/cli/commands/cache/show.ts +99 -0
- package/src/cli/commands/cache.ts +9 -0
- package/src/cli/commands/config.ts +3 -0
- package/src/cli/commands/open.ts +2 -2
- package/src/cli/commands/static.ts +3 -0
- package/src/exports/polen.ts +1 -0
- package/src/exports/radix-ui/react-icons.ts +3 -0
- package/src/exports/radix-ui/themes.ts +3 -0
- package/src/lib/errors/$.ts +1 -0
- package/src/lib/file-router/$.ts +1 -0
- package/src/lib/file-router/index.test.ts +1 -1
- package/src/lib/grafaid/$.ts +1 -0
- package/src/lib/grafaid/schema/type.ts +1 -0
- package/src/lib/graphql-change/{graphql-change.ts → $$.ts} +1 -1
- package/src/lib/graphql-change/$.ts +1 -0
- package/src/lib/graphql-change/change-groups.ts +56 -26
- package/src/lib/graphql-changeset/$$.ts +3 -0
- package/src/lib/graphql-changeset/$.ts +1 -0
- package/src/lib/graphql-changeset/changelog.ts +9 -0
- package/src/lib/graphql-changeset/changeset.ts +190 -0
- package/src/lib/graphql-changeset/versioned-schema.ts +43 -0
- package/src/lib/graphql-path/$$.ts +42 -0
- package/src/lib/graphql-path/$.ts +4 -0
- package/src/lib/graphql-path/constructors.ts +81 -0
- package/src/lib/graphql-path/definition.ts +240 -0
- package/src/lib/graphql-path/query.ts +118 -0
- package/src/lib/graphql-path/types.ts +55 -0
- package/src/lib/graphql-schema-loader/graphql-schema-loader.ts +1 -1
- package/src/lib/html-utils/$$.ts +2 -0
- package/src/lib/html-utils/$.ts +1 -0
- package/src/lib/kit-temp.ts +3 -0
- package/src/lib/path-map/$.test.ts +4 -3
- package/src/lib/react-router-aid/$.ts +1 -0
- package/src/lib/react-router-loader/$.ts +1 -0
- package/src/lib/schema-lifecycle/$$.ts +19 -0
- package/src/lib/schema-lifecycle/$.test.ts +222 -0
- package/src/lib/schema-lifecycle/$.ts +1 -0
- package/src/lib/schema-lifecycle/FieldLifecycle.ts +18 -0
- package/src/lib/schema-lifecycle/LifecycleEvent.ts +27 -0
- package/src/lib/schema-lifecycle/NamedTypeLifecycle.ts +96 -0
- package/src/lib/schema-lifecycle/SchemaLifecycle.ts +85 -0
- package/src/lib/schema-lifecycle/SchemaLink.ts +40 -0
- package/src/lib/schema-lifecycle/handlers.ts +215 -0
- package/src/lib/schema-lifecycle/utils.ts +234 -0
- package/src/lib/superjson-codec/$.ts +1 -0
- package/src/lib/superjson-codec/codecs/graphql-schema.ts +1 -1
- package/src/lib/theme/$$.ts +1 -0
- package/src/lib/theme/$.ts +1 -1
- package/src/lib/vite-plugin-config/$.ts +1 -0
- package/src/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.ts +1 -1
- package/src/lib/vite-plugins/$.ts +4 -0
- package/src/lib/vite-virtual/$.ts +1 -0
- package/src/lib/vite-virtual/identified-loader.ts +1 -1
- package/src/sandbox.ts +1 -43
- package/src/singletons/superjson.ts +1 -1
- package/src/template/components/ArgumentListAnnotation.tsx +1 -1
- package/src/template/components/Changelog/ChangeBase.tsx +1 -1
- package/src/template/components/Changelog/CriticalitySection.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveArgument.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveArgumentDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveArgumentOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveLocationOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveUsage.tsx +1 -1
- package/src/template/components/Changelog/groups/EnumValueDeprecationReason.tsx +1 -1
- package/src/template/components/Changelog/groups/EnumValueDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/EnumValueOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldArgument.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldArgumentDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldArgumentOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldDeprecation.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldDeprecationReason.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/InputFieldDefaultValue.tsx +1 -1
- package/src/template/components/Changelog/groups/InputFieldDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/InputFieldOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/ObjectTypeInterfaceOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/SchemaRootType.tsx +1 -1
- package/src/template/components/Changelog/groups/TypeDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/TypeOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/UnionMemberOperation.tsx +1 -1
- package/src/template/components/Changelog.tsx +12 -11
- package/src/template/components/DeprecationReason.tsx +1 -1
- package/src/template/components/Description.tsx +1 -1
- package/src/template/components/Field.tsx +48 -4
- package/src/template/components/FieldList.tsx +4 -2
- package/src/template/components/FieldListSection.tsx +2 -2
- package/src/template/components/HamburgerMenu.tsx +3 -1
- package/src/template/components/NamedType.tsx +31 -2
- package/src/template/components/TypeIndex.tsx +1 -1
- package/src/template/components/graphql/type-kind-icon.tsx +1 -1
- package/src/template/components/graphql/type-kind-tokens.ts +1 -1
- package/src/template/components/graphql/type-link.tsx +1 -1
- package/src/template/components/navbar/DefaultNavbar.tsx +22 -0
- package/src/template/components/navbar/Item.tsx +11 -0
- package/src/template/components/sidebar/Sidebar.tsx +7 -1
- package/src/template/contexts/SchemaLifecycleContext.tsx +30 -0
- package/src/template/layouts/ChangelogLayout.tsx +11 -4
- package/src/template/layouts/SidebarLayout.tsx +4 -2
- package/src/template/routes/changelog.tsx +4 -2
- package/src/template/routes/reference.tsx +26 -11
- package/src/template/routes/root.tsx +25 -18
- package/src/template/server/create-page-html-response.ts +1 -1
- package/src/template/server/middleware/unsupported-assets.ts +2 -2
- package/src/template/server/ssg/get-route-paths.ts +1 -1
- package/src/vite-env.d.ts +5 -0
- package/build/lib/apple-touch-icon/index.d.ts.map +0 -1
- package/build/lib/apple-touch-icon/index.js.map +0 -1
- package/build/lib/errors/errors.d.ts.map +0 -1
- package/build/lib/errors/errors.js.map +0 -1
- package/build/lib/errors/index.d.ts +0 -2
- package/build/lib/errors/index.d.ts.map +0 -1
- package/build/lib/errors/index.js +0 -2
- package/build/lib/errors/index.js.map +0 -1
- package/build/lib/extensible-data/index.d.ts.map +0 -1
- package/build/lib/extensible-data/index.js.map +0 -1
- package/build/lib/favicon/index.d.ts.map +0 -1
- package/build/lib/favicon/index.js.map +0 -1
- package/build/lib/file-router/file-router.d.ts.map +0 -1
- package/build/lib/file-router/file-router.js.map +0 -1
- package/build/lib/file-router/index.d.ts +0 -2
- package/build/lib/file-router/index.d.ts.map +0 -1
- package/build/lib/file-router/index.js +0 -2
- package/build/lib/file-router/index.js.map +0 -1
- package/build/lib/grafaid/grafaid.d.ts.map +0 -1
- package/build/lib/grafaid/grafaid.js.map +0 -1
- package/build/lib/grafaid/index.d.ts +0 -2
- package/build/lib/grafaid/index.d.ts.map +0 -1
- package/build/lib/grafaid/index.js +0 -2
- package/build/lib/grafaid/index.js.map +0 -1
- package/build/lib/grafaid-old/index.d.ts.map +0 -1
- package/build/lib/grafaid-old/index.js.map +0 -1
- package/build/lib/graphql-change/graphql-change.d.ts.map +0 -1
- package/build/lib/graphql-change/graphql-change.js.map +0 -1
- package/build/lib/graphql-change/index.d.ts +0 -2
- package/build/lib/graphql-change/index.d.ts.map +0 -1
- package/build/lib/graphql-change/index.js +0 -2
- package/build/lib/graphql-change/index.js.map +0 -1
- package/build/lib/graphql-changeset/graphql-changeset.d.ts +0 -9
- package/build/lib/graphql-changeset/graphql-changeset.d.ts.map +0 -1
- package/build/lib/graphql-changeset/graphql-changeset.js +0 -2
- package/build/lib/graphql-changeset/graphql-changeset.js.map +0 -1
- package/build/lib/graphql-changeset/index.d.ts +0 -2
- package/build/lib/graphql-changeset/index.d.ts.map +0 -1
- package/build/lib/graphql-changeset/index.js +0 -2
- package/build/lib/graphql-changeset/index.js.map +0 -1
- package/build/lib/graphql-schema-loader/index.d.ts.map +0 -1
- package/build/lib/graphql-schema-loader/index.js.map +0 -1
- package/build/lib/hono-aid/index.d.ts.map +0 -1
- package/build/lib/hono-aid/index.js.map +0 -1
- package/build/lib/react-router-aid/index.d.ts +0 -2
- package/build/lib/react-router-aid/index.d.ts.map +0 -1
- package/build/lib/react-router-aid/index.js +0 -2
- package/build/lib/react-router-aid/index.js.map +0 -1
- package/build/lib/react-router-aid/react-router-aid.d.ts.map +0 -1
- package/build/lib/react-router-aid/react-router-aid.js.map +0 -1
- package/build/lib/react-router-loader/react-router-loader.d.ts.map +0 -1
- package/build/lib/react-router-loader/react-router-loader.js.map +0 -1
- package/build/lib/stack-processor/index.d.ts.map +0 -1
- package/build/lib/stack-processor/index.js.map +0 -1
- package/build/lib/superjson-codec/exports.d.ts.map +0 -1
- package/build/lib/superjson-codec/exports.js.map +0 -1
- package/build/lib/superjson-codec/index.d.ts +0 -2
- package/build/lib/superjson-codec/index.d.ts.map +0 -1
- package/build/lib/superjson-codec/index.js +0 -2
- package/build/lib/superjson-codec/index.js.map +0 -1
- package/build/lib/vite-plugin-config/vite-plugin-config.d.ts.map +0 -1
- package/build/lib/vite-plugin-config/vite-plugin-config.js.map +0 -1
- package/build/lib/vite-plugin-json/index.d.ts.map +0 -1
- package/build/lib/vite-plugin-json/index.js.map +0 -1
- package/build/lib/vite-plugin-mdx/index.d.ts.map +0 -1
- package/build/lib/vite-plugin-mdx/index.js.map +0 -1
- package/build/lib/vite-plugin-reactive-data/index.d.ts.map +0 -1
- package/build/lib/vite-plugin-reactive-data/index.js.map +0 -1
- package/build/lib/vite-plugins/index.d.ts +0 -5
- package/build/lib/vite-plugins/index.d.ts.map +0 -1
- package/build/lib/vite-plugins/index.js +0 -5
- package/build/lib/vite-plugins/index.js.map +0 -1
- package/build/lib/vite-plugins/vite-plugins.d.ts +0 -2
- package/build/lib/vite-plugins/vite-plugins.d.ts.map +0 -1
- package/build/lib/vite-plugins/vite-plugins.js +0 -2
- package/build/lib/vite-plugins/vite-plugins.js.map +0 -1
- package/build/lib/vite-virtual/index.d.ts +0 -2
- package/build/lib/vite-virtual/index.d.ts.map +0 -1
- package/build/lib/vite-virtual/index.js +0 -2
- package/build/lib/vite-virtual/index.js.map +0 -1
- package/build/lib/vite-virtual/vite-virtual.d.ts.map +0 -1
- package/build/lib/vite-virtual/vite-virtual.js.map +0 -1
- package/src/lib/errors/index.ts +0 -1
- package/src/lib/file-router/index.ts +0 -1
- package/src/lib/grafaid/index.ts +0 -1
- package/src/lib/graphql-change/index.ts +0 -1
- package/src/lib/graphql-changeset/graphql-changeset.ts +0 -9
- package/src/lib/graphql-changeset/index.ts +0 -1
- package/src/lib/react-router-aid/index.ts +0 -1
- package/src/lib/superjson-codec/index.ts +0 -1
- package/src/lib/vite-plugins/index.ts +0 -4
- package/src/lib/vite-virtual/index.ts +0 -1
- /package/src/lib/apple-touch-icon/{index.ts → $.ts} +0 -0
- /package/src/lib/errors/{errors.ts → $$.ts} +0 -0
- /package/src/lib/extensible-data/{index.ts → $.ts} +0 -0
- /package/src/lib/favicon/{index.ts → $.ts} +0 -0
- /package/src/lib/file-router/{file-router.ts → $$.ts} +0 -0
- /package/src/lib/grafaid/{grafaid.ts → $$.ts} +0 -0
- /package/src/lib/grafaid-old/{index.ts → $.ts} +0 -0
- /package/src/lib/graphql-schema-loader/{index.ts → $.ts} +0 -0
- /package/src/lib/hono-aid/{index.ts → $.ts} +0 -0
- /package/src/lib/react-router-aid/{react-router-aid.ts → $$.ts} +0 -0
- /package/src/lib/react-router-loader/{react-router-loader.ts → $$.ts} +0 -0
- /package/src/lib/stack-processor/{index.ts → $.ts} +0 -0
- /package/src/lib/superjson-codec/{exports.ts → $$.ts} +0 -0
- /package/src/lib/vite-plugin-config/{vite-plugin-config.ts → $$.ts} +0 -0
- /package/src/lib/vite-plugin-json/{index.ts → $.ts} +0 -0
- /package/src/lib/vite-plugin-mdx/{index.ts → $.ts} +0 -0
- /package/src/lib/vite-plugin-reactive-data/{index.ts → $.ts} +0 -0
- /package/src/lib/vite-plugins/{vite-plugins.ts → $$.ts} +0 -0
- /package/src/lib/vite-virtual/{vite-virtual.ts → $$.ts} +0 -0
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Grafaid } from '#lib/grafaid
|
2
|
-
import { GraphqlChange } from '#lib/graphql-change
|
3
|
-
import type { GraphqlChangeset } from '#lib/graphql-changeset
|
4
|
-
import { GraphqlSchemaLoader } from '#lib/graphql-schema-loader
|
1
|
+
import { Grafaid } from '#lib/grafaid'
|
2
|
+
import { GraphqlChange } from '#lib/graphql-change'
|
3
|
+
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
4
|
+
import { GraphqlSchemaLoader } from '#lib/graphql-schema-loader'
|
5
5
|
import { Fs, Json, Path } from '@wollybeard/kit'
|
6
|
-
import type {
|
6
|
+
import type { SchemaReadResult } from '../../schema.js'
|
7
7
|
|
8
8
|
/**
|
9
9
|
* Configuration for loading schema via GraphQL introspection.
|
@@ -191,7 +191,9 @@ export const readOrThrow = async (
|
|
191
191
|
* Create a single changeset from a schema object.
|
192
192
|
* This is the core logic for handling single (unversioned) schemas from introspection.
|
193
193
|
*/
|
194
|
-
export const createSingleSchemaChangeset = async (
|
194
|
+
export const createSingleSchemaChangeset = async (
|
195
|
+
schema: Grafaid.Schema.Schema,
|
196
|
+
): Promise<GraphqlChangeset.ChangelogLinked> => {
|
195
197
|
const date = new Date() // Generate date here for unversioned schema
|
196
198
|
const after = schema
|
197
199
|
const before = Grafaid.Schema.empty
|
@@ -200,14 +202,15 @@ export const createSingleSchemaChangeset = async (schema: Grafaid.Schema.Schema)
|
|
200
202
|
after,
|
201
203
|
})
|
202
204
|
|
203
|
-
const changeset: GraphqlChangeset.
|
205
|
+
const changeset: GraphqlChangeset.IntermediateChangeSetLinked = {
|
206
|
+
type: 'IntermediateChangeSet',
|
204
207
|
date,
|
205
|
-
after,
|
206
|
-
before,
|
208
|
+
after: { version: null, data: after },
|
209
|
+
before: { version: null, data: before },
|
207
210
|
changes,
|
208
211
|
}
|
209
212
|
|
210
|
-
const result:
|
213
|
+
const result: GraphqlChangeset.ChangelogLinked = [changeset]
|
211
214
|
|
212
215
|
return result
|
213
216
|
}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { Grafaid } from '#lib/grafaid
|
2
|
-
import { GraphqlChange } from '#lib/graphql-change
|
3
|
-
import type { GraphqlChangeset } from '#lib/graphql-changeset
|
1
|
+
import { Grafaid } from '#lib/grafaid'
|
2
|
+
import { GraphqlChange } from '#lib/graphql-change'
|
3
|
+
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
4
4
|
import { Arr } from '@wollybeard/kit'
|
5
|
-
import type { NonEmptyChangeSets } from '../../schema.js'
|
6
5
|
|
7
6
|
/**
|
8
7
|
* Configuration for defining schemas programmatically in memory.
|
@@ -68,7 +67,7 @@ export const normalize = (configInput: ConfigInput): Config => {
|
|
68
67
|
|
69
68
|
export const read = async (
|
70
69
|
configInput: ConfigInput,
|
71
|
-
): Promise<null |
|
70
|
+
): Promise<null | GraphqlChangeset.ChangelogLinked> => {
|
72
71
|
const config = normalize(configInput)
|
73
72
|
|
74
73
|
if (!Arr.isntEmpty(config.versions)) {
|
@@ -86,30 +85,41 @@ export const read = async (
|
|
86
85
|
|
87
86
|
// todo: make DRY, this is same as for schema-directory
|
88
87
|
const changesets = await Promise.all(
|
89
|
-
Arr.map(versions, async (version, index): Promise<GraphqlChangeset.
|
88
|
+
Arr.map(versions, async (version, index): Promise<GraphqlChangeset.ChangeSetLinked> => {
|
90
89
|
const current = version
|
91
90
|
const previous = versions[index - 1]
|
92
91
|
|
93
92
|
const before = previous?.schema ?? Grafaid.Schema.empty
|
94
93
|
const after = current.schema
|
95
94
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
95
|
+
if (!previous) {
|
96
|
+
// First version - create InitialChangeSet
|
97
|
+
return {
|
98
|
+
type: 'InitialChangeSet',
|
99
|
+
date: current.date,
|
100
|
+
after: { version: null, data: after },
|
101
|
+
}
|
102
|
+
} else {
|
103
|
+
// Subsequent versions - create IntermediateChangeSet
|
104
|
+
const changes = await GraphqlChange.calcChangeset({
|
105
|
+
before,
|
106
|
+
after,
|
107
|
+
})
|
100
108
|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
109
|
+
return {
|
110
|
+
type: 'IntermediateChangeSet',
|
111
|
+
date: current.date,
|
112
|
+
before: { version: null, data: before },
|
113
|
+
after: { version: null, data: after },
|
114
|
+
changes,
|
115
|
+
}
|
106
116
|
}
|
107
117
|
}),
|
108
118
|
)
|
109
119
|
|
110
120
|
changesets.reverse()
|
111
121
|
|
112
|
-
const schema:
|
122
|
+
const schema: GraphqlChangeset.ChangelogLinked = changesets
|
113
123
|
|
114
124
|
return schema
|
115
125
|
}
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { Grafaid } from '#lib/grafaid
|
2
|
-
import { GraphqlChange } from '#lib/graphql-change
|
3
|
-
import type { GraphqlChangeset } from '#lib/graphql-changeset
|
1
|
+
import { Grafaid } from '#lib/grafaid'
|
2
|
+
import { GraphqlChange } from '#lib/graphql-change'
|
3
|
+
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
4
4
|
import { debugPolen } from '#singletons/debug'
|
5
5
|
import { Arr, Path } from '@wollybeard/kit'
|
6
6
|
import { glob } from 'tinyglobby'
|
7
|
-
import type { NonEmptyChangeSets } from '../../schema.js'
|
8
7
|
import { readSingleSchemaFile } from '../schema-file/schema-file.js'
|
9
8
|
import { FileNameExpression } from './file-name-expression/index.js'
|
10
9
|
|
@@ -71,7 +70,7 @@ export const normalizeConfig = (configInput: ConfigInput): Config => {
|
|
71
70
|
return config
|
72
71
|
}
|
73
72
|
|
74
|
-
export const readOrThrow = async (configInput: ConfigInput): Promise<null |
|
73
|
+
export const readOrThrow = async (configInput: ConfigInput): Promise<null | GraphqlChangeset.ChangelogLinked> => {
|
75
74
|
const config = normalizeConfig(configInput)
|
76
75
|
|
77
76
|
debug(`will search`, config)
|
@@ -124,7 +123,7 @@ export const readOrThrow = async (configInput: ConfigInput): Promise<null | NonE
|
|
124
123
|
*/
|
125
124
|
const readVersionedSchemas = async (
|
126
125
|
versionedExpressions: FileNameExpression.ExpressionVersioned[],
|
127
|
-
): Promise<
|
126
|
+
): Promise<GraphqlChangeset.ChangelogLinked> => {
|
128
127
|
const versions = await Promise.all(Arr.map(versionedExpressions, async fileNameExpression => {
|
129
128
|
const schemaFile = await Grafaid.Schema.read(fileNameExpression.filePath)
|
130
129
|
// Should never happen since these paths come from the glob.
|
@@ -140,23 +139,34 @@ const readVersionedSchemas = async (
|
|
140
139
|
versions.sort((a, b) => a.date.getTime() - b.date.getTime())
|
141
140
|
|
142
141
|
const changesets = await Promise.all(
|
143
|
-
Arr.map(versions, async (version, index): Promise<GraphqlChangeset.
|
142
|
+
Arr.map(versions, async (version, index): Promise<GraphqlChangeset.ChangeSetLinked> => {
|
144
143
|
const current = version
|
145
144
|
const previous = versions[index - 1]
|
146
145
|
|
147
146
|
const before = previous?.schema ?? Grafaid.Schema.empty
|
148
147
|
const after = current.schema
|
149
148
|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
changes
|
149
|
+
if (!previous) {
|
150
|
+
// First version - create InitialChangeSet
|
151
|
+
return {
|
152
|
+
type: 'InitialChangeSet',
|
153
|
+
date: current.date,
|
154
|
+
after: { version: null, data: after },
|
155
|
+
}
|
156
|
+
} else {
|
157
|
+
// Subsequent versions - create IntermediateChangeSet
|
158
|
+
const changes = await GraphqlChange.calcChangeset({
|
159
|
+
before,
|
160
|
+
after,
|
161
|
+
})
|
162
|
+
|
163
|
+
return {
|
164
|
+
type: 'IntermediateChangeSet',
|
165
|
+
date: current.date,
|
166
|
+
before: { version: null, data: before },
|
167
|
+
after: { version: null, data: after },
|
168
|
+
changes,
|
169
|
+
}
|
160
170
|
}
|
161
171
|
}),
|
162
172
|
)
|
@@ -164,5 +174,5 @@ const readVersionedSchemas = async (
|
|
164
174
|
changesets.reverse()
|
165
175
|
|
166
176
|
debug(`computed versioned schema`)
|
167
|
-
return changesets as
|
177
|
+
return changesets as GraphqlChangeset.ChangelogLinked
|
168
178
|
}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { Grafaid } from '#lib/grafaid
|
2
|
-
import { GraphqlChange } from '#lib/graphql-change
|
3
|
-
import type { GraphqlChangeset } from '#lib/graphql-changeset
|
1
|
+
import { Grafaid } from '#lib/grafaid'
|
2
|
+
import { GraphqlChange } from '#lib/graphql-change'
|
3
|
+
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
4
4
|
import { Path } from '@wollybeard/kit'
|
5
|
-
import type { NonEmptyChangeSets } from '../../schema.js'
|
6
5
|
|
7
6
|
const defaultPaths = {
|
8
7
|
schemaFile: `./schema.graphql`,
|
@@ -46,7 +45,7 @@ export const normalizeConfig = (configInput: ConfigInput): Config => {
|
|
46
45
|
|
47
46
|
export const readOrThrow = async (
|
48
47
|
configInput: ConfigInput,
|
49
|
-
): Promise<null |
|
48
|
+
): Promise<null | GraphqlChangeset.ChangelogLinked> => {
|
50
49
|
const config = normalizeConfig(configInput)
|
51
50
|
|
52
51
|
const schemaFile = await Grafaid.Schema.read(config.path)
|
@@ -59,7 +58,7 @@ export const readOrThrow = async (
|
|
59
58
|
* Create a single changeset from a schema file path.
|
60
59
|
* This is the core logic for handling single (unversioned) schemas.
|
61
60
|
*/
|
62
|
-
export const readSingleSchemaFile = async (filePath: string): Promise<
|
61
|
+
export const readSingleSchemaFile = async (filePath: string): Promise<GraphqlChangeset.ChangelogLinked> => {
|
63
62
|
const schemaFile = await Grafaid.Schema.read(filePath)
|
64
63
|
if (!schemaFile) throw new Error(`Failed to read schema file: ${filePath}`)
|
65
64
|
|
@@ -71,14 +70,15 @@ export const readSingleSchemaFile = async (filePath: string): Promise<NonEmptyCh
|
|
71
70
|
after,
|
72
71
|
})
|
73
72
|
|
74
|
-
const changeset: GraphqlChangeset.
|
73
|
+
const changeset: GraphqlChangeset.IntermediateChangeSetLinked = {
|
74
|
+
type: 'IntermediateChangeSet',
|
75
75
|
date,
|
76
|
-
after,
|
77
|
-
before,
|
76
|
+
after: { version: null, data: after },
|
77
|
+
before: { version: null, data: before },
|
78
78
|
changes,
|
79
79
|
}
|
80
80
|
|
81
|
-
const schema:
|
81
|
+
const schema: GraphqlChangeset.ChangelogLinked = [changeset]
|
82
82
|
|
83
83
|
return schema
|
84
84
|
}
|
package/src/api/schema/read.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
2
|
+
import { Arr } from '@wollybeard/kit'
|
2
3
|
import * as DataSources from './data-sources/data-sources.js'
|
3
|
-
import type { NonEmptyChangeSets } from './schema.js'
|
4
4
|
|
5
5
|
export type DataSourceType =
|
6
6
|
| `file`
|
@@ -15,7 +15,7 @@ export type DataSourceType =
|
|
15
15
|
* Result of schema reading with provenance tracking for file watching and debugging.
|
16
16
|
*/
|
17
17
|
export interface SchemaReadResult {
|
18
|
-
data:
|
18
|
+
data: GraphqlChangeset.ChangelogLinked | null
|
19
19
|
source: {
|
20
20
|
type: DataSourceType
|
21
21
|
/**
|
@@ -26,7 +26,7 @@ export interface SchemaReadResult {
|
|
26
26
|
*
|
27
27
|
* @returns Promise resolving to the recreated schema data, or null if recreation fails
|
28
28
|
*/
|
29
|
-
reCreate?: () => Promise<
|
29
|
+
reCreate?: () => Promise<GraphqlChangeset.ChangelogLinked | null>
|
30
30
|
}
|
31
31
|
}
|
32
32
|
|
@@ -121,7 +121,7 @@ export interface Config {
|
|
121
121
|
/**
|
122
122
|
* Pre-built schema object to use directly.
|
123
123
|
*/
|
124
|
-
data?:
|
124
|
+
data?: GraphqlChangeset.ChangelogLinked
|
125
125
|
/**
|
126
126
|
* Configuration for loading schema via GraphQL introspection.
|
127
127
|
*
|
package/src/api/schema/schema.ts
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
import type { GraphqlChangeset } from '#lib/graphql-changeset/index'
|
2
|
-
|
3
1
|
// Re-export everything from isomorphic layer
|
4
2
|
export * from '../iso/schema/constants.js'
|
5
3
|
export * as Routing from '../iso/schema/routing.js'
|
@@ -8,15 +6,3 @@ export * as Routing from '../iso/schema/routing.js'
|
|
8
6
|
export * as DataSources from './data-sources/data-sources.js'
|
9
7
|
export * from './metadata.js'
|
10
8
|
export * from './read.js'
|
11
|
-
|
12
|
-
export type ChangeSets = GraphqlChangeset.ChangeSet[]
|
13
|
-
|
14
|
-
export type NonEmptyChangeSets = [GraphqlChangeset.ChangeSet, ...GraphqlChangeset.ChangeSet[]]
|
15
|
-
|
16
|
-
/**
|
17
|
-
* Changelog data structure for JSON serialization
|
18
|
-
*/
|
19
|
-
export interface ChangelogData {
|
20
|
-
changes: GraphqlChangeset.ChangeSet['changes']
|
21
|
-
date: string
|
22
|
-
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { GrafaidOld } from '#lib/grafaid-old
|
1
|
+
import type { GrafaidOld } from '#lib/grafaid-old'
|
2
2
|
import { neverCase } from '@wollybeard/kit/language'
|
3
3
|
import type { Target } from '../target.js'
|
4
4
|
import { locateTargetField, locateTargetType } from '../target.js'
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Schema } from '#api/schema/index'
|
2
|
-
import { Grafaid } from '#lib/grafaid
|
3
|
-
import
|
2
|
+
import { Grafaid } from '#lib/grafaid'
|
3
|
+
import { GraphqlChangeset } from '#lib/graphql-changeset'
|
4
|
+
import { SchemaLifecycle } from '#lib/schema-lifecycle'
|
4
5
|
import { astToSchema } from '#template/lib/schema-utils/schema-utils'
|
5
6
|
import { Cache } from '@wollybeard/kit'
|
6
7
|
import type { GraphQLSchema } from 'graphql'
|
@@ -34,17 +35,20 @@ interface SchemaSourceConfig {
|
|
34
35
|
}
|
35
36
|
versions: string[]
|
36
37
|
assetsPath: string
|
38
|
+
debug?: boolean
|
37
39
|
}
|
38
40
|
|
39
41
|
export const createSchemaSource = (config: SchemaSourceConfig) => {
|
40
42
|
const getSchemaPath = (version: string) => `${config.assetsPath}/schemas/${version}.json`
|
41
43
|
|
42
|
-
const getChangelogPath = (version: string) => `${config.assetsPath}/schemas/${version}.changelog.json`
|
44
|
+
const getChangelogPath = (version: string) => `${config.assetsPath}/schemas/${version}.release.changelog.json`
|
43
45
|
|
44
46
|
const getSchemasDirectory = () => `${config.assetsPath}/schemas`
|
45
47
|
|
46
48
|
const getMetadataPath = () => `${config.assetsPath}/schemas/metadata.json`
|
47
49
|
|
50
|
+
const getLifecyclePath = () => `${config.assetsPath}/schemas/lifecycle.json`
|
51
|
+
|
48
52
|
const ioWrite = config.io.write || NoImplementationWriteFile
|
49
53
|
const ioClearDirectory = config.io.clearDirectory || NoImplementationClearDirectory
|
50
54
|
const ioRemoveFile = config.io.removeFile || NoImplementationRemoveFile
|
@@ -59,12 +63,12 @@ export const createSchemaSource = (config: SchemaSourceConfig) => {
|
|
59
63
|
return schema
|
60
64
|
}
|
61
65
|
|
62
|
-
const getChangelog = async (version: string): Promise<
|
66
|
+
const getChangelog = async (version: string): Promise<GraphqlChangeset.ChangeSet> => {
|
63
67
|
const content = await ioReadMemoized(getChangelogPath(version))
|
64
|
-
return
|
68
|
+
return GraphqlChangeset.fromJson(content)
|
65
69
|
}
|
66
70
|
|
67
|
-
const getAllChangesets = async (): Promise<GraphqlChangeset.
|
71
|
+
const getAllChangesets = async (): Promise<GraphqlChangeset.Changelog> => {
|
68
72
|
const changesets: GraphqlChangeset.ChangeSet[] = []
|
69
73
|
|
70
74
|
for (let i = 0; i < config.versions.length; i++) {
|
@@ -82,28 +86,33 @@ export const createSchemaSource = (config: SchemaSourceConfig) => {
|
|
82
86
|
|
83
87
|
if (changelogData) {
|
84
88
|
const prevVersion = config.versions[i + 1]
|
85
|
-
const prevSchema = prevVersion ? await get(prevVersion) : null
|
86
89
|
|
87
|
-
if (
|
90
|
+
if (prevVersion) {
|
91
|
+
const prevSchema = await get(prevVersion)
|
88
92
|
changesets.push({
|
89
|
-
|
90
|
-
|
91
|
-
|
93
|
+
type: 'IntermediateChangeSet',
|
94
|
+
after: { data: schema, version },
|
95
|
+
before: { data: prevSchema, version: prevVersion },
|
96
|
+
changes: GraphqlChangeset.isIntermediateChangeSet(changelogData) ? changelogData.changes : [],
|
92
97
|
date: new Date(changelogData.date),
|
93
98
|
})
|
94
99
|
}
|
95
100
|
} else {
|
96
101
|
// Oldest version - no changelog, use existing utility
|
97
102
|
changesets.push({
|
98
|
-
|
99
|
-
before: Grafaid.Schema.empty,
|
100
|
-
changes: [],
|
103
|
+
type: 'InitialChangeSet',
|
101
104
|
date: Schema.versionStringToDate(version),
|
105
|
+
after: { data: schema, version },
|
102
106
|
})
|
103
107
|
}
|
104
108
|
}
|
105
109
|
|
106
|
-
return changesets
|
110
|
+
return changesets as GraphqlChangeset.Changelog
|
111
|
+
}
|
112
|
+
|
113
|
+
const getLifecycle = async (): Promise<SchemaLifecycle.SchemaLifecycle> => {
|
114
|
+
const content = await ioReadMemoized(getLifecyclePath())
|
115
|
+
return SchemaLifecycle.fromJson(content)
|
107
116
|
}
|
108
117
|
|
109
118
|
return {
|
@@ -119,6 +128,7 @@ export const createSchemaSource = (config: SchemaSourceConfig) => {
|
|
119
128
|
get,
|
120
129
|
getChangelog,
|
121
130
|
getAllChangesets,
|
131
|
+
getLifecycle,
|
122
132
|
|
123
133
|
// Expose the memoized reader's clear method
|
124
134
|
clearCache: ioReadMemoized.clear,
|
@@ -129,8 +139,15 @@ export const createSchemaSource = (config: SchemaSourceConfig) => {
|
|
129
139
|
await ioWrite(getSchemaPath(version), JSON.stringify(ast))
|
130
140
|
},
|
131
141
|
|
132
|
-
writeChangelog: async (version: string, changelog:
|
133
|
-
await ioWrite(
|
142
|
+
writeChangelog: async (version: string, changelog: GraphqlChangeset.ChangeSet) => {
|
143
|
+
await ioWrite(
|
144
|
+
getChangelogPath(version),
|
145
|
+
GraphqlChangeset.toJson(changelog),
|
146
|
+
)
|
147
|
+
},
|
148
|
+
|
149
|
+
writeLifecycle: async (lifecycle: SchemaLifecycle.SchemaLifecycle) => {
|
150
|
+
await ioWrite(getLifecyclePath(), SchemaLifecycle.toJson(lifecycle))
|
134
151
|
},
|
135
152
|
|
136
153
|
// Directory operations
|
@@ -157,33 +174,43 @@ export const createSchemaSource = (config: SchemaSourceConfig) => {
|
|
157
174
|
},
|
158
175
|
|
159
176
|
writeAllAssets: async (
|
160
|
-
|
177
|
+
changelog: GraphqlChangeset.Changelog,
|
161
178
|
metadata: Schema.SchemaMetadata,
|
179
|
+
lifecycle?: SchemaLifecycle.SchemaLifecycle,
|
162
180
|
) => {
|
163
|
-
if (!
|
181
|
+
if (!changelog) return
|
164
182
|
|
165
183
|
// Write schema and changelog files
|
166
|
-
for (const [index,
|
167
|
-
const versionName = index === 0 ? Schema.VERSION_LATEST : Schema.dateToVersionString(
|
184
|
+
for (const [index, changeset] of changelog.entries()) {
|
185
|
+
const versionName = index === 0 ? Schema.VERSION_LATEST : Schema.dateToVersionString(changeset.date)
|
168
186
|
|
169
187
|
// Write schema file
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
188
|
+
if (changeset.after?.data) {
|
189
|
+
await ioWrite(
|
190
|
+
getSchemaPath(versionName),
|
191
|
+
JSON.stringify(Grafaid.Schema.AST.parse(Grafaid.Schema.print(changeset.after.data))),
|
192
|
+
)
|
193
|
+
}
|
174
194
|
|
175
|
-
// Write changelog file
|
176
|
-
if (
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
await ioWrite(getChangelogPath(versionName), JSON.stringify(changelogData))
|
195
|
+
// Write changelog file only for intermediate changesets
|
196
|
+
if (GraphqlChangeset.isIntermediateChangeSet(changeset)) {
|
197
|
+
await ioWrite(
|
198
|
+
getChangelogPath(versionName),
|
199
|
+
GraphqlChangeset.toJson(changeset),
|
200
|
+
)
|
182
201
|
}
|
183
202
|
}
|
184
203
|
|
185
204
|
// Write metadata file
|
186
205
|
await ioWrite(getMetadataPath(), JSON.stringify(metadata, null, 2))
|
206
|
+
|
207
|
+
// Write lifecycle file if provided
|
208
|
+
if (lifecycle) {
|
209
|
+
await ioWrite(
|
210
|
+
getLifecyclePath(),
|
211
|
+
SchemaLifecycle.toJson(lifecycle),
|
212
|
+
)
|
213
|
+
}
|
187
214
|
},
|
188
215
|
}
|
189
216
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Config } from '#api/config/index'
|
2
2
|
import type { PolenBuildManifest } from '#api/static/manifest'
|
3
3
|
import { Vite } from '#dep/vite/index'
|
4
|
-
import { ViteVirtual } from '#lib/vite-virtual
|
4
|
+
import { ViteVirtual } from '#lib/vite-virtual'
|
5
5
|
import { debugPolen } from '#singletons/debug'
|
6
6
|
import { Fs, Path } from '@wollybeard/kit'
|
7
7
|
import packageJson from '../../../../package.json' with { type: 'json' }
|
@@ -1,15 +1,16 @@
|
|
1
1
|
import type { Config } from '#api/config/index'
|
2
2
|
import { Content } from '#api/content/$'
|
3
|
-
import { createNavbar } from '#api/content/navbar'
|
3
|
+
import { createNavbar, type NavbarItem } from '#api/content/navbar'
|
4
4
|
import { Api } from '#api/index'
|
5
5
|
import { VitePluginSelfContainedMode } from '#cli/_/self-contained-mode'
|
6
6
|
import type { ReactRouter } from '#dep/react-router/index'
|
7
7
|
import type { Vite } from '#dep/vite/index'
|
8
|
-
import { VitePluginJson } from '#lib/vite-plugin-json
|
9
|
-
import { ViteVirtual } from '#lib/vite-virtual
|
8
|
+
import { VitePluginJson } from '#lib/vite-plugin-json'
|
9
|
+
import { ViteVirtual } from '#lib/vite-virtual'
|
10
10
|
import { debugPolen } from '#singletons/debug'
|
11
11
|
import { superjson } from '#singletons/superjson'
|
12
12
|
import { Json, Str } from '@wollybeard/kit'
|
13
|
+
import { fileURLToPath } from 'node:url'
|
13
14
|
import type { ProjectData } from '../../../project-data.js'
|
14
15
|
import { SchemaAugmentation } from '../../schema-augmentation/index.js'
|
15
16
|
import { Schema } from '../../schema/index.js'
|
@@ -21,6 +22,7 @@ const viTemplateVariables = polenVirtual([`template`, `variables`])
|
|
21
22
|
const viTemplateSchemaAugmentations = polenVirtual([`template`, `schema-augmentations`])
|
22
23
|
export const viProjectData = polenVirtual([`project`, `data.jsonsuper`], { allowPluginProcessing: true })
|
23
24
|
export const viProjectSchema = polenVirtual([`project`, `schema.jsonsuper`], { allowPluginProcessing: true })
|
25
|
+
export const viProjectHooks = polenVirtual([`project`, `hooks`], { allowPluginProcessing: true })
|
24
26
|
|
25
27
|
export interface ProjectRoutesModule {
|
26
28
|
routes: ReactRouter.RouteObject[]
|
@@ -37,7 +39,9 @@ export const Core = (config: Config.Config): Vite.PluginOption[] => {
|
|
37
39
|
})
|
38
40
|
// todo: augmentations scoped to a version
|
39
41
|
schemaResult.data?.forEach(version => {
|
40
|
-
|
42
|
+
if (version.after) {
|
43
|
+
SchemaAugmentation.apply(version.after.data, config.schemaAugmentations)
|
44
|
+
}
|
41
45
|
})
|
42
46
|
schemaCache = schemaResult
|
43
47
|
}
|
@@ -60,7 +64,7 @@ export const Core = (config: Config.Config): Vite.PluginOption[] => {
|
|
60
64
|
const jsonsuper = VitePluginJson.create({
|
61
65
|
codec: {
|
62
66
|
validate: superjson,
|
63
|
-
importPath:
|
67
|
+
importPath: `#singletons/superjson`,
|
64
68
|
importExport: `superjson`,
|
65
69
|
},
|
66
70
|
filter: {
|
@@ -104,10 +108,16 @@ export const Core = (config: Config.Config): Vite.PluginOption[] => {
|
|
104
108
|
const match = Str.match(id, find)
|
105
109
|
if (!match) return null
|
106
110
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
+
// Use Node's resolver to handle package.json imports correctly
|
112
|
+
try {
|
113
|
+
const resolved = import.meta.resolve(id)
|
114
|
+
const to = fileURLToPath(resolved)
|
115
|
+
// debug(`did resolve`, { from: id, to })
|
116
|
+
return to
|
117
|
+
} catch {
|
118
|
+
// If resolution fails, return null to let other resolvers handle it
|
119
|
+
return null
|
120
|
+
}
|
111
121
|
},
|
112
122
|
},
|
113
123
|
jsonsuper,
|
@@ -189,7 +199,7 @@ export const Core = (config: Config.Config): Vite.PluginOption[] => {
|
|
189
199
|
|
190
200
|
const schemaResult = await readSchema()
|
191
201
|
|
192
|
-
const navbar = []
|
202
|
+
const navbar: NavbarItem[] = []
|
193
203
|
|
194
204
|
// ━ Schema presence causes adding some navbar items
|
195
205
|
if (schemaResult.data) {
|
@@ -198,9 +208,9 @@ export const Core = (config: Config.Config): Vite.PluginOption[] => {
|
|
198
208
|
// hydration mismatches between SSR (where base path is prepended) and client
|
199
209
|
// (where basename is configured). This ensures consistent behavior.
|
200
210
|
const referencePath = Api.Schema.Routing.createReferenceBasePath()
|
201
|
-
navbar.push({ pathExp: referencePath, title: `Reference
|
211
|
+
navbar.push({ pathExp: referencePath, title: `Reference`, position: 'left' })
|
202
212
|
if (schemaResult.data.length > 1) {
|
203
|
-
navbar.push({ pathExp: `/changelog`, title: `Changelog
|
213
|
+
navbar.push({ pathExp: `/changelog`, title: `Changelog`, position: 'right' })
|
204
214
|
}
|
205
215
|
}
|
206
216
|
|
@@ -229,6 +239,35 @@ export const Core = (config: Config.Config): Vite.PluginOption[] => {
|
|
229
239
|
return superjson.stringify(projectData)
|
230
240
|
},
|
231
241
|
},
|
242
|
+
{
|
243
|
+
identifier: viProjectHooks,
|
244
|
+
async loader() {
|
245
|
+
const fs = await import('node:fs/promises')
|
246
|
+
const path = await import('node:path')
|
247
|
+
|
248
|
+
const hooksPathTs = path.join(config.paths.project.rootDir, 'hooks.ts')
|
249
|
+
const hooksPathTsx = path.join(config.paths.project.rootDir, 'hooks.tsx')
|
250
|
+
|
251
|
+
let hooksPath = null
|
252
|
+
try {
|
253
|
+
await fs.access(hooksPathTsx)
|
254
|
+
hooksPath = hooksPathTsx
|
255
|
+
} catch {
|
256
|
+
try {
|
257
|
+
await fs.access(hooksPathTs)
|
258
|
+
hooksPath = hooksPathTs
|
259
|
+
} catch {
|
260
|
+
// No hooks file found
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
if (!hooksPath) {
|
265
|
+
return `export const navbar = null`
|
266
|
+
}
|
267
|
+
|
268
|
+
return `export * from '${hooksPath}'`
|
269
|
+
},
|
270
|
+
},
|
232
271
|
),
|
233
272
|
},
|
234
273
|
]
|
@@ -2,8 +2,8 @@ import type { Config } from '#api/config/index'
|
|
2
2
|
import { Content } from '#api/content/$'
|
3
3
|
import { polenVirtual } from '#api/vite/vi'
|
4
4
|
import type { Vite } from '#dep/vite/index'
|
5
|
+
import { FileRouter } from '#lib/file-router'
|
5
6
|
import { reportDiagnostics } from '#lib/file-router/diagnostic-reporter'
|
6
|
-
import { FileRouter } from '#lib/file-router/index'
|
7
7
|
import { debugPolen } from '#singletons/debug'
|
8
8
|
import { superjson } from '#singletons/superjson'
|
9
9
|
import mdx from '@mdx-js/rollup'
|