@cube-drone/marquee-turbolink 0.7.0 → 0.7.2

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/plugins.js CHANGED
@@ -7,8 +7,9 @@ function extension(target) {
7
7
  const path = target.split(/[?#]/, 1)[0];
8
8
  return path.includes(".") ? path.slice(path.lastIndexOf(".") + 1).toLowerCase() : "";
9
9
  }
10
- const IMAGE_EXT = new Set(["png", "jpg", "jpeg", "gif", "webp", "avif", "svg"]);
11
- const AUDIO_EXT = new Set(["mp3", "ogg", "wav", "flac", "m4a"]);
10
+ // Mirror of rust/markup/src/turbolink.rs; `apng` and `opus` joined 2026-09-03.
11
+ const IMAGE_EXT = new Set(["png", "jpg", "jpeg", "gif", "webp", "avif", "apng", "svg"]);
12
+ const AUDIO_EXT = new Set(["mp3", "ogg", "opus", "wav", "flac", "m4a"]);
12
13
  const VIDEO_EXT = new Set(["mp4", "webm"]);
13
14
  // Shared style chunks: plugins that emit the same classes reference the
14
15
  // same constant, and turbolinkStyles() dedupes by content.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cube-drone/marquee-turbolink",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "Pluggable turbolink rendering for Marquee: link expanders as plugins, plain link as the floor",
5
5
  "license": "MPL-2.0",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "prepack": "npm run build"
35
35
  },
36
36
  "dependencies": {
37
- "@cube-drone/marquee-parser": "^0.7.0"
37
+ "@cube-drone/marquee-parser": "^0.7.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node": "^24.0.0",
package/src/plugins.ts CHANGED
@@ -11,8 +11,9 @@ function extension(target: string): string {
11
11
  return path.includes(".") ? path.slice(path.lastIndexOf(".") + 1).toLowerCase() : "";
12
12
  }
13
13
 
14
- const IMAGE_EXT = new Set(["png", "jpg", "jpeg", "gif", "webp", "avif", "svg"]);
15
- const AUDIO_EXT = new Set(["mp3", "ogg", "wav", "flac", "m4a"]);
14
+ // Mirror of rust/markup/src/turbolink.rs; `apng` and `opus` joined 2026-09-03.
15
+ const IMAGE_EXT = new Set(["png", "jpg", "jpeg", "gif", "webp", "avif", "apng", "svg"]);
16
+ const AUDIO_EXT = new Set(["mp3", "ogg", "opus", "wav", "flac", "m4a"]);
16
17
  const VIDEO_EXT = new Set(["mp4", "webm"]);
17
18
 
18
19
  // Shared style chunks: plugins that emit the same classes reference the