@servicetitan/docs-uikit 34.3.0-beta.2 → 35.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.
@@ -3,6 +3,17 @@ title: BREAKING CHANGES
3
3
  sidebar_position: 0
4
4
  ---
5
5
 
6
+ ## v35.0.0
7
+
8
+ ### [@servicetitan/startup](./startup/)
9
+
10
+ - Dropped support for Node 20.
11
+ Update GitHub workflows and Docker containers to use Node v22 or later, and bump the `engines.node` property in package.json files to >=22.
12
+
13
+ ### [@servicetitan/launchdarkly-service](./launchdarkly-service.mdx)
14
+
15
+ - Added `mobx-react` peer dependency. If your project does not already depend on `mobx-react`, add version `~9.2.0`.
16
+
6
17
  ## v34.0.0
7
18
 
8
19
  ### [@servicetitan/startup](./startup/)
@@ -57,7 +68,7 @@ Two recent incidents mandated that we revoke the shared token that grants access
57
68
  ### [@servicetitan/startup](./startup)
58
69
 
59
70
  - Dropped support for Node 18.
60
- Update Github workflows and Docker containers to use Node v20 or later, and bump the `engines.node` property in package.json files to >=20 or >=22.
71
+ Update GitHub workflows and Docker containers to use Node v20 or later, and bump the `engines.node` property in package.json files to >=20 or >=22.
61
72
 
62
73
  - Added safeguards to mfe-publish to avoid accidentally deleting production bundles
63
74
  - Changed `--clean` to never remove old versions that have a tag
@@ -13,6 +13,7 @@ This is an umbrella command for publishing, unpublishing (cleaning up), and roll
13
13
  | `--build <glob>` | Optional build version that normally should not be specified. Defaults to `<branch_name>.<commit_hash>`. For example, if git commit `bdac90f5` is published from branch `next`, the build version is`next.bdac90f5`, and the full version is `0.0.0-next.bdac90f5`. This ensures each release has a unique version with no collisions. |
14
14
  | `--force` | Forces publishing the package when no configuration was found for the specified branch (`--branch` or current branch). |
15
15
  | `--upload-sourcemaps`, `--no-upload-sourcemaps` | Whether or not to [upload sourcemaps](#sourcemaps) to Datadog. Defaults to uploading sourcemaps. |
16
+ | `--purge-cache`, `--no-purge-cache` | Whether or not to [purge the unpkg cache](#cache-purging) after publishing. Defaults to purging the cache. |
16
17
  | `--tag <string>` | The [tag](https://docs.npmjs.com/cli/v7/commands/npm-publish#tag) to assign to the published version. Defaults to the tag associated with the branch from the custom [branch config](#branch-configs) or, if there is no custom branch config, from the [default branch config](https://github.com/servicetitan/uikit/blob/master/packages/startup/src/utils/get-branch-configs.ts#L3). For example, by default a package published from the `master` branch is tagged `prod`. |
17
18
 
18
19
  :::danger
@@ -33,12 +34,13 @@ Do not use the `@latest` tag for production deployments because it could be assi
33
34
 
34
35
  ✨ New in **v34.0.0** ✨
35
36
 
36
- | Option | Description |
37
- | :----------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------- |
38
- | `--rollback` | Instructs `mfe-publish` to rollback a tagged version to its previous version instead of publishing. |
39
- | `--tag <string>` | **Required when using `--rollback`**. The tag to rollback to its previous version. The command will look for a rollback version with the suffix `-rollback-1`. |
40
- | `--scope <string>` | Specify one or more packages to rollback. Can be used multiple times: `--scope pkg1 --scope pkg2`. |
41
- | `--dry` | Log what the command would do without actually performing the rollback. |
37
+ | Option | Description |
38
+ | :---------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------- |
39
+ | `--rollback` | Instructs `mfe-publish` to rollback a tagged version to its previous version instead of publishing. |
40
+ | `--tag <string>` | **Required when using `--rollback`**. The tag to rollback to its previous version. The command will look for a rollback version with the suffix `-rollback-1`. |
41
+ | `--scope <string>` | Specify one or more packages to rollback. Can be used multiple times: `--scope pkg1 --scope pkg2`. |
42
+ | `--purge-cache`, `--no-purge-cache` | Whether or not to [purge the unpkg cache](#cache-purging) after rolling back. Defaults to purging the cache. |
43
+ | `--dry` | Log what the command would do without actually performing the rollback. |
42
44
 
43
45
  ## Branch configs
44
46
 
@@ -115,6 +117,27 @@ If `DATADOG_API_KEY` is not provided `mfe-publish` fails with an error. In CI en
115
117
  Use `--no-upload-sourcemaps` to prevent `mfe-publish` from attempting to upload sourcemaps, for example, for pre-release versions. See [Publishing options](#publishing-options).
116
118
  :::
117
119
 
120
+ ## Cache Purging
121
+
122
+ ✨ New in **v35.0.0** ✨
123
+
124
+ By default `mfe-publish` purges the newly published MFE from the [unpkg](https://unpkg.servicetitan.com) nginx cache so that the latest version is available within a few minutes.
125
+
126
+ This requires a purge token provided via the `UNPKG_PURGE_TOKEN` environment variable, set to the `ST_MFE_PURGE_TOKEN` organization secret (GitHub: `secrets.ST_MFE_PURGE_TOKEN`, TeamCity: `env.ST_MFE_PURGE_TOKEN`). For example, in a GitHub Actions workflow:
127
+
128
+ ```yml
129
+ - name: Publish MFE
130
+ env:
131
+ UNPKG_PURGE_TOKEN: ${{ secrets.ST_MFE_PURGE_TOKEN }}
132
+ run: npx startup mfe-publish
133
+ ```
134
+
135
+ If `UNPKG_PURGE_TOKEN` is not provided, `mfe-publish` logs a warning and skips cache purging.
136
+
137
+ :::tip
138
+ Use `--no-purge-cache` to skip cache purging, for example, for pre-release versions that are only used in staging, since the staging environment always bypasses the cache. See [Publishing options](#publishing-options).
139
+ :::
140
+
118
141
  ## See Also
119
142
 
120
143
  - [Example `mfe-publish` workflow](https://github.com/servicetitan/frontend-example/blob/master/.github/workflows/mfe-publish.yml)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/docs-uikit",
3
- "version": "34.3.0-beta.2",
3
+ "version": "35.0.0",
4
4
  "description": "Documentation content for Uikit packages published at docs.st.dev",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,5 +15,6 @@
15
15
  },
16
16
  "cli": {
17
17
  "webpack": false
18
- }
18
+ },
19
+ "gitHead": "3a5f2e6cad93c4e898091fb3d51310ccb26a91ee"
19
20
  }