sku 11.2.5 → 11.2.8

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # sku
2
2
 
3
+ ## 11.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Force upgrade `@vocab/core` to `^1.0.4` to fix a language hierarchy bug that can result in incorrect translation messages being used for a language. ([#672](https://github.com/seek-oss/sku/pull/672))
8
+
9
+ ## 11.2.7
10
+
11
+ ### Patch Changes
12
+
13
+ - Support static rendering for routes using ':language' ([#670](https://github.com/seek-oss/sku/pull/670))
14
+
15
+ ## 11.2.6
16
+
17
+ ### Patch Changes
18
+
19
+ - Add "extends" to languages type definition ([#668](https://github.com/seek-oss/sku/pull/668))
20
+
3
21
  ## 11.2.5
4
22
 
5
23
  ### Patch Changes
@@ -9,7 +9,11 @@ const languagesToCompile = {
9
9
  { type: 'string' },
10
10
  {
11
11
  type: 'object',
12
- props: { name: { type: 'string', extends: { type: 'string' } } },
12
+ strict: true,
13
+ props: {
14
+ name: { type: 'string' },
15
+ extends: { type: 'string', optional: true },
16
+ },
13
17
  },
14
18
  ],
15
19
  };
@@ -88,7 +88,7 @@ function getLanguageFromRoute(req, route) {
88
88
  }
89
89
 
90
90
  function getRouteWithLanguage(routePath, language) {
91
- return routePath.replace(/\$language/g, language);
91
+ return routePath.replace(/(\$|\:)language/g, language);
92
92
  }
93
93
 
94
94
  module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sku",
3
- "version": "11.2.5",
3
+ "version": "11.2.8",
4
4
  "description": "Front-end development toolkit, powered by Webpack, Babel, CSS Modules, Less and Jest",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -76,7 +76,7 @@
76
76
  "@types/loadable__component": "^5.13.1",
77
77
  "@vanilla-extract/babel-plugin": "^1.0.0",
78
78
  "@vanilla-extract/webpack-plugin": "^2.0.0",
79
- "@vocab/core": "^1.0.1",
79
+ "@vocab/core": "^1.0.4",
80
80
  "@vocab/phrase": "^1.0.0",
81
81
  "@vocab/webpack": "^1.0.0",
82
82
  "autoprefixer": "^10.3.1",
package/sku-types.d.ts CHANGED
@@ -192,7 +192,7 @@ export interface SkuConfig {
192
192
  *
193
193
  * @link https://seek-oss.github.io/sku/#/./docs/configuration?id=languages
194
194
  */
195
- languages?: Array<string | { name: string }>;
195
+ languages?: Array<string | { name: string; extends?: string }>;
196
196
 
197
197
  /**
198
198
  * **Only for libraries**