Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packages for release #830

Merged
merged 3 commits into from
May 30, 2024
Merged

Packages for release #830

merged 3 commits into from
May 30, 2024

Conversation

shopify-github-actions-access[bot]
Copy link

@shopify-github-actions-access shopify-github-actions-access bot commented Apr 26, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@shopify/admin-api-client@1.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/graphql-client@1.0.0

@shopify/api-codegen-preset@1.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

  • 51f257b: Updated dependency on @shopify/graphql-codegen, which can now output regular .ts files in addition to .d.ts files, which will allow apps to import enums from the .types.ts file in their code.

    If you're using shopifyApiProject or shopifyApiTypes, you can pass in a new declarations setting, which defaults to true to maintain the previous behaviour:

    // For shopifyApiProject
    export default {
      ...
      projects: {
        default: shopifyApiProject({
          apiType: ApiType.Admin,
          apiVersion: '2023-10',
          documents: ['./app/**/*.{js,ts,jsx,tsx}'],
          outputDir: './app/types',
    +     declarations: false,
        }),
      },
    };
    
    // For shopifyApiTypes
    export default {
      ...
      projects: {
        // To produce variable / return types for Admin API operations
        schema: 'https://shopify.dev/admin-graphql-direct-proxy/2023-10',
        documents: ['./app/**/*.{js,ts,jsx,tsx}'],
        extensions: {
          codegen: {
            pluckConfig,
            generates: shopifyApiTypes({
              apiType: ApiType.Admin,
              apiVersion: '2023-10',
              documents: ['./app/**/*.{js,ts,jsx,tsx}'],
              outputDir: './app/types',
    +         declarations: false,
            }),
          },
        },
      },
    };

    If you're using the preset directly, you just need to change your output files to .ts:

    export default {
      ...
      projects: {
        default: {
          schema: 'https://shopify.dev/admin-graphql-direct-proxy',
          documents: ['./**/*.{js,ts,jsx,tsx}'],
          extensions: {
            codegen: {
              // Enables support for `#graphql` tags, as well as `/* GraphQL */`
              pluckConfig,
              generates: {
                './types/admin.schema.json': {
                  plugins: ['introspection'],
                  config: {minify: true},
                },
    -           './types/admin.types.d.ts': {
    +           './types/admin.types.ts': {
                  plugins: ['typescript'],
                },
    -           './types/admin.generated.d.ts': {
    +           './types/admin.generated.ts': {
                  preset,
                  presetConfig: {
                    apiType: ApiType.Admin,
                  },
                },
              },
            },
          },
        },
      },
    };

Patch Changes

  • faf7ad5: Use type imports in generated codegen files.
  • 4a915a0: Updated dependency on @graphql-codegen/typescript

@shopify/graphql-client@1.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

@shopify/storefront-api-client@1.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/graphql-client@1.0.0

@shopify/shopify-app-session-storage@3.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0

@shopify/shopify-app-session-storage-drizzle@2.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • ec6bdfc: Bump mysql2 from 3.9.2 to 3.9.7
  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify/shopify-app-session-storage-dynamodb@4.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • bebee38: Bump @aws-sdk/client-dynamodb from 3.533.0 to 3.577.0
  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify/shopify-app-session-storage-kv@4.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • 94bb896: Bump semver from 7.6.0 to 7.6.2
  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify/shopify-app-session-storage-memory@4.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify/shopify-app-session-storage-mongodb@4.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • e38bbca: Bump mongodb from 6.5.0 to 6.6.2
  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify/shopify-app-session-storage-mysql@4.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • ec6bdfc: Bump mysql2 from 3.9.2 to 3.9.7
  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify/shopify-app-session-storage-postgresql@4.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify/shopify-app-session-storage-prisma@5.0.0

Major Changes

  • c2da994: ## Store user information as part of the session

    With this change when using online access tokens, the user information is stored as part of the session. Previously only the user ID was stored. This will enable changing of page content or limiting of page visibility by user, as well as unlock logging users actions. This is a breaking change, as the Prisma schema has been updated to include the user information.

    For more information review the migration guide.

    The new session will include the following data:
     {
        id: 'online_session_id',
        shop: 'online-session-shop',
        state: 'online-session-state',
        isOnline: true,
        scope: 'online-session-scope',
        accessToken: 'online-session-token',
        expires: 2022-01-01T05:00:00.000Z,
        onlineAccessInfo: {
          associated_user: {
            id: 1,
            first_name: 'online-session-first-name'
            last_name: 'online-session-last-name',
            email: 'online-session-email',
            locale: 'online-session-locale',
            email_verified: false,
            account_owner: true,
            collaborator: false,
          },
        }
      }

    You will be able to access the user information on the Session object:

    const {admin, session} = await authenticate.admin(request);
    
    console.log('user id', session.onlineAccessInfo.associated_user.id);
    console.log('user email', session.onlineAccessInfo.associated_user.email);
    console.log(
      'account owner',
      session.onlineAccessInfo.associated_user.account_owner,
    );
  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • edce62f: Updated Prisma dependency to v5.14.0
  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify/shopify-app-session-storage-redis@4.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • 7c74709: Bump redis from 4.6.13 to 4.6.14
  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify/shopify-app-session-storage-sqlite@4.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify/shopify-api@11.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • b5a4735: chore:robust-typesafe-error-handling
  • 36e3c62: Add support for Node v.22

Patch Changes

  • d9f2601: Bump jose from 5.2.4 to 5.3.0

  • 92b6772: Added an is_default field to CustomerAddress so it doesn't overlap with the existing default() method we provide in the class.

    Before:

    const address = await shopify.rest.CustomerAddress.find({session, id: 1234});
    // Boolean
    console.log(address.default);
    // Error - not a function
    await address.default();

    After:

    const address = await shopify.rest.CustomerAddress.find({session, id: 1234});
    // Boolean
    console.log(address.is_default);
    // Function
    await address.default();

    To prevent breaking existing apps, this only happens when the customerAddressDefaultFix flag is enabled.

  • a42efff: Bump isbot from 5.1.4 to 5.1.6

  • 9749f45: Handle empty responses to REST requests for DELETE endpoints gracefully, instead of throwing an error when parsing the JSON.

  • Updated dependencies [36e3c62]

  • Updated dependencies [6970109]

    • @shopify/admin-api-client@1.0.0
    • @shopify/storefront-api-client@1.0.0

@shopify/shopify-app-express@5.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • 94bb896: Bump semver from 7.6.0 to 7.6.2
  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0
    • @shopify/shopify-app-session-storage-memory@4.0.0

@shopify/shopify-app-remix@3.0.0

Major Changes

  • 9ae62fc: Remove v3_authenticate_public future flag and enable functionality be default.

    See more details in the migration guide.

  • 7179ef9: Remove v3_lineItemBilling future flag and enable functionality be default.

    See more details in the migration guide.

  • 6970109: Drop support for Node 16.

  • b1e6ff0: Remove v3_webhookAdminContext future flag and enable functionality.

    See more details in the migration guide.

  • f346f03: Apps can no longer import server-side functions using the following statements:

    import '@shopify/shopify-app-remix/adapters/node';
    + import {shopifyApp} from '@shopify/shopify-app-remix';

    With the addition of React component to this package, we've separated the exports between server and react code, as in:

    import '@shopify/shopify-app-remix/server/adapters/node';
    + import {shopifyApp} from '@shopify/shopify-app-remix/server';
    - import {shopifyApp} from '@shopify/shopify-app-remix';
    import {AppProvider} from '@shopify/shopify-app-remix/react';

    See more details in the migration guide.

Minor Changes

  • a810211: Add API to Authenticate requests from customer account extensions
  • 36e3c62: Add support for Node v.22
  • 8475ae7: Made it possible to create types for the context objects returned by the various authenticate methods from the actual shopifyApp object. With this, apps can pass the contexts and their components as function arguments much more easily.

Patch Changes

  • 5c72853: Added debugging for request information when we fail to find a session during app proxy authentication.
  • a42efff: Bump isbot from 5.1.4 to 5.1.6
  • e305364: Invalidating accessToken instead of deleting the record when handling 401 errors
  • 94bb896: Bump semver from 7.6.0 to 7.6.2
  • Updated dependencies [d9f2601]
  • Updated dependencies [92b6772]
  • Updated dependencies [b5a4735]
  • Updated dependencies [a42efff]
  • Updated dependencies [9749f45]
  • Updated dependencies [36e3c62]
  • Updated dependencies [6970109]
    • @shopify/shopify-api@11.0.0
    • @shopify/admin-api-client@1.0.0
    • @shopify/storefront-api-client@1.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify/shopify-app-session-storage-test-utils@3.0.0

Major Changes

  • 6970109: Drop support for Node 16.

Minor Changes

  • 36e3c62: Add support for Node v.22

Patch Changes

  • c2da994: ## Store user information as part of the session

    With this change when using online access tokens, the user information is stored as part of the session. Previously only the user ID was stored. This will enable changing of page content or limiting of page visibility by user, as well as unlock logging users actions. This is a breaking change, as the Prisma schema has been updated to include the user information.

    For more information review the migration guide.

    The new session will include the following data:
     {
        id: 'online_session_id',
        shop: 'online-session-shop',
        state: 'online-session-state',
        isOnline: true,
        scope: 'online-session-scope',
        accessToken: 'online-session-token',
        expires: 2022-01-01T05:00:00.000Z,
        onlineAccessInfo: {
          associated_user: {
            id: 1,
            first_name: 'online-session-first-name'
            last_name: 'online-session-last-name',
            email: 'online-session-email',
            locale: 'online-session-locale',
            email_verified: false,
            account_owner: true,
            collaborator: false,
          },
        }
      }

    You will be able to access the user information on the Session object:

    const {admin, session} = await authenticate.admin(request);
    
    console.log('user id', session.onlineAccessInfo.associated_user.id);
    console.log('user email', session.onlineAccessInfo.associated_user.email);
    console.log(
      'account owner',
      session.onlineAccessInfo.associated_user.account_owner,
    );
  • Updated dependencies [d9f2601]

  • Updated dependencies [92b6772]

  • Updated dependencies [b5a4735]

  • Updated dependencies [a42efff]

  • Updated dependencies [9749f45]

  • Updated dependencies [36e3c62]

  • Updated dependencies [6970109]

    • @shopify/shopify-api@11.0.0
    • @shopify/shopify-app-session-storage@3.0.0

@shopify-github-actions-access shopify-github-actions-access bot requested a review from a team as a code owner April 26, 2024 17:25
@github-actions github-actions bot force-pushed the changeset-release/main branch 10 times, most recently from b5c2332 to 51b542b Compare May 3, 2024 14:49
@github-actions github-actions bot force-pushed the changeset-release/main branch 6 times, most recently from c9b22d2 to 2701280 Compare May 10, 2024 21:11
@github-actions github-actions bot force-pushed the changeset-release/main branch 11 times, most recently from 32211ee to 4a4bec7 Compare May 22, 2024 17:23
@github-actions github-actions bot force-pushed the changeset-release/main branch 2 times, most recently from 02a8f73 to 4ebc760 Compare May 22, 2024 18:50
@github-actions github-actions bot force-pushed the changeset-release/main branch 14 times, most recently from 347cc5f to 308a137 Compare May 30, 2024 18:46
@lizkenyon lizkenyon merged commit a5a532e into main May 30, 2024
38 checks passed
@lizkenyon lizkenyon deleted the changeset-release/main branch May 30, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants