@graphcommerce/next-config 3.0.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -79
- package/dist/index.js +14 -1
- package/package.json +6 -5
- package/src/index.ts +16 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,152 +1,146 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1341](https://github.com/graphcommerce-org/graphcommerce/pull/1341) [`47a03c6c7`](https://github.com/graphcommerce-org/graphcommerce/commit/47a03c6c764cb1f544d3de3af52456608694a9d7) Thanks [@paales](https://github.com/paales)! - Files in node_modules/@graphcommerce will now also be watched and won’t be cached
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#1341](https://github.com/graphcommerce-org/graphcommerce/pull/1341) [`2e29c5852`](https://github.com/graphcommerce-org/graphcommerce/commit/2e29c585247d356e3027be92beb7815f2070c855) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
|
|
12
|
+
|
|
13
|
+
## 3.0.4
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655) Thanks [@paales](https://github.com/paales)! - All default exports are now named exports internally and all `index.tsx` are renamed to the component name.
|
|
18
|
+
|
|
19
|
+
* [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
|
|
20
|
+
|
|
21
|
+
## 3.0.3
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
|
|
26
|
+
|
|
27
|
+
* [#1278](https://github.com/ho-nl/m2-pwa/pull/1278) [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
|
|
28
|
+
|
|
3
29
|
## 3.0.2
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
6
32
|
|
|
7
|
-
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
8
|
-
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
|
|
9
|
-
Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
|
|
10
|
-
`dependencies` to `peerDependencies`. The result of this is that there will be significantly less
|
|
11
|
-
duplicate packages in the node_modules folders.
|
|
33
|
+
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2) Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from `dependencies` to `peerDependencies`. The result of this is that there will be significantly less duplicate packages in the node_modules folders.
|
|
12
34
|
|
|
13
|
-
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
14
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
15
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
16
|
-
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
17
|
-
implementing
|
|
18
|
-
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
19
|
-
soon.
|
|
35
|
+
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d) Thanks [@paales](https://github.com/paales)! - Upgraded to [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be implementing [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta) soon.
|
|
20
36
|
|
|
21
|
-
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
22
|
-
frontend to be able to revalidate pages manually.
|
|
37
|
+
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the frontend to be able to revalidate pages manually.
|
|
23
38
|
|
|
24
39
|
## 3.0.1
|
|
25
40
|
|
|
26
41
|
### Patch Changes
|
|
27
42
|
|
|
28
|
-
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
|
29
|
-
Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
|
|
30
|
-
so that the packages link to back to the website and repository
|
|
43
|
+
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514) Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files, so that the packages link to back to the website and repository
|
|
31
44
|
|
|
32
45
|
## 3.0.0
|
|
33
46
|
|
|
34
47
|
### Major Changes
|
|
35
48
|
|
|
36
|
-
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
|
|
37
|
-
[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
|
|
38
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
49
|
+
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258) [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05) Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
39
50
|
|
|
40
|
-
All notable changes to this project will be documented in this file. See
|
|
41
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
51
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
42
52
|
|
|
43
53
|
# [2.109.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.108.0...@graphcommerce/next-config@2.109.0) (2021-11-12)
|
|
44
54
|
|
|
45
55
|
### Features
|
|
46
56
|
|
|
47
|
-
- added tons of translations
|
|
48
|
-
([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
57
|
+
- added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
49
58
|
|
|
50
59
|
# [2.108.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.107.3...@graphcommerce/next-config@2.108.0) (2021-11-09)
|
|
51
60
|
|
|
52
61
|
### Features
|
|
53
62
|
|
|
54
|
-
- **next-config:** support for .po files to be imported
|
|
55
|
-
([79b64ce](https://github.com/ho-nl/m2-pwa/commit/79b64ce9b444fcf620279d9a8e5d253b8e9cfa84))
|
|
63
|
+
- **next-config:** support for .po files to be imported ([79b64ce](https://github.com/ho-nl/m2-pwa/commit/79b64ce9b444fcf620279d9a8e5d253b8e9cfa84))
|
|
56
64
|
|
|
57
65
|
# [2.107.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.106.1...@graphcommerce/next-config@2.107.0) (2021-10-27)
|
|
58
66
|
|
|
59
67
|
### Features
|
|
60
68
|
|
|
61
|
-
- **nextjs:** upgraded to nextjs 12
|
|
62
|
-
([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
69
|
+
- **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
63
70
|
|
|
64
71
|
# [2.106.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.105.1...@graphcommerce/next-config@2.106.0) (2021-10-20)
|
|
65
72
|
|
|
66
73
|
### Features
|
|
67
74
|
|
|
68
|
-
- **next-config:** support topLevelAwait
|
|
69
|
-
([3cb4f90](https://github.com/ho-nl/m2-pwa/commit/3cb4f90ac3af797f5fcba888dfd28aa2b76480b8))
|
|
75
|
+
- **next-config:** support topLevelAwait ([3cb4f90](https://github.com/ho-nl/m2-pwa/commit/3cb4f90ac3af797f5fcba888dfd28aa2b76480b8))
|
|
70
76
|
|
|
71
77
|
## [2.105.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.105.0...@graphcommerce/next-config@2.105.1) (2021-10-19)
|
|
72
78
|
|
|
73
79
|
### Bug Fixes
|
|
74
80
|
|
|
75
|
-
- **next-config:** make sure webpack is available
|
|
76
|
-
([46edb3e](https://github.com/ho-nl/m2-pwa/commit/46edb3e6fd1b716d7d9dbe59cb1530375d24c228))
|
|
81
|
+
- **next-config:** make sure webpack is available ([46edb3e](https://github.com/ho-nl/m2-pwa/commit/46edb3e6fd1b716d7d9dbe59cb1530375d24c228))
|
|
77
82
|
|
|
78
83
|
# [2.105.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.104.7...@graphcommerce/next-config@2.105.0) (2021-10-19)
|
|
79
84
|
|
|
80
85
|
### Bug Fixes
|
|
81
86
|
|
|
82
|
-
- **next-config:** move the @apollo/client **DEV** env to next-config
|
|
83
|
-
([fb1df3f](https://github.com/ho-nl/m2-pwa/commit/fb1df3fe4edbf769afb4149c7beced70bb948be5))
|
|
87
|
+
- **next-config:** move the @apollo/client **DEV** env to next-config ([fb1df3f](https://github.com/ho-nl/m2-pwa/commit/fb1df3fe4edbf769afb4149c7beced70bb948be5))
|
|
84
88
|
|
|
85
89
|
### Features
|
|
86
90
|
|
|
87
|
-
- **mesh:** move to a default .meshrc.yml format instead of the json file
|
|
88
|
-
([d9a30a7](https://github.com/ho-nl/m2-pwa/commit/d9a30a78baed2b85b77bbd80e94a6f047e2255b6))
|
|
91
|
+
- **mesh:** move to a default .meshrc.yml format instead of the json file ([d9a30a7](https://github.com/ho-nl/m2-pwa/commit/d9a30a78baed2b85b77bbd80e94a6f047e2255b6))
|
|
89
92
|
|
|
90
93
|
## [2.104.4](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.104.3...@graphcommerce/next-config@2.104.4) (2021-10-07)
|
|
91
94
|
|
|
92
95
|
### Bug Fixes
|
|
93
96
|
|
|
94
|
-
- replace **DEV** with proper variable for optimizing the bundle size
|
|
95
|
-
([9b03209](https://github.com/ho-nl/m2-pwa/commit/9b032095f618846d132c00b8dc14fbb1b09c6ed8))
|
|
97
|
+
- replace **DEV** with proper variable for optimizing the bundle size ([9b03209](https://github.com/ho-nl/m2-pwa/commit/9b032095f618846d132c00b8dc14fbb1b09c6ed8))
|
|
96
98
|
|
|
97
99
|
## [2.104.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.104.2...@graphcommerce/next-config@2.104.3) (2021-09-30)
|
|
98
100
|
|
|
99
101
|
### Bug Fixes
|
|
100
102
|
|
|
101
|
-
- .next folder doesn't always exist on vercel
|
|
102
|
-
([5f8f1a7](https://github.com/ho-nl/m2-pwa/commit/5f8f1a7c2c6690be113adfe2fef662c63781e91f))
|
|
103
|
+
- .next folder doesn't always exist on vercel ([5f8f1a7](https://github.com/ho-nl/m2-pwa/commit/5f8f1a7c2c6690be113adfe2fef662c63781e91f))
|
|
103
104
|
|
|
104
105
|
## [2.104.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.104.1...@graphcommerce/next-config@2.104.2) (2021-09-29)
|
|
105
106
|
|
|
106
107
|
### Bug Fixes
|
|
107
108
|
|
|
108
|
-
- cache dependencylist
|
|
109
|
-
([257da86](https://github.com/ho-nl/m2-pwa/commit/257da860c22a7134896e99e2fcf9f67c0ce99363))
|
|
109
|
+
- cache dependencylist ([257da86](https://github.com/ho-nl/m2-pwa/commit/257da860c22a7134896e99e2fcf9f67c0ce99363))
|
|
110
110
|
|
|
111
111
|
## [2.104.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.104.0...@graphcommerce/next-config@2.104.1) (2021-09-28)
|
|
112
112
|
|
|
113
113
|
### Bug Fixes
|
|
114
114
|
|
|
115
|
-
- do not build on install
|
|
116
|
-
([254e2a6](https://github.com/ho-nl/m2-pwa/commit/254e2a6f4b2a7e81f46466a0abe06ae2f3a79575))
|
|
115
|
+
- do not build on install ([254e2a6](https://github.com/ho-nl/m2-pwa/commit/254e2a6f4b2a7e81f46466a0abe06ae2f3a79575))
|
|
117
116
|
|
|
118
117
|
# [2.104.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.103.0...@graphcommerce/next-config@2.104.0) (2021-09-28)
|
|
119
118
|
|
|
120
119
|
### Features
|
|
121
120
|
|
|
122
|
-
- created withYarn1Scopes functionality so we don't rely on actual workspaces
|
|
123
|
-
([7e491ca](https://github.com/ho-nl/m2-pwa/commit/7e491ca2276028a8587f6cd88b98ee451755c3d0))
|
|
121
|
+
- created withYarn1Scopes functionality so we don't rely on actual workspaces ([7e491ca](https://github.com/ho-nl/m2-pwa/commit/7e491ca2276028a8587f6cd88b98ee451755c3d0))
|
|
124
122
|
|
|
125
123
|
# [2.103.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.102.3...@graphcommerce/next-config@2.103.0) (2021-09-28)
|
|
126
124
|
|
|
127
125
|
### Bug Fixes
|
|
128
126
|
|
|
129
|
-
- withYarn1Workspaces is not a function
|
|
130
|
-
([a095bc9](https://github.com/ho-nl/m2-pwa/commit/a095bc9f0011fbe9180d0e1718f1b41e89a5f6d9))
|
|
127
|
+
- withYarn1Workspaces is not a function ([a095bc9](https://github.com/ho-nl/m2-pwa/commit/a095bc9f0011fbe9180d0e1718f1b41e89a5f6d9))
|
|
131
128
|
|
|
132
129
|
### Features
|
|
133
130
|
|
|
134
|
-
- add postinstall commands to run properly on deploy
|
|
135
|
-
([d512ee3](https://github.com/ho-nl/m2-pwa/commit/d512ee3ba5c3a9573651ec5333595fe2f1aa141c))
|
|
131
|
+
- add postinstall commands to run properly on deploy ([d512ee3](https://github.com/ho-nl/m2-pwa/commit/d512ee3ba5c3a9573651ec5333595fe2f1aa141c))
|
|
136
132
|
|
|
137
133
|
## [2.102.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.102.2...@graphcommerce/next-config@2.102.3) (2021-09-27)
|
|
138
134
|
|
|
139
135
|
### Bug Fixes
|
|
140
136
|
|
|
141
|
-
- build packages before releasing
|
|
142
|
-
([c4761cf](https://github.com/ho-nl/m2-pwa/commit/c4761cf6d1810c140fd56f6eac8fca922f8c0edc))
|
|
137
|
+
- build packages before releasing ([c4761cf](https://github.com/ho-nl/m2-pwa/commit/c4761cf6d1810c140fd56f6eac8fca922f8c0edc))
|
|
143
138
|
|
|
144
139
|
## [2.102.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.102.0...@graphcommerce/next-config@2.102.2) (2021-09-27)
|
|
145
140
|
|
|
146
141
|
### Bug Fixes
|
|
147
142
|
|
|
148
|
-
- add warnings to next.config.js when .env variables are missing
|
|
149
|
-
([d9dffec](https://github.com/ho-nl/m2-pwa/commit/d9dffec8ebc9cb1c70ca5591cad5e42c9bbe30e6))
|
|
143
|
+
- add warnings to next.config.js when .env variables are missing ([d9dffec](https://github.com/ho-nl/m2-pwa/commit/d9dffec8ebc9cb1c70ca5591cad5e42c9bbe30e6))
|
|
150
144
|
|
|
151
145
|
## [2.102.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.102.0...@graphcommerce/next-config@2.102.1) (2021-09-27)
|
|
152
146
|
|
|
@@ -156,46 +150,33 @@ All notable changes to this project will be documented in this file. See
|
|
|
156
150
|
|
|
157
151
|
### Bug Fixes
|
|
158
152
|
|
|
159
|
-
- ignore md files from triggering version updates
|
|
160
|
-
|
|
161
|
-
- **next-config:**
|
|
162
|
-
|
|
163
|
-
- **next-config:** automatically resolve the workspace dependencies
|
|
164
|
-
([4d739ec](https://github.com/ho-nl/m2-pwa/commit/4d739ec969591f96392f99e476016c6ad1d092cb))
|
|
165
|
-
- playwright can't find the place order button
|
|
166
|
-
([b1fda5b](https://github.com/ho-nl/m2-pwa/commit/b1fda5b3e403dad621aba8ed895427f2166bc985))
|
|
153
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
154
|
+
- **next-config:** another shot at fixing next-config ([a4afe11](https://github.com/ho-nl/m2-pwa/commit/a4afe112aa1308c10bb407d5e3eebf1f239d789c))
|
|
155
|
+
- **next-config:** automatically resolve the workspace dependencies ([4d739ec](https://github.com/ho-nl/m2-pwa/commit/4d739ec969591f96392f99e476016c6ad1d092cb))
|
|
156
|
+
- playwright can't find the place order button ([b1fda5b](https://github.com/ho-nl/m2-pwa/commit/b1fda5b3e403dad621aba8ed895427f2166bc985))
|
|
167
157
|
|
|
168
158
|
### Features
|
|
169
159
|
|
|
170
|
-
- **framer-sheet:** created separate package that can be implemented
|
|
171
|
-
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
-
|
|
175
|
-
([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
176
|
-
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
|
177
|
-
[@reachdigital](https://github.com/reachdigital)
|
|
178
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
179
|
-
- upgraded to nextjs 11
|
|
180
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
160
|
+
- **framer-sheet:** created separate package that can be implemented ([69cc8ce](https://github.com/ho-nl/m2-pwa/commit/69cc8ce3237125335524728a70f4dae050032108))
|
|
161
|
+
- **next-config:** introduced package to streamline the setup of new examples ([b8a3958](https://github.com/ho-nl/m2-pwa/commit/b8a39584e5b529fcaa22db67d3f986b91ae683ad))
|
|
162
|
+
- next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
163
|
+
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
164
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
181
165
|
|
|
182
166
|
## [2.101.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.101.0...@graphcommerce/next-config@2.101.1) (2021-09-01)
|
|
183
167
|
|
|
184
168
|
### Bug Fixes
|
|
185
169
|
|
|
186
|
-
- playwright can't find the place order button
|
|
187
|
-
([b1fda5b](https://github.com/ho-nl/m2-pwa/commit/b1fda5b3e403dad621aba8ed895427f2166bc985))
|
|
170
|
+
- playwright can't find the place order button ([b1fda5b](https://github.com/ho-nl/m2-pwa/commit/b1fda5b3e403dad621aba8ed895427f2166bc985))
|
|
188
171
|
|
|
189
172
|
# [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.100.10...@graphcommerce/next-config@2.101.0) (2021-08-12)
|
|
190
173
|
|
|
191
174
|
### Features
|
|
192
175
|
|
|
193
|
-
- upgraded to nextjs 11
|
|
194
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
176
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
195
177
|
|
|
196
178
|
## [2.100.10](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.100.9...@graphcommerce/next-config@2.100.10) (2021-08-09)
|
|
197
179
|
|
|
198
180
|
### Bug Fixes
|
|
199
181
|
|
|
200
|
-
- ignore md files from triggering version updates
|
|
201
|
-
([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
182
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
package/dist/index.js
CHANGED
|
@@ -16,13 +16,25 @@ function extendConfig(nextConfig) {
|
|
|
16
16
|
// Allow importing yml/yaml files for graphql-mesh
|
|
17
17
|
config.module?.rules?.push({ test: /\.ya?ml$/, use: 'js-yaml-loader' });
|
|
18
18
|
// To properly properly treeshake @apollo/client we need to define the __DEV__ property
|
|
19
|
-
|
|
19
|
+
if (!options.isServer) {
|
|
20
|
+
config.plugins = [new webpack_1.DefinePlugin({ __DEV__: options.dev }), ...(config.plugins ?? [])];
|
|
21
|
+
}
|
|
20
22
|
// @lingui .po file support
|
|
21
23
|
config.module?.rules?.push({ test: /\.po/, use: '@lingui/loader' });
|
|
22
24
|
config.experiments = {
|
|
23
25
|
layers: true,
|
|
24
26
|
topLevelAwait: true,
|
|
25
27
|
};
|
|
28
|
+
config.snapshot = {
|
|
29
|
+
...(config.snapshot ?? {}),
|
|
30
|
+
managedPaths: [/^(.+?[\\/]node_modules[\\/])(?!@graphcommerce)/],
|
|
31
|
+
};
|
|
32
|
+
// `config.watchOptions.ignored = ['**/.git/**', '**/node_modules/**', '**/.next/**']
|
|
33
|
+
// Replace the '**/node_modules/**' with a regex that excludes node_modules except @graphcommerce
|
|
34
|
+
config.watchOptions = {
|
|
35
|
+
...(config.watchOptions ?? {}),
|
|
36
|
+
ignored: ['**/.git/**', '**/node_modules/!(@graphcommerce)**', '**/.next/**'],
|
|
37
|
+
};
|
|
26
38
|
return typeof nextConfig.webpack === 'function' ? nextConfig.webpack(config, options) : config;
|
|
27
39
|
},
|
|
28
40
|
};
|
|
@@ -82,6 +94,7 @@ function withYarn1Workspaces(modules = []) {
|
|
|
82
94
|
// do nothing
|
|
83
95
|
}
|
|
84
96
|
}
|
|
97
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
85
98
|
const workspaceInfo = JSON.parse(JSON.parse(infoJson).data);
|
|
86
99
|
const requestedPackages = [
|
|
87
100
|
...Object.keys(packageJson.dependencies ?? {}),
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/next-config",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "3.0
|
|
5
|
+
"version": "3.1.0",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"typings": "dist/index.d.ts",
|
|
@@ -16,14 +16,15 @@
|
|
|
16
16
|
"@lingui/loader": "^3.13.2",
|
|
17
17
|
"js-yaml-loader": "^1.2.2",
|
|
18
18
|
"next-transpile-modules": "^9.0.0",
|
|
19
|
-
"type-fest": "^2.
|
|
19
|
+
"type-fest": "^2.12.0",
|
|
20
|
+
"webpack": "^5.70.0"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
|
-
"typescript": "^4.
|
|
23
|
-
"webpack": "^5.69.1"
|
|
23
|
+
"typescript": "^4.6.2"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"next": "^12.0.10"
|
|
26
|
+
"next": "^12.0.10",
|
|
27
|
+
"webpack": "^5.70.0"
|
|
27
28
|
},
|
|
28
29
|
"files": [
|
|
29
30
|
"dist",
|
package/src/index.ts
CHANGED
|
@@ -39,7 +39,9 @@ function extendConfig(nextConfig: NextConfig): NextConfig {
|
|
|
39
39
|
config.module?.rules?.push({ test: /\.ya?ml$/, use: 'js-yaml-loader' })
|
|
40
40
|
|
|
41
41
|
// To properly properly treeshake @apollo/client we need to define the __DEV__ property
|
|
42
|
-
|
|
42
|
+
if (!options.isServer) {
|
|
43
|
+
config.plugins = [new DefinePlugin({ __DEV__: options.dev }), ...(config.plugins ?? [])]
|
|
44
|
+
}
|
|
43
45
|
|
|
44
46
|
// @lingui .po file support
|
|
45
47
|
config.module?.rules?.push({ test: /\.po/, use: '@lingui/loader' })
|
|
@@ -49,6 +51,18 @@ function extendConfig(nextConfig: NextConfig): NextConfig {
|
|
|
49
51
|
topLevelAwait: true,
|
|
50
52
|
}
|
|
51
53
|
|
|
54
|
+
config.snapshot = {
|
|
55
|
+
...(config.snapshot ?? {}),
|
|
56
|
+
managedPaths: [/^(.+?[\\/]node_modules[\\/])(?!@graphcommerce)/],
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// `config.watchOptions.ignored = ['**/.git/**', '**/node_modules/**', '**/.next/**']
|
|
60
|
+
// Replace the '**/node_modules/**' with a regex that excludes node_modules except @graphcommerce
|
|
61
|
+
config.watchOptions = {
|
|
62
|
+
...(config.watchOptions ?? {}),
|
|
63
|
+
ignored: ['**/.git/**', '**/node_modules/!(@graphcommerce)**', '**/.next/**'],
|
|
64
|
+
}
|
|
65
|
+
|
|
52
66
|
return typeof nextConfig.webpack === 'function' ? nextConfig.webpack(config, options) : config
|
|
53
67
|
},
|
|
54
68
|
}
|
|
@@ -118,6 +132,7 @@ export function withYarn1Workspaces(modules: string[] = []): (config: NextConfig
|
|
|
118
132
|
}
|
|
119
133
|
}
|
|
120
134
|
|
|
135
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
121
136
|
const workspaceInfo = JSON.parse(JSON.parse(infoJson).data) as WorkspaceInfo
|
|
122
137
|
|
|
123
138
|
const requestedPackages = [
|