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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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/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,
    );

@shopify/shopify-app-remix@2.9.0

Minor Changes

  • a810211: Add API to Authenticate requests from customer account extensions
  • 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.
  • e305364: Invalidating accessToken instead of deleting the record when handling 401 errors
  • Updated dependencies [92b6772]
  • Updated dependencies [9749f45]
    • @shopify/shopify-api@10.0.1
    • @shopify/shopify-app-session-storage@2.1.6

@shopify/api-codegen-preset@0.0.8

Patch Changes

  • faf7ad5: Use type imports in generated codegen files.

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

Patch Changes

  • ec6bdfc: Bump mysql2 from 3.9.2 to 3.9.7

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

Patch Changes

  • ec6bdfc: Bump mysql2 from 3.9.2 to 3.9.7

@shopify/shopify-api@10.0.1

Patch Changes

  • 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.

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

@shopify/shopify-app-express@4.1.7

Patch Changes

  • Updated dependencies [92b6772]
  • Updated dependencies [9749f45]
    • @shopify/shopify-api@10.0.1
    • @shopify/shopify-app-session-storage@2.1.6
    • @shopify/shopify-app-session-storage-memory@3.0.6

@shopify/shopify-app-session-storage@2.1.6

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

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

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

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

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

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

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

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

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,
    );

@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
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

0 participants