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
@@ -0,0 +1,222 @@
|
|
1
|
+
import { buildSchema } from 'graphql'
|
2
|
+
import { describe, expect, it } from 'vitest'
|
3
|
+
import { SchemaLifecycle } from './$.js'
|
4
|
+
|
5
|
+
// Test fixtures
|
6
|
+
const date1 = new Date('2024-01-01')
|
7
|
+
const date2 = new Date('2024-02-01')
|
8
|
+
const schemas = {
|
9
|
+
simple: buildSchema(`type Query { hello: String } type User { id: ID! name: String! }`),
|
10
|
+
extended: buildSchema(`type Query { hello: String world: String } type User { id: ID! name: String! email: String }`),
|
11
|
+
withIVStats: buildSchema(`
|
12
|
+
type Query { hello: String world: String }
|
13
|
+
type User { id: ID! name: String! email: String }
|
14
|
+
type IVStats { hp: Int! attack: Int! defense: Int! }
|
15
|
+
`),
|
16
|
+
}
|
17
|
+
|
18
|
+
// Helper to create initial changelog
|
19
|
+
const createChangelog = (schema = schemas.simple, date = date1): any => [{
|
20
|
+
type: 'InitialChangeSet',
|
21
|
+
date,
|
22
|
+
after: { version: 'v1', data: schema },
|
23
|
+
}]
|
24
|
+
|
25
|
+
describe('create', () => {
|
26
|
+
it('creates lifecycle for initial schema types and fields', () => {
|
27
|
+
const lifecycle = SchemaLifecycle.create(createChangelog() as any) as any
|
28
|
+
|
29
|
+
// Check types
|
30
|
+
const userTypes = Object.keys(lifecycle.data).filter(t => !['String', 'ID', 'Boolean', 'Int', 'Float'].includes(t))
|
31
|
+
expect(userTypes).toEqual(['Query', 'User'])
|
32
|
+
|
33
|
+
// Check Query fields
|
34
|
+
expect(Object.keys(lifecycle.data.Query.fields)).toEqual(['hello'])
|
35
|
+
expect(lifecycle.data.Query.fields.hello).toMatchObject({
|
36
|
+
name: 'hello',
|
37
|
+
events: [{ type: 'added', date: date1 }],
|
38
|
+
})
|
39
|
+
|
40
|
+
// Check User fields
|
41
|
+
expect(Object.keys(lifecycle.data.User.fields)).toEqual(['id', 'name'])
|
42
|
+
expect(lifecycle.data.User.fields.id.name).toBe('id')
|
43
|
+
expect(lifecycle.data.User.fields.name.name).toBe('name')
|
44
|
+
})
|
45
|
+
|
46
|
+
it('handles TYPE_ADDED with fields populated', () => {
|
47
|
+
const changelog = [
|
48
|
+
...createChangelog(),
|
49
|
+
{
|
50
|
+
type: 'IntermediateChangeSet',
|
51
|
+
date: date2,
|
52
|
+
before: { version: 'v1', data: schemas.simple },
|
53
|
+
after: { version: 'v2', data: schemas.withIVStats },
|
54
|
+
changes: [{
|
55
|
+
type: 'TYPE_ADDED',
|
56
|
+
path: 'IVStats',
|
57
|
+
criticality: { level: 'NON_BREAKING' } as any,
|
58
|
+
message: 'Type IVStats was added',
|
59
|
+
meta: { addedTypeName: 'IVStats' },
|
60
|
+
}],
|
61
|
+
},
|
62
|
+
]
|
63
|
+
const lifecycle = SchemaLifecycle.create(changelog as any) as any
|
64
|
+
const ivStats = lifecycle.data.IVStats
|
65
|
+
|
66
|
+
expect(ivStats.kind).toBe('Object')
|
67
|
+
expect(Object.keys(ivStats.fields)).toEqual(['hp', 'attack', 'defense'])
|
68
|
+
expect(ivStats.fields.hp).toMatchObject({ name: 'hp', events: [{ type: 'added', date: date2 }] })
|
69
|
+
})
|
70
|
+
|
71
|
+
it('handles field additions', () => {
|
72
|
+
const changelog = [
|
73
|
+
...createChangelog(),
|
74
|
+
{
|
75
|
+
type: 'IntermediateChangeSet',
|
76
|
+
date: date2,
|
77
|
+
before: { version: 'v1', data: schemas.simple },
|
78
|
+
after: { version: 'v2', data: schemas.extended },
|
79
|
+
changes: [
|
80
|
+
{
|
81
|
+
type: 'FIELD_ADDED',
|
82
|
+
path: 'Query.world',
|
83
|
+
criticality: { level: 'NON_BREAKING' } as any,
|
84
|
+
message: '',
|
85
|
+
meta: { typeName: 'Query', addedFieldName: 'world', typeType: 'object type' },
|
86
|
+
},
|
87
|
+
{
|
88
|
+
type: 'FIELD_ADDED',
|
89
|
+
path: 'User.email',
|
90
|
+
criticality: { level: 'NON_BREAKING' } as any,
|
91
|
+
message: '',
|
92
|
+
meta: { typeName: 'User', addedFieldName: 'email', typeType: 'object type' },
|
93
|
+
},
|
94
|
+
],
|
95
|
+
},
|
96
|
+
]
|
97
|
+
const lifecycle = SchemaLifecycle.create(changelog as any) as any
|
98
|
+
|
99
|
+
expect(lifecycle.data.Query.fields.world).toMatchObject({ name: 'world', events: [{ type: 'added', date: date2 }] })
|
100
|
+
expect(lifecycle.data.User.fields.email).toMatchObject({ name: 'email', events: [{ type: 'added', date: date2 }] })
|
101
|
+
})
|
102
|
+
|
103
|
+
it('handles field additions to existing type without explicit FIELD_ADDED events', () => {
|
104
|
+
// Simulate a scenario where fields are added but no explicit FIELD_ADDED events exist
|
105
|
+
const trainerV1 = buildSchema(`
|
106
|
+
type Query { hello: String }
|
107
|
+
type Trainer {
|
108
|
+
id: ID!
|
109
|
+
name: String!
|
110
|
+
}
|
111
|
+
`)
|
112
|
+
const trainerV2 = buildSchema(`
|
113
|
+
type Query { hello: String }
|
114
|
+
type Trainer {
|
115
|
+
id: ID!
|
116
|
+
name: String!
|
117
|
+
battleRecord: String!
|
118
|
+
money: Int!
|
119
|
+
}
|
120
|
+
`)
|
121
|
+
|
122
|
+
const changelog = [
|
123
|
+
{ type: 'InitialChangeSet', date: date1, after: { version: 'v1', data: trainerV1 } },
|
124
|
+
{
|
125
|
+
type: 'IntermediateChangeSet',
|
126
|
+
date: date2,
|
127
|
+
before: { version: 'v1', data: trainerV1 },
|
128
|
+
after: { version: 'v2', data: trainerV2 },
|
129
|
+
changes: [
|
130
|
+
// No explicit FIELD_ADDED events - simulating the missing lifecycle scenario
|
131
|
+
],
|
132
|
+
},
|
133
|
+
]
|
134
|
+
const lifecycle = SchemaLifecycle.create(changelog as any) as any
|
135
|
+
|
136
|
+
// Original fields should have lifecycle info
|
137
|
+
expect(lifecycle.data.Trainer.fields.id).toMatchObject({ name: 'id', events: [{ type: 'added', date: date1 }] })
|
138
|
+
expect(lifecycle.data.Trainer.fields.name).toMatchObject({ name: 'name', events: [{ type: 'added', date: date1 }] })
|
139
|
+
|
140
|
+
// New fields without FIELD_ADDED events should NOT have lifecycle info
|
141
|
+
expect(lifecycle.data.Trainer.fields.battleRecord).toBeUndefined()
|
142
|
+
expect(lifecycle.data.Trainer.fields.money).toBeUndefined()
|
143
|
+
})
|
144
|
+
})
|
145
|
+
|
146
|
+
describe('serialization', () => {
|
147
|
+
it('preserves field lifecycle data through serialization', () => {
|
148
|
+
const schema = buildSchema(`
|
149
|
+
type Query { hello: String }
|
150
|
+
type IVStats {
|
151
|
+
hp: Int!
|
152
|
+
attack: Int!
|
153
|
+
defense: Int!
|
154
|
+
}
|
155
|
+
`)
|
156
|
+
|
157
|
+
const changelog = [{
|
158
|
+
type: 'InitialChangeSet',
|
159
|
+
date: date1,
|
160
|
+
after: { version: 'v1', data: schema },
|
161
|
+
}]
|
162
|
+
|
163
|
+
const lifecycle = SchemaLifecycle.create(changelog as any)
|
164
|
+
|
165
|
+
// Check fields exist before serialization
|
166
|
+
const ivStatsBefore = lifecycle.data['IVStats'] as any
|
167
|
+
expect(ivStatsBefore?.fields).toBeDefined()
|
168
|
+
expect(Object.keys(ivStatsBefore?.fields || {})).toEqual(['hp', 'attack', 'defense'])
|
169
|
+
|
170
|
+
// Serialize and deserialize
|
171
|
+
const json = SchemaLifecycle.toJson(lifecycle)
|
172
|
+
const parsed = SchemaLifecycle.fromJson(json)
|
173
|
+
|
174
|
+
// Check fields exist after deserialization
|
175
|
+
const ivStatsAfter = parsed.data['IVStats'] as any
|
176
|
+
expect(ivStatsAfter?.fields).toBeDefined()
|
177
|
+
expect(Object.keys(ivStatsAfter?.fields || {})).toEqual(['hp', 'attack', 'defense'])
|
178
|
+
})
|
179
|
+
|
180
|
+
it('toJson/fromJson preserves dates and nullifies schemas', () => {
|
181
|
+
const lifecycle = SchemaLifecycle.create(createChangelog())
|
182
|
+
const json = SchemaLifecycle.toJson(lifecycle)
|
183
|
+
const parsed = SchemaLifecycle.fromJson(json) as any
|
184
|
+
|
185
|
+
// Check dates are preserved
|
186
|
+
expect(parsed.data.Query.events[0].date).toEqual(date1)
|
187
|
+
expect(parsed.data.Query.fields.hello.events[0].date).toEqual(date1)
|
188
|
+
|
189
|
+
// Check schemas are nullified by codec
|
190
|
+
expect(parsed.data.Query.events[0].schema.data).toBeNull()
|
191
|
+
expect(parsed.data.Query.fields.hello.events[0].schema.data).toBeNull()
|
192
|
+
})
|
193
|
+
})
|
194
|
+
|
195
|
+
describe('getters', () => {
|
196
|
+
const schemaWithoutUser = buildSchema(`type Query { hello: String }`)
|
197
|
+
const changelog = [
|
198
|
+
...createChangelog(),
|
199
|
+
{
|
200
|
+
type: 'IntermediateChangeSet',
|
201
|
+
date: date2,
|
202
|
+
before: { version: 'v1', data: schemas.simple },
|
203
|
+
after: { version: 'v2', data: schemaWithoutUser },
|
204
|
+
changes: [{
|
205
|
+
type: 'TYPE_REMOVED',
|
206
|
+
path: 'User',
|
207
|
+
criticality: { level: 'BREAKING' } as any,
|
208
|
+
message: '',
|
209
|
+
meta: { removedTypeName: 'User' },
|
210
|
+
}],
|
211
|
+
},
|
212
|
+
]
|
213
|
+
const lifecycle = SchemaLifecycle.create(changelog as any)
|
214
|
+
|
215
|
+
it('getTypeLifecycle', () => expect(SchemaLifecycle.getTypeLifecycle(lifecycle, 'Query')?.name).toBe('Query'))
|
216
|
+
it('getTypeAddedDate', () => expect(SchemaLifecycle.getTypeAddedDate(lifecycle, 'Query')).toEqual(date1))
|
217
|
+
it('getTypeRemovedDate', () => expect(SchemaLifecycle.getTypeRemovedDate(lifecycle, 'User')).toEqual(date2))
|
218
|
+
it('isTypeCurrentlyAvailable', () => {
|
219
|
+
expect(SchemaLifecycle.isTypeCurrentlyAvailable(lifecycle, 'Query')).toBe(true)
|
220
|
+
expect(SchemaLifecycle.isTypeCurrentlyAvailable(lifecycle, 'User')).toBe(false)
|
221
|
+
})
|
222
|
+
})
|
@@ -0,0 +1 @@
|
|
1
|
+
export * as SchemaLifecycle from './$$.js'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { NonEmptyArray } from '#lib/kit-temp'
|
2
|
+
import type { LifecycleEventBase } from './LifecycleEvent.js'
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Field lifecycle for object and interface types
|
6
|
+
*/
|
7
|
+
export interface FieldLifecycle {
|
8
|
+
name: string
|
9
|
+
events: NonEmptyArray<LifecycleEventBase>
|
10
|
+
}
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Input field lifecycle for input object types
|
14
|
+
*/
|
15
|
+
export interface InputFieldLifecycle {
|
16
|
+
name: string
|
17
|
+
events: NonEmptyArray<LifecycleEventBase>
|
18
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Base lifecycle event
|
5
|
+
*/
|
6
|
+
export interface LifecycleEventBase {
|
7
|
+
date: Date
|
8
|
+
/**
|
9
|
+
* null if unlinked. Soemthing external should use `date` to link changeSet.
|
10
|
+
*/
|
11
|
+
changeSet: GraphqlChangeset.ChangeSet | null
|
12
|
+
schema: GraphqlChangeset.VersionableSchema
|
13
|
+
}
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Event when a type or field is added
|
17
|
+
*/
|
18
|
+
export interface AddedEvent extends LifecycleEventBase {
|
19
|
+
type: 'added'
|
20
|
+
}
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Event when a type or field is removed
|
24
|
+
*/
|
25
|
+
export interface RemovedEvent extends LifecycleEventBase {
|
26
|
+
type: 'removed'
|
27
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
import { Grafaid } from '#lib/grafaid'
|
2
|
+
import type { NonEmptyArray } from '#lib/kit-temp'
|
3
|
+
import type { FieldLifecycle, InputFieldLifecycle } from './FieldLifecycle.js'
|
4
|
+
import type { AddedEvent, LifecycleEventBase } from './LifecycleEvent.js'
|
5
|
+
|
6
|
+
/**
|
7
|
+
* Union of all possible named type lifecycles
|
8
|
+
*/
|
9
|
+
export type NamedTypeLifecycle =
|
10
|
+
| ObjectTypeLifecycle
|
11
|
+
| UnionTypeLifecycle
|
12
|
+
| InterfaceTypeLifecycle
|
13
|
+
| EnumTypeLifecycle
|
14
|
+
| ScalarTypeLifecycle
|
15
|
+
| InputObjectTypeLifecycle
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Object type lifecycle with fields
|
19
|
+
*/
|
20
|
+
export interface ObjectTypeLifecycle extends NamedTypeLifecycleBase {
|
21
|
+
kind: Grafaid.Schema.TypeKindName.Object
|
22
|
+
fields: Record<string, FieldLifecycle>
|
23
|
+
}
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Union type lifecycle (no fields)
|
27
|
+
*/
|
28
|
+
export interface UnionTypeLifecycle extends NamedTypeLifecycleBase {
|
29
|
+
kind: Grafaid.Schema.TypeKindName.Union
|
30
|
+
}
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Interface type lifecycle with fields
|
34
|
+
*/
|
35
|
+
export interface InterfaceTypeLifecycle extends NamedTypeLifecycleBase {
|
36
|
+
kind: Grafaid.Schema.TypeKindName.Interface
|
37
|
+
fields: Record<string, FieldLifecycle>
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Enum type lifecycle (no values for now)
|
42
|
+
*/
|
43
|
+
export interface EnumTypeLifecycle extends NamedTypeLifecycleBase {
|
44
|
+
kind: Grafaid.Schema.TypeKindName.Enum
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Scalar type lifecycle (no fields or values)
|
49
|
+
*/
|
50
|
+
export interface ScalarTypeLifecycle extends NamedTypeLifecycleBase {
|
51
|
+
kind: Grafaid.Schema.TypeKindName.Scalar
|
52
|
+
}
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Input object type lifecycle with input fields
|
56
|
+
*/
|
57
|
+
export interface InputObjectTypeLifecycle extends NamedTypeLifecycleBase {
|
58
|
+
kind: Grafaid.Schema.TypeKindName.InputObject
|
59
|
+
fields: Record<string, InputFieldLifecycle>
|
60
|
+
}
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Base interface for all named type lifecycles
|
64
|
+
*/
|
65
|
+
export interface NamedTypeLifecycleBase {
|
66
|
+
name: string
|
67
|
+
events: NonEmptyArray<LifecycleEventBase>
|
68
|
+
}
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Create a named type lifecycle with the correct type-specific structure
|
72
|
+
*/
|
73
|
+
export const createNamedTypeLifecycle = (
|
74
|
+
typeName: string,
|
75
|
+
kind: Grafaid.Schema.TypeKindName,
|
76
|
+
addedEvent: AddedEvent,
|
77
|
+
): NamedTypeLifecycle => {
|
78
|
+
const base = { name: typeName, events: [addedEvent] as NonEmptyArray<LifecycleEventBase> }
|
79
|
+
|
80
|
+
switch (kind) {
|
81
|
+
case Grafaid.Schema.TypeKindNameEnum.Object:
|
82
|
+
return { ...base, kind, fields: {} } as ObjectTypeLifecycle
|
83
|
+
case Grafaid.Schema.TypeKindNameEnum.Interface:
|
84
|
+
return { ...base, kind, fields: {} } as InterfaceTypeLifecycle
|
85
|
+
case Grafaid.Schema.TypeKindNameEnum.InputObject:
|
86
|
+
return { ...base, kind, fields: {} } as InputObjectTypeLifecycle
|
87
|
+
case Grafaid.Schema.TypeKindNameEnum.Union:
|
88
|
+
return { ...base, kind } as UnionTypeLifecycle
|
89
|
+
case Grafaid.Schema.TypeKindNameEnum.Enum:
|
90
|
+
return { ...base, kind } as EnumTypeLifecycle
|
91
|
+
case Grafaid.Schema.TypeKindNameEnum.Scalar:
|
92
|
+
return { ...base, kind } as ScalarTypeLifecycle
|
93
|
+
default:
|
94
|
+
throw new Error(`Unknown type kind: ${kind}`)
|
95
|
+
}
|
96
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { Grafaid } from '#lib/grafaid/$'
|
2
|
+
import { GraphqlChange } from '#lib/graphql-change'
|
3
|
+
import { GraphqlChangeset } from '#lib/graphql-changeset'
|
4
|
+
import type { GraphQLSchema } from 'graphql'
|
5
|
+
import { SuperJSON } from 'superjson'
|
6
|
+
import * as Handlers from './handlers.js'
|
7
|
+
import type { NamedTypeLifecycle } from './NamedTypeLifecycle.js'
|
8
|
+
|
9
|
+
const superjson = new SuperJSON()
|
10
|
+
|
11
|
+
// Register codec to handle GraphQL schemas - convert to null to avoid circular refs
|
12
|
+
superjson.registerCustom({
|
13
|
+
isApplicable: (v): v is GraphQLSchema => v?.constructor?.name === 'GraphQLSchema',
|
14
|
+
serialize: () => null,
|
15
|
+
deserialize: () => null,
|
16
|
+
}, 'GraphQLSchema')
|
17
|
+
|
18
|
+
// Register codec to handle ChangeSet objects - convert to null as per type design
|
19
|
+
superjson.registerCustom({
|
20
|
+
isApplicable: GraphqlChangeset.isChangeSet,
|
21
|
+
serialize: () => ({ value: null }),
|
22
|
+
deserialize: () => null,
|
23
|
+
}, 'ChangeSet')
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Schema lifecycle data structure containing all types and their evolution
|
27
|
+
*/
|
28
|
+
export interface SchemaLifecycle {
|
29
|
+
data: Record<string, NamedTypeLifecycle>
|
30
|
+
}
|
31
|
+
|
32
|
+
export type SupportedChange =
|
33
|
+
| GraphqlChange.Group.TypeOperation
|
34
|
+
| GraphqlChange.Group.FieldOperation
|
35
|
+
| GraphqlChange.Group.InputFieldOperation
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Build schema lifecycle data from changesets
|
39
|
+
*/
|
40
|
+
export const create = (
|
41
|
+
changelog: GraphqlChangeset.ChangelogLinked,
|
42
|
+
): SchemaLifecycle => {
|
43
|
+
const data: SchemaLifecycle['data'] = {}
|
44
|
+
|
45
|
+
// Process changesets in chronological order (oldest to newest)
|
46
|
+
for (const changeSet of changelog) {
|
47
|
+
if (GraphqlChangeset.isInitialChangeSetLinked(changeSet)) {
|
48
|
+
Handlers.createInitialTypeLifecycles(data, changeSet)
|
49
|
+
continue
|
50
|
+
}
|
51
|
+
|
52
|
+
for (const change of changeSet.changes) {
|
53
|
+
if (
|
54
|
+
GraphqlChange.Group.isTypeOperation(change)
|
55
|
+
|| GraphqlChange.Group.isFieldOperation(change)
|
56
|
+
|| GraphqlChange.Group.isInputFieldOperation(change)
|
57
|
+
) {
|
58
|
+
const changeGroupType = GraphqlChange.Group.getType(change)
|
59
|
+
const handler = Handlers[changeGroupType]
|
60
|
+
handler(data, change as any, changeSet)
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
return { data }
|
66
|
+
}
|
67
|
+
|
68
|
+
/**
|
69
|
+
* Convert SchemaLifecycle to JSON string
|
70
|
+
*/
|
71
|
+
export const toJson = (lifecycle: SchemaLifecycle, options?: { pretty?: boolean }): string => {
|
72
|
+
const isPretty = options?.pretty ?? true
|
73
|
+
if (isPretty) {
|
74
|
+
const serialized = superjson.serialize(lifecycle)
|
75
|
+
return JSON.stringify(serialized, null, 2)
|
76
|
+
}
|
77
|
+
return superjson.stringify(lifecycle)
|
78
|
+
}
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Parse SchemaLifecycle from JSON string
|
82
|
+
*/
|
83
|
+
export const fromJson = (json: string): SchemaLifecycle => {
|
84
|
+
return superjson.parse(json)
|
85
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
// import type { GraphQLSchema } from 'graphql'
|
2
|
+
|
3
|
+
// /**
|
4
|
+
// * Schema link for versioned schemas
|
5
|
+
// */
|
6
|
+
// export interface VersionedSchemaLink {
|
7
|
+
// type: 'versioned'
|
8
|
+
// version: string
|
9
|
+
// data: GraphQLSchema | null
|
10
|
+
// }
|
11
|
+
|
12
|
+
// /**
|
13
|
+
// * Schema link for unversioned/global schemas
|
14
|
+
// */
|
15
|
+
// export interface UnversionedSchemaLink {
|
16
|
+
// type: 'unversioned'
|
17
|
+
// data: GraphQLSchema | null
|
18
|
+
// }
|
19
|
+
|
20
|
+
// /**
|
21
|
+
// * Schema link can be either versioned or unversioned
|
22
|
+
// */
|
23
|
+
// export type SchemaLink = VersionedSchemaLink | UnversionedSchemaLink
|
24
|
+
|
25
|
+
// /**
|
26
|
+
// * Create a schema link based on version
|
27
|
+
// */
|
28
|
+
// export const createSchemaLink = (version: string | null): SchemaLink => {
|
29
|
+
// if (version === null) {
|
30
|
+
// return {
|
31
|
+
// type: 'unversioned',
|
32
|
+
// data: null,
|
33
|
+
// }
|
34
|
+
// }
|
35
|
+
// return {
|
36
|
+
// type: 'versioned',
|
37
|
+
// version,
|
38
|
+
// data: null,
|
39
|
+
// }
|
40
|
+
// }
|