openfoodfacts / openfoodfacts-explorer

An alternative frontend for OpenFoodFacts, made with SvelteKit
https://openfoodfacts-explorer.vercel.app/
5 stars 1 forks source link

Bump openapi-typescript from 6.7.6 to 7.0.2 #87

Closed dependabot[bot] closed 4 months ago

dependabot[bot] commented 4 months ago

Bumps openapi-typescript from 6.7.6 to 7.0.2.

Release notes

Sourced from openapi-typescript's releases.

openapi-typescript@7.0.2

Patch Changes

openapi-typescript@7.0.1

Patch Changes

openapi-typescript@7.0.0

Major Changes

  • 6d1eb32 Thanks @​drwpow! - ⚠️ Breaking: The Node.js API now returns the TypeScript AST for the main method as well as transform() and postTransform(). To migrate, you’ll have to use the typescript compiler API:

    + import ts from "typescript";
    
    • const DATE = ts.factory.createIdentifier("Date");

    • const NULL = ts.factory.createLiteralTypeNode(ts.factory.createNull());

      const ast = await openapiTS(mySchema, { transform(schemaObject, metadata) { if (schemaObject.format === "date-time") {

    •   return schemaObject.nullable ? "Date | null" : "Date";
      
    •   return schemaObject.nullable
      
    •     ? ts.factory.createUnionTypeNode([DATE, NULL])
      
    •     : DATE;
      }
      
      }, };

Though it’s more verbose, it’s also more powerful, as now you have access to additional properties of the generated code you didn’t before (such as injecting comments).

For example syntax, search this codebae to see how the TypeScript AST is used.

Also see AST Explorer’s typescript parser to inspect how TypeScript is interpreted as an AST.

  • 6d1eb32 Thanks @​drwpow! - ⚠️ Breaking: Changing of several CLI flags and Node.js API options

    • The --auth, --httpHeaders, --httpMethod, and fetch (Node.js-only) options were all removed from the CLI and Node.js API
    • --immutable-types has been renamed to --immutable
    • --support-array-length has been renamed to --array-length
  • fbaf96d Thanks @​drwpow! - ⚠️ Breaking: Remove globbing schemas in favor of redocly.yaml config. Specify multiple schemas with outputs in there instead. See Multiple schemas for more info.

  • ... (truncated)

    Changelog

    Sourced from openapi-typescript's changelog.

    7.0.2

    Patch Changes

    7.0.1

    Patch Changes

    7.0.0

    Major Changes

    • 6d1eb32 Thanks @​drwpow! - ⚠️ Breaking: The Node.js API now returns the TypeScript AST for the main method as well as transform() and postTransform(). To migrate, you’ll have to use the typescript compiler API:

      + import ts from "typescript";
      
      • const DATE = ts.factory.createIdentifier("Date");

      • const NULL = ts.factory.createLiteralTypeNode(ts.factory.createNull());

        const ast = await openapiTS(mySchema, { transform(schemaObject, metadata) { if (schemaObject.format === "date-time") {

      •   return schemaObject.nullable ? "Date | null" : "Date";
        
      •   return schemaObject.nullable
        
      •     ? ts.factory.createUnionTypeNode([DATE, NULL])
        
      •     : DATE;
        }
        
        }, };

    Though it’s more verbose, it’s also more powerful, as now you have access to additional properties of the generated code you didn’t before (such as injecting comments).

    For example syntax, search this codebae to see how the TypeScript AST is used.

    Also see AST Explorer’s typescript parser to inspect how TypeScript is interpreted as an AST.

  • 6d1eb32 Thanks @​drwpow! - ⚠️ Breaking: Changing of several CLI flags and Node.js API options

    • The --auth, --httpHeaders, --httpMethod, and fetch (Node.js-only) options were all removed from the CLI and Node.js API
    • --immutable-types has been renamed to --immutable
    • --support-array-length has been renamed to --array-length
  • ... (truncated)

    Commits


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options
    You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    vercel[bot] commented 4 months ago

    The latest updates on your projects. Learn more about Vercel for Git ↗︎

    Name Status Preview Comments Updated (UTC)
    openfoodfacts-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2024 7:08am