mikuru 1.0.35 → 1.0.37

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,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.37 - 2026-05-17
4
+
5
+ - Fixed `MikuruVideoPlayer` speed and skip settings so option records avoid `.value` template access, preventing crashes in consuming apps when selecting playback rate or keyboard skip seconds.
6
+
7
+ ## 1.0.36 - 2026-05-17
8
+
9
+ - Stabilized `MikuruVideoPlayer` settings interactions so playback speed and keyboard skip selections defer UI updates out of the click stack, matching the other media controls and avoiding recursive update freezes.
10
+
3
11
  ## 1.0.35 - 2026-05-17
4
12
 
5
13
  - Added package-exported tabs, accordion, form controls, select, combobox, header, footer, and side menu components with typed exports and dogfood coverage.
@@ -108,11 +108,11 @@
108
108
  <span class="settings-label">Speed</span>
109
109
  <button
110
110
  m-for="rate in rateOptions"
111
- :key="rate.value"
111
+ :key="rate.rate"
112
112
  type="button"
113
113
  class="settings-option"
114
- :class="{ active: rate.value === playbackRateValue }"
115
- @click="setPlaybackRate(rate.value)"
114
+ :class="{ active: rate.rate === playbackRateValue }"
115
+ @click="setPlaybackRate(rate.rate)"
116
116
  >
117
117
  {{ rate.label }}
118
118
  </button>
@@ -122,11 +122,11 @@
122
122
  <span class="settings-label">Skip</span>
123
123
  <button
124
124
  m-for="option in skipOptions"
125
- :key="option.value"
125
+ :key="option.seconds"
126
126
  type="button"
127
127
  class="settings-option"
128
- :class="{ active: option.value === skipSeconds }"
129
- @click="setSkipSeconds(option.value)"
128
+ :class="{ active: option.seconds === skipSeconds }"
129
+ @click="setSkipSeconds(option.seconds)"
130
130
  >
131
131
  {{ option.label }}
132
132
  </button>
@@ -268,17 +268,17 @@ const playIconClass = computed(() => isPlaying.value ? "icon-pause" : "icon-play
268
268
  const fullscreenIconClass = computed(() => isFullscreen.value ? "icon-minimize" : "icon-maximize");
269
269
  const statusText = computed(() => isLive.value ? "LIVE" : subtitle.value);
270
270
  const rateOptions = [
271
- { value: 0.75, label: "0.75x" },
272
- { value: 1, label: "1x" },
273
- { value: 1.25, label: "1.25x" },
274
- { value: 1.5, label: "1.5x" },
275
- { value: 2, label: "2x" }
271
+ { rate: 0.75, label: "0.75x" },
272
+ { rate: 1, label: "1x" },
273
+ { rate: 1.25, label: "1.25x" },
274
+ { rate: 1.5, label: "1.5x" },
275
+ { rate: 2, label: "2x" }
276
276
  ];
277
277
  const skipOptions = [
278
- { value: 5, label: "5s" },
279
- { value: 10, label: "10s" },
280
- { value: 15, label: "15s" },
281
- { value: 30, label: "30s" }
278
+ { seconds: 5, label: "5s" },
279
+ { seconds: 10, label: "10s" },
280
+ { seconds: 15, label: "15s" },
281
+ { seconds: 30, label: "30s" }
282
282
  ];
283
283
  const showPlayControl = computed(() => hasControl("play"));
284
284
  const showSeekControl = computed(() => hasControl("seek"));
@@ -619,20 +619,24 @@ function selectQuality(id) {
619
619
 
620
620
  function setPlaybackRate(nextRate) {
621
621
  if (isDisposed) return;
622
- playbackRateValue.value = nextRate;
623
- settingsOpen.value = false;
624
622
  window.setTimeout(() => {
625
623
  if (isDisposed) return;
624
+ playbackRateValue.value = nextRate;
625
+ settingsOpen.value = false;
626
626
  const media = getMedia();
627
627
  if (!media) return;
628
+ ignoreMediaEventsFor(80);
628
629
  media.playbackRate = nextRate;
629
630
  }, 0);
630
631
  }
631
632
 
632
633
  function setSkipSeconds(nextSeconds) {
633
634
  if (isDisposed) return;
634
- skipSeconds.value = nextSeconds;
635
- settingsOpen.value = false;
635
+ window.setTimeout(() => {
636
+ if (isDisposed) return;
637
+ skipSeconds.value = nextSeconds;
638
+ settingsOpen.value = false;
639
+ }, 0);
636
640
  }
637
641
 
638
642
  function handleDocumentPointerDown(event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mikuru",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A compile-first JavaScript framework with Vue-like authoring and Svelte-like generated DOM updates.",