@servicetitan/docs-uikit 26.4.0 → 27.0.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/docs/BREAKING_CHANGES.mdx +31 -22
- package/package.json +2 -2
|
@@ -2,51 +2,60 @@
|
|
|
2
2
|
title: BREAKING CHANGES
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## v27.0.0
|
|
6
6
|
|
|
7
7
|
### [@servicetitan/startup](./startup)
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- **proxy** only accepts an array
|
|
18
|
-
- **publicPath**, **stats** and **writeToDisk** were moved to **devMiddleware**
|
|
9
|
+
- Upgraded **prettier** from v2 to v3.
|
|
10
|
+
Beside the usual formatting changes, the default value for [**trailingComma**](https://prettier.io/docs/en/options.html#trailing-commas) changed from "es5" to "all".
|
|
11
|
+
To fix the issues, add `"trailingComma": "es5"` to the [prettier configuration](https://prettier.io/docs/en/configuration) then run `npx startup lint --fix` to fix new lint errors.
|
|
12
|
+
To prevent specific files from being reformatted, add them to [**.prettierignore**](https://prettier.io/docs/en/ignore.html).
|
|
13
|
+
|
|
14
|
+
## v26.0.0
|
|
15
|
+
|
|
16
|
+
### [@servicetitan/startup](./startup)
|
|
19
17
|
|
|
18
|
+
- Upgraded **webpack-dev-server** from v3 to v5, which introduces many breaking changes to the configuration settings.
|
|
19
|
+
For a complete list see [v4 migration guide](https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md) and [v5 migration guide](https://github.com/webpack/webpack-dev-server/blob/master/migration-v5.md). Some common issues are:
|
|
20
|
+
- **contentBase** and **watchContentBase** were removed; use **static**
|
|
21
|
+
- **disableHostCheck** was removed; use `allowedHosts: 'all'`
|
|
22
|
+
- **hotOnly** was removed; use `hot: 'only'`
|
|
23
|
+
- **http2** and **https** were removed; use **server**
|
|
24
|
+
- **injectClient** and **injectHot** were removed in favor of manual setup entries
|
|
25
|
+
- **inline** was removed without replacement
|
|
26
|
+
- **proxy** only accepts an array
|
|
27
|
+
- **publicPath**, **stats** and **writeToDisk** were moved to **devMiddleware**
|
|
20
28
|
|
|
21
29
|
## v25.0.0
|
|
22
30
|
|
|
23
31
|
### [@servicetitan/ajax-handlers](./ajax-handlers)
|
|
24
32
|
|
|
25
|
-
-
|
|
33
|
+
- Changed [**withMicroservice**](./ajax-handlers#parameters) arguments to a single options object.
|
|
26
34
|
|
|
27
35
|
## v24.0.0
|
|
28
36
|
|
|
29
37
|
### [@servicetitan/startup](./startup)
|
|
30
38
|
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
See [this blogpost](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/) for the complete list of changes.
|
|
39
|
+
- Upgraded **Typescript** from v4 to v5, which adds correctness improvements that will reveal previously undetected ambiguities. In particular,
|
|
40
|
+
|
|
41
|
+
- Type checks for enums are stricter because all **enum** values get their own type
|
|
42
|
+
- **string** and **boolean** values aren't implicitly converted to numbers. Use the `+` operator to explicitly convert values to numbers in mathematical expressions. (e.g., `return +str > 42;`)
|
|
36
43
|
|
|
44
|
+
See [this blogpost](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/) for the complete list of changes.
|
|
37
45
|
|
|
38
46
|
## v23.0.0
|
|
39
47
|
|
|
40
48
|
### [@servicetitan/eslint-config](./eslint-config)
|
|
41
49
|
|
|
42
|
-
-
|
|
50
|
+
- Upgraded **@typescript-eslint/eslint-plugin** from version v5.x to v6. Because every new major version includes improvements and changes to existing rules, expect to see new lint errors in your project.
|
|
43
51
|
|
|
44
52
|
### [@servicetitan/react-ioc](./react-ioc/)
|
|
45
53
|
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
54
|
+
- Changed second argument of **provide** method to an object with **loadingFallback** and **errorFallback** properties.
|
|
55
|
+
- Renamed the **fallback** property of the **Provider** component to **loadingFallback** and added **errorFallback** property.
|
|
56
|
+
- Removed ability to use **useValue** with **instances**.
|
|
49
57
|
|
|
50
58
|
### [@servicetitan/startup](./startup)
|
|
51
59
|
|
|
52
|
-
-
|
|
60
|
+
- Upgraded **Jest** from version v27 to v29. The largest breaking change is that v29 changed the default snapshot format.<br/>
|
|
61
|
+
To update old snapshots, run `npm run test -- --updateSnapshot`. See [Upgrading from v27 to v28](https://jest-archive-august-2023.netlify.app/docs/28.x/upgrading-to-jest28) and [Upgrading from v28 to v29](https://jestjs.io/docs/upgrading-to-jest29) for detailed lists of all breaking changes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/docs-uikit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "27.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"cli": {
|
|
17
17
|
"webpack": false
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "7076608156b454b875fedf0fcb1fa07ff573c899"
|
|
20
20
|
}
|