@graphcommerce/lingui-next 2.0.1 β†’ 2.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/config.js +13 -1
  3. package/package.json +5 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
8
+ [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275)
9
+ Thanks [@paales](https://github.com/paales)! - Fixed extraction of translations and updated
10
+ various translations for english πŸ‡ΊπŸ‡ΈπŸ‡¬πŸ‡§ and dutch πŸ‡³πŸ‡±
11
+
12
+ ### Patch Changes
13
+
14
+ - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
15
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
16
+ Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
17
+ `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
18
+ duplicate packages in the node_modules folders.
19
+
20
+ * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
21
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
22
+ Thanks [@paales](https://github.com/paales)! - Upgraded to
23
+ [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
24
+ implementing
25
+ [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
26
+ soon.
27
+
28
+ This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
29
+ frontend to be able to revalidate pages manually.
30
+
3
31
  ## 2.0.1
4
32
 
5
33
  ### Patch Changes
package/config.js CHANGED
@@ -20,7 +20,19 @@ function linguiNextConfig(config) {
20
20
  exclude: ['**/node_modules/!(@graphcommerce)/**'],
21
21
  },
22
22
  ],
23
- extractors: [require.resolve('@lingui/cli/api/extractors/typescript')],
23
+ extractBabelOptions: {
24
+ presets: [
25
+ [
26
+ 'next/babel',
27
+ {
28
+ 'preset-react': {
29
+ runtime: 'automatic',
30
+ importSource: '@emotion/react',
31
+ },
32
+ },
33
+ ],
34
+ ],
35
+ },
24
36
  sourceLocale: 'en',
25
37
  ...otherConfig,
26
38
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/lingui-next",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "2.0.1",
5
+ "version": "2.1.0",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "dev": "tsc -W"
@@ -17,13 +17,14 @@
17
17
  "dependencies": {
18
18
  "@lingui/core": "^3.13.2",
19
19
  "@lingui/macro": "^3.13.2",
20
- "@lingui/react": "^3.13.2"
20
+ "@lingui/react": "^3.13.2",
21
+ "babel-plugin-macros": "^3.1.0"
21
22
  },
22
23
  "devDependencies": {
23
- "@graphcommerce/eslint-config-pwa": "^4.0.1",
24
+ "@graphcommerce/eslint-config-pwa": "^4.0.2",
24
25
  "@graphcommerce/prettier-config-pwa": "^4.0.1",
25
26
  "@graphcommerce/typescript-config-pwa": "^4.0.1",
26
- "@playwright/test": "^1.18.1"
27
+ "@playwright/test": "^1.19.1"
27
28
  },
28
29
  "peerDependencies": {
29
30
  "next": "^12.0.10",