@virtru/dsp-sdk 0.7.3 → 0.7.4

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,6 +1,13 @@
1
1
  # Change Log - @virtru/dsp-sdk
2
2
 
3
- This log was last generated on Tue, 28 Apr 2026 15:37:06 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 28 Apr 2026 16:40:32 GMT and should not be manually modified.
4
+
5
+ ## 0.7.4
6
+ Tue, 28 Apr 2026 16:40:32 GMT
7
+
8
+ ### Patches
9
+
10
+ - Fix fips library dynamic import for vite 8
4
11
 
5
12
  ## 0.7.3
6
13
  Tue, 28 Apr 2026 15:37:06 GMT
@@ -67,9 +67,10 @@ export const getVirtruCrypto = async () => {
67
67
  * Loaded dynamically so non-FIPS consumers do not require the optional peer.
68
68
  */
69
69
  export const initializeFipsCrypto = () => {
70
- // Keep specifier dynamic so Vite/Rollup does not eagerly resolve the optional
71
- // peer in non-FIPS builds; load occurs only when FIPS mode is enabled.
72
- const modulePath = '@virtru-private/fips-crypto-js';
70
+ // .join() prevents esbuild from constant-folding the specifier into a string
71
+ // literal, which would cause Vite 8's import-analysis to error on the
72
+ // unresolvable bare specifier. @vite-ignore kept for defense in depth.
73
+ const modulePath = ['@virtru-private', 'fips-crypto-js'].join('/');
73
74
  void import(/* @vite-ignore */ modulePath).catch((err) => {
74
75
  console.error('Virtru FIPS crypto initialization failed: @virtru-private/fips-crypto-js is not installed.', err);
75
76
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virtru/dsp-sdk",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "main": "dist/src/index.js",
6
6
  "exports": {