@vercel/microfrontends 1.4.0-canary.7 → 1.4.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/CHANGELOG.md +20 -19
- package/dist/bin/cli.cjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
# @vercel/microfrontends
|
|
2
2
|
|
|
3
|
-
## 1.4.0
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Remove custom Image component
|
|
8
|
-
|
|
9
|
-
## 1.4.0-canary.5
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- 3797824: Automatically infer location of microfrontends.json in .vercel directory for polyrepo support.
|
|
14
|
-
|
|
15
|
-
## 1.4.0-canary.2
|
|
3
|
+
## 1.4.0
|
|
16
4
|
|
|
17
5
|
### Minor Changes
|
|
18
6
|
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
|
|
7
|
+
- b31a76c: - Improve `PrefetchCrossZoneLinksProvider` performance.
|
|
8
|
+
- Stops components using this context from rerendering every time `prefetchHref` is called on an unseen `href`.
|
|
9
|
+
- Batches multiple prefetch calls together before causing a new render.
|
|
10
|
+
- Improve `MicrofrontendConfigClient` caching.
|
|
11
|
+
- Reuses clients when calling `MicrofrontendConfigClient.fromEnv()` with the same parameters as a previous call. This improves the hit rate of the path cache when there aren't dynamic paths.
|
|
12
|
+
- Caches the `hasDynamicPaths` check so that it doesn't need to be recalculated for each use of the hook.
|
|
13
|
+
- When the promise for the server-fetched config resolves, it stores a cached copy of that directly in a new variable so that future invocations of `useClientConfig()` can have the correct config in their initial render.
|
|
14
|
+
- Adds a `regexpCache` to cache the resulting regex for each path, to avoid calling `pathToRegexp` in most cases beyond the initial few links.
|
|
15
|
+
- Remove the custom `@vercel/microfrontends` `Image` component.
|
|
16
|
+
- The wrapper around Next.js `Image` is no longer needed, as the vercel proxy now handles image optimisation request routing for microfrontends.
|
|
17
|
+
- If you are currently importing `{ Image } from '@vercel/microfrontends/next/client'` you can replace this with `Image from 'next/image'`.
|
|
18
|
+
- Use `defineServer` instead of custom webpack EnvironmentPlugin when the version of Next.js is new enough to support it.
|
|
19
|
+
- [vercel/next.js#79225](https://github.com/vercel/next.js/pull/79225) added support to Next.js for defining server-only compile-time constants independent of the bundler.
|
|
20
|
+
- Like `compiler.define`, this allows users to create compile-time constants both Turbopack and webpack from a single API. `compiler.defineServer` instead only makes these constants available for server or edge environments, not the client environment.
|
|
21
|
+
- The new behaviour is used by default when the version of Next.js is new enough to support it. Otherwise the custom webpack EnvironmentPlugin is used.
|
|
22
|
+
- Optionally, you can specify `preferWebpackEnvironmentPlugin`. This will use the legacy `webpack.EnvironmentPlugin` instead of Next.js's `defineServer` option, even when Next.js is new enough to support it.
|
|
23
|
+
- Remove support for `projectId` in `microfrontends.json`.
|
|
24
|
+
- `projectId` was deprecated in a previous release. This release removes support for the field entirely.
|
|
25
|
+
- If you are still using `projectId`, see the previous release notes in `CHANGELOG.md` for removing it.
|
|
25
26
|
|
|
26
27
|
## 1.3.0
|
|
27
28
|
|
package/dist/bin/cli.cjs
CHANGED
|
@@ -30,7 +30,7 @@ var import_env = require("@next/env");
|
|
|
30
30
|
// package.json
|
|
31
31
|
var package_default = {
|
|
32
32
|
name: "@vercel/microfrontends",
|
|
33
|
-
version: "1.4.0
|
|
33
|
+
version: "1.4.0",
|
|
34
34
|
private: false,
|
|
35
35
|
description: "Defines configuration and utilities for microfrontends development",
|
|
36
36
|
keywords: [
|