Skip to content

Releases: StafflinePeoplePlus/sveltekit-graphql

v0.4.3

22 May 12:41
Compare
Choose a tag to compare

Patch Changes

  • 7fe25d9: add ability to add custom plugins to yoga

v0.4.2

15 Dec 10:43
465937c
Compare
Choose a tag to compare

Patch Changes

  • 58962e6: allow vite 5 as a peer dependency

v0.4.1

23 Nov 15:59
f64f202
Compare
Choose a tag to compare

Patch Changes

  • f75f0c1: Order sveltekitGql vite plugin above sveltekit

    Previously we were adding our vite plugin after sveltekit. This was incorrect because the houdini
    vite plugin (which is added internally) needs to come after the sveltekit plugin.

v0.4.0

22 Nov 12:29
052664e
Compare
Choose a tag to compare

Minor Changes

  • 548f57b: Add option to pass context to the Yoga GraphQL server

    This just passes the context straight to the createYoga function. It can either be an object or a
    function that takes the request context and returns an object.

    const server = createServer(schema, {
    	context: { hello: 'world' },
    });
  • dd3eac9: Write combined server schema into .sveltekit-graphql/schema.graphql and point houdini to this file.

    The include path for houdini has also been updated to prevent inclusion of any .graphql files by
    default.

  • dd3eac9: Allow configuring additional server schema files.

    By default the schema glob for the graphql server is defined as src/graphql/**/*.graphql. This can
    now be expanded by adding the additionalServerSchema property to your houdini.config.js file.

    E.g.

    import { createHoudiniConfig } from 'sveltekit-graphql/config';
    
    const config = createHoudiniConfig({
    	additionalServerSchema: ['./node_modules/my-cool-graphql-module/schema.graphql'],
    });
    
    export default config;
  • dd3eac9: Add out of the box support for the @oneOf directive

v0.3.0

08 Nov 11:34
9eb6f0d
Compare
Choose a tag to compare

Minor Changes

  • 4108ab3: Support for custom scalars in server code generation.

    Custom scalars defined in your houdini.config.js will now be picked up by the server code
    generation. By default they will be given the type string, but this can be changed by setting the
    serverType on the scalar config. Note that the type field only affects the client side type, as
    the server does not use the custom marshal/unmarshal functions defined here and so the types will
    likely differ.

    For example, here is an example with a custom Void type

    import { createHoudiniConfig } from 'sveltekit-graphql/config';
    
    const config = createHoudiniConfig({
    	scalars: {
    		Void: {
    			type: 'void',
    			serverType: 'void',
    			marshal: () => null,
    			unmarshal: () => {},
    		},
    	},
    });
    
    export default config;

v0.2.0

06 Nov 13:18
74d985a
Compare
Choose a tag to compare

Minor Changes

  • b5137bb: add utility to create houdini config in project

v0.1.3

03 Nov 13:43
f98cbd7
Compare
Choose a tag to compare

Patch Changes

  • 3fb9e2b: Add generate command to manually run codegen

v0.1.2

03 Nov 12:09
ad78ef9
Compare
Choose a tag to compare

Patch Changes

  • 1c9727f: Fix package exports for sveltekit-graphql/vite

v0.1.1

03 Nov 11:44
Compare
Choose a tag to compare

Patch Changes

  • 479e319: Also add ignore entries to .eslintignore and .prettierignore
  • 479e319: Add typescript to dependencies list as it is used in the CLI

v0.1.0

03 Nov 10:14
aae124a
Compare
Choose a tag to compare

Minor Changes