@graphcommerce/lingui-next 2.0.1 β†’ 2.1.2

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 +37 -20
  2. package/config.js +13 -1
  3. package/package.json +11 -8
package/CHANGELOG.md CHANGED
@@ -1,60 +1,77 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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.
8
+
9
+ * [#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
10
+
11
+ ## 2.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
16
+
17
+ ## 2.1.0
18
+
19
+ ### Minor Changes
20
+
21
+ - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274) [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275) Thanks [@paales](https://github.com/paales)! - Fixed extraction of translations and updated various translations for english πŸ‡ΊπŸ‡ΈπŸ‡¬πŸ‡§ and dutch πŸ‡³πŸ‡±
22
+
23
+ ### Patch Changes
24
+
25
+ - [#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.
26
+
27
+ * [#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.
28
+
29
+ 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.
30
+
3
31
  ## 2.0.1
4
32
 
5
33
  ### Patch Changes
6
34
 
7
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
8
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
9
- so that the packages link to back to the website and repository
35
+ - [`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
10
36
 
11
37
  ## 2.0.0
12
38
 
13
39
  ### Major Changes
14
40
 
15
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
16
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
17
- Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
41
+ - [#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
18
42
 
19
- All notable changes to this project will be documented in this file. See
20
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
43
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
21
44
 
22
45
  ## [1.3.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/lingui-next@1.3.0...@graphcommerce/lingui-next@1.3.1) (2022-01-04)
23
46
 
24
47
  ### Bug Fixes
25
48
 
26
- - pages would be blank because the locale couldn't properly be loaded
27
- ([5fe9ecd](https://github.com/ho-nl/m2-pwa/commit/5fe9ecd204c3f9efddcf95d54464b1b931ef682e))
49
+ - pages would be blank because the locale couldn't properly be loaded ([5fe9ecd](https://github.com/ho-nl/m2-pwa/commit/5fe9ecd204c3f9efddcf95d54464b1b931ef682e))
28
50
 
29
51
  # [1.3.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/lingui-next@1.2.4...@graphcommerce/lingui-next@1.3.0) (2022-01-03)
30
52
 
31
53
  ### Features
32
54
 
33
- - **framer-next-pages:** reduce rerenders when navigating to a new page
34
- ([5cf3301](https://github.com/ho-nl/m2-pwa/commit/5cf330130bb3527057da015e3c4a6fa295d7262e))
55
+ - **framer-next-pages:** reduce rerenders when navigating to a new page ([5cf3301](https://github.com/ho-nl/m2-pwa/commit/5cf330130bb3527057da015e3c4a6fa295d7262e))
35
56
 
36
57
  ## [1.2.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/lingui-next@1.2.0...@graphcommerce/lingui-next@1.2.1) (2021-12-03)
37
58
 
38
59
  ### Bug Fixes
39
60
 
40
- - make sure we're not throwing a generic 'No locales specified' when there is a generic error
41
- ([fd3dd23](https://github.com/ho-nl/m2-pwa/commit/fd3dd233fb293f6afc08636316a34d2a2db4bbc3))
61
+ - make sure we're not throwing a generic 'No locales specified' when there is a generic error ([fd3dd23](https://github.com/ho-nl/m2-pwa/commit/fd3dd233fb293f6afc08636316a34d2a2db4bbc3))
42
62
 
43
63
  # [1.2.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/lingui-next@1.1.0...@graphcommerce/lingui-next@1.2.0) (2021-11-12)
44
64
 
45
65
  ### Bug Fixes
46
66
 
47
- - error in cli about missing plurals
48
- ([fedde70](https://github.com/ho-nl/m2-pwa/commit/fedde70012b0b5694114a0f5c3ab0f7d5c8cd276))
67
+ - error in cli about missing plurals ([fedde70](https://github.com/ho-nl/m2-pwa/commit/fedde70012b0b5694114a0f5c3ab0f7d5c8cd276))
49
68
 
50
69
  ### Features
51
70
 
52
- - added tons of translations
53
- ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
71
+ - added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
54
72
 
55
73
  # 1.1.0 (2021-11-11)
56
74
 
57
75
  ### Features
58
76
 
59
- - lingui configuration and integration greatly simplified and fixed ssr
60
- ([d8ec22a](https://github.com/ho-nl/m2-pwa/commit/d8ec22a80295af854a4cf6f357c4fb137c5b550d))
77
+ - lingui configuration and integration greatly simplified and fixed ssr ([d8ec22a](https://github.com/ho-nl/m2-pwa/commit/d8ec22a80295af854a4cf6f357c4fb137c5b550d))
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.2",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "dev": "tsc -W"
@@ -16,18 +16,21 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@lingui/core": "^3.13.2",
19
- "@lingui/macro": "^3.13.2",
20
- "@lingui/react": "^3.13.2"
19
+ "@lingui/react": "^3.13.2",
20
+ "babel-plugin-macros": "^3.1.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@graphcommerce/eslint-config-pwa": "^4.0.1",
24
- "@graphcommerce/prettier-config-pwa": "^4.0.1",
25
- "@graphcommerce/typescript-config-pwa": "^4.0.1",
26
- "@playwright/test": "^1.18.1"
23
+ "@graphcommerce/eslint-config-pwa": "^4.0.5",
24
+ "@graphcommerce/prettier-config-pwa": "^4.0.3",
25
+ "@graphcommerce/typescript-config-pwa": "^4.0.2",
26
+ "@playwright/test": "^1.19.2",
27
+ "@lingui/conf": "^3.13.2"
27
28
  },
28
29
  "peerDependencies": {
30
+ "@lingui/macro": "^3.13.2",
29
31
  "next": "^12.0.10",
30
32
  "react": "^17.0.2",
31
- "react-dom": "^17.0.2"
33
+ "react-dom": "^17.0.2",
34
+ "make-plural": "^6.2.2"
32
35
  }
33
36
  }