Skip to content

Commit

Permalink
chore: Upgrade dependencies (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes authored Jun 17, 2022
1 parent 7837356 commit 8d4e5bc
Show file tree
Hide file tree
Showing 17 changed files with 638 additions and 692 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
)

config.module.rules[0].use[0].options.plugins.push(
require.resolve('@vtex/graphql-utils/babel')
require.resolve('@faststore/graphql-utils/babel')
)

config.resolve.plugins = [
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Upgrade dependencies ([#114](https://github.com/vtex-sites/gatsby.store/pull/114))
- Storybook's version from 6.4.20 to 6.5.9 ([#109](https://github.com/vtex-sites/gatsby.store/pull/109))
- Unifies `Link` component usage by adding support for both external and client-side links ([#103](https://github.com/vtex-sites/gatsby.store/pull/103))

Expand Down
2 changes: 1 addition & 1 deletion codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ generates:
- typescript-operations
./@generated/graphql/persisted.json:
plugins:
- '@vtex/graphql-utils/codegen'
- '@faststore/graphql-utils/codegen'
2 changes: 1 addition & 1 deletion gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const onCreateBabelConfig: GatsbyNode['onCreateBabelConfig'] = ({
actions,
}) => {
actions.setBabelPlugin({
name: `@vtex/graphql-utils/babel`,
name: `@faststore/graphql-utils/babel`,
options: {},
})
}
Expand Down
4 changes: 2 additions & 2 deletions lighthouserc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const VTEXLHConfig = require('@vtex/lighthouse-config').default
const lhConfig = require('@faststore/lighthouse').default

const { lighthouse: lh } = require('./store.config')

module.exports = VTEXLHConfig({
module.exports = lhConfig({
urls: Object.values(lh.pages),
server: lh.server,
assertions: {
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,36 +25,37 @@
"node": ">=14"
},
"dependencies": {
"@builder.io/partytown": "^0.5.4",
"@builder.io/partytown": "^0.6.1",
"@envelop/core": "^1.2.0",
"@envelop/graphql-jit": "^1.1.1",
"@envelop/parser-cache": "^2.2.0",
"@envelop/validation-cache": "^2.2.0",
"@faststore/api": "^1.9.7",
"@faststore/graphql-utils": "^1.9.4",
"@faststore/sdk": "^1.9.4",
"@faststore/ui": "^1.9.4",
"@vtex/graphql-utils": "^1.8.42",
"gatsby": "^4.14.1",
"gatsby-plugin-gatsby-cloud": "^4.14.0",
"gatsby-plugin-manifest": "^4.14.0",
"gatsby-plugin-netlify": "^4.4.0",
"gatsby": "^4.16.0",
"gatsby-plugin-gatsby-cloud": "^4.16.0",
"gatsby-plugin-manifest": "^4.16.0",
"gatsby-plugin-netlify": "^5.0.0",
"gatsby-plugin-next-seo": "^1.10.0",
"gatsby-plugin-nprogress": "^4.14.0",
"gatsby-plugin-nprogress": "^4.16.0",
"gatsby-plugin-robots-txt": "^1.7.1",
"gatsby-plugin-root-import": "^2.0.8",
"gatsby-plugin-sass": "^5.14.0",
"gatsby-plugin-sass": "^5.16.0",
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.27",
"include-media": "^1.4.10",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-helmet-async": "^1.3.0",
"react-intersection-observer": "^9.1.0",
"react-intersection-observer": "^9.3.3",
"sass": "^1.44.0",
"swr": "^1.3.0"
},
"devDependencies": {
"@babel/core": "^7.17.8",
"@cypress/code-coverage": "^3.9.10",
"@faststore/lighthouse": "^1.9.4",
"@graphql-codegen/cli": "^2.2.1",
"@graphql-codegen/typescript": "^2.2.4",
"@graphql-codegen/typescript-operations": "^2.1.8",
Expand All @@ -69,7 +70,6 @@
"@storybook/react": "^6.5.9",
"@testing-library/cypress": "^8.0.0",
"@types/cypress": "^1.1.3",
"@vtex/lighthouse-config": "^1.8.42",
"@vtex/prettier-config": "1.0.0",
"@vtex/tsconfig": "0.6.0",
"autoprefixer": "^10.4.0",
Expand Down Expand Up @@ -97,7 +97,7 @@
"stylelint-order": "^5.0.0",
"stylelint-scss": "^4.0.1",
"tsconfig-paths-webpack-plugin": "^3.5.2",
"typescript": "^4.6.2"
"typescript": "^4.7.3"
},
"resolutions": {
"@typescript-eslint/parser": "^4",
Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/ProductGallery/useGalleryQuery.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useSearch } from '@faststore/sdk'
import { gql } from '@vtex/graphql-utils'
import { gql } from '@faststore/graphql-utils'
import { useQuery } from 'src/sdk/graphql/useQuery'
import type {
ProductGalleryQueryQuery as Query,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[...slug].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { parseSearchState, SearchProvider, useSession } from '@faststore/sdk'
import { gql } from '@vtex/graphql-utils'
import { gql } from '@faststore/graphql-utils'
import { graphql } from 'gatsby'
import { BreadcrumbJsonLd, GatsbySeo } from 'gatsby-plugin-next-seo'
import { useMemo } from 'react'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[slug]/p.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useSession } from '@faststore/sdk'
import { gql } from '@vtex/graphql-utils'
import { gql } from '@faststore/graphql-utils'
import { graphql } from 'gatsby'
import {
BreadcrumbJsonLd,
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/cart/validate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { gql } from '@vtex/graphql-utils'
import { gql } from '@faststore/graphql-utils'
import type { CartItem as SDKCartItem, Cart as SDKCart } from '@faststore/sdk'
import type {
ValidateCartMutationMutation,
Expand Down
4 changes: 2 additions & 2 deletions src/sdk/graphql/request.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { request as baseRequest } from '@vtex/graphql-utils'
import type { RequestOptions as GraphQLRequestOptions } from '@vtex/graphql-utils'
import { request as baseRequest } from '@faststore/graphql-utils'
import type { RequestOptions as GraphQLRequestOptions } from '@faststore/graphql-utils'

export type RequestOptions = Omit<
GraphQLRequestOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/product/useProduct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
BrowserProductQueryQuery,
BrowserProductQueryQueryVariables,
} from '@generated/graphql'
import { gql } from '@vtex/graphql-utils'
import { gql } from '@faststore/graphql-utils'

import { useQuery } from '../graphql/useQuery'

Expand Down
2 changes: 1 addition & 1 deletion src/sdk/product/useProductsQuery.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useSession } from '@faststore/sdk'
import { gql } from '@vtex/graphql-utils'
import { gql } from '@faststore/graphql-utils'
import { useCallback, useMemo } from 'react'
import { ITEMS_PER_SECTION } from 'src/constants'
import type {
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/search/useSuggestions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useSession } from '@faststore/sdk'
import { gql } from '@vtex/graphql-utils'
import { gql } from '@faststore/graphql-utils'
import { useQuery } from 'src/sdk/graphql/useQuery'
import type {
SearchSuggestionsQueryQuery as Query,
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/search/useTopSearch.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useSession } from '@faststore/sdk'
import { gql } from '@vtex/graphql-utils'
import { gql } from '@faststore/graphql-utils'
import { useQuery } from 'src/sdk/graphql/useQuery'
import type {
StoreSuggestionTerm,
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/session/validate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { gql } from '@vtex/graphql-utils'
import { gql } from '@faststore/graphql-utils'
import type { Session } from '@faststore/sdk'

import type {
Expand Down
Loading

1 comment on commit 8d4e5bc

@vercel
Copy link

@vercel vercel bot commented on 8d4e5bc Jun 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Creating the Deployment Timed Out.

Please sign in to comment.