@aarsteinmedia/dotlottie-player 5.1.10 → 5.1.12

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
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  Changelog was only added since [3.2.3], so it's not exhaustive. [Please report any missing noteable changes to us](https://github.com/aarsteinmedia/dotlottie-player/issues), and we'll add them promptly.
9
9
 
10
+ ## [5.1.12] - 06-06-2025
11
+
12
+ ### Changed
13
+
14
+ - Fixed issue with sanitation of string values, causing trouble for text layers and unencoded expressions.
15
+
16
+ ## [5.1.11] - 06-06-2025
17
+
18
+ ### Changed
19
+
20
+ - Fixed issue with interpolation of shapes, causing some renders to fail.
21
+
22
+
10
23
  ## [5.1.10] - 05-06-2025
11
24
 
12
25
  ### Changed
@@ -252,6 +265,8 @@ Changelog was only added since [3.2.3], so it's not exhaustive. [Please report a
252
265
  - Removed dependencies
253
266
  - `@lit`
254
267
 
268
+ [5.1.12]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/5.1.12
269
+ [5.1.11]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/5.1.11
255
270
  [5.1.10]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/5.1.10
256
271
  [5.1.4]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/5.1.4
257
272
  [5.1.3]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/5.1.3
package/dist/index.js CHANGED
@@ -529,8 +529,11 @@ const unzip = async (resp)=>{
529
529
  }
530
530
  return manifest;
531
531
  }, prepareString = (str)=>str.replaceAll(new RegExp(/"""/, 'g'), '""').replaceAll(/(["'])(.*?)\1/g, (_match, quote, content)=>{
532
- const replacedContent = content.replaceAll(/[^\w\s.#]/g, '');
533
- return `${quote}${replacedContent}${quote}`;
532
+ /**
533
+ * TODO: This caused text layers and expressions to be mangled
534
+ * Consider a more nuanced sanitaiton, if at all.
535
+ */ // const replacedContent = content.replaceAll(/[^\w\s.#]/g, '')
536
+ return `${quote}${content}${quote}`;
534
537
  });
535
538
  async function getLottieJSON(resp) {
536
539
  const unzipped = await unzip(resp), manifest = getManifest(unzipped), data = [], toResolve = [], { length } = manifest.animations;