rsbuild-plugin-react-router 0.6.4 → 0.6.5

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/dist/index.cjs CHANGED
@@ -11962,7 +11962,7 @@ function generateReactRouterManifestForDevEffect(routes, clientStats, context, a
11962
11962
  css: entryCssAssets.map((asset)=>combineURLs(assetPrefix, asset))
11963
11963
  },
11964
11964
  routes: result
11965
- }, version = (0, external_node_crypto_namespaceObject.createHash)('md5').update(JSON.stringify(fingerprintedValues)).digest('hex').slice(0, 8), manifestPath = getReactRouterManifestPath({
11965
+ }, version = (0, external_node_crypto_namespaceObject.createHash)('sha256').update(JSON.stringify(fingerprintedValues)).digest('hex').slice(0, 8), manifestPath = getReactRouterManifestPath({
11966
11966
  version,
11967
11967
  isBuild,
11968
11968
  entryModulePath: entryJsAssets[0]
package/dist/index.js CHANGED
@@ -7517,7 +7517,7 @@ async function generateReactRouterManifestForDev(routes, _options, clientStats,
7517
7517
  css: entryCssAssets.map((asset)=>combineURLs(assetPrefix, asset))
7518
7518
  },
7519
7519
  routes: result
7520
- }, version = createHash('md5').update(JSON.stringify(fingerprintedValues)).digest('hex').slice(0, 8), manifestPath = getReactRouterManifestPath({
7520
+ }, version = createHash('sha256').update(JSON.stringify(fingerprintedValues)).digest('hex').slice(0, 8), manifestPath = getReactRouterManifestPath({
7521
7521
  version,
7522
7522
  isBuild,
7523
7523
  entryModulePath: entryJsAssets[0]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsbuild-plugin-react-router",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "React Router plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
package/src/manifest.ts CHANGED
@@ -609,7 +609,8 @@ function generateReactRouterManifestForDevEffect(
609
609
  // compares the browser's manifest version with the pinned server build's,
610
610
  // and a random per-compilation version made unchanged manifests differ
611
611
  // whenever a web compilation completed without a new server pin.
612
- const version = createHash('md5')
612
+ // sha256 rather than md5: md5 is unavailable on FIPS-enabled hosts (#124).
613
+ const version = createHash('sha256')
613
614
  .update(JSON.stringify(fingerprintedValues))
614
615
  .digest('hex')
615
616
  .slice(0, 8);