autumnnote 3.0.0 → 3.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autumnnote",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "WYSIWYG rich-text editor built with vanilla JavaScript — zero dependencies, no jQuery. Dark mode, @mention, markdown shortcuts, bubble toolbar. React and Vue 3 wrappers included.",
5
5
  "type": "module",
6
6
  "main": "dist/autumnnote.cjs",
@@ -46,7 +46,7 @@
46
46
  "test": "vitest run",
47
47
  "test:browser": "vitest run --config vitest.browser.config.js",
48
48
  "test:watch": "vitest",
49
- "lint": "eslint src test",
49
+ "lint": "eslint src test scripts packages/react/src packages/react/test packages/vue/src packages/vue/test \"*.config.js\" \"packages/*/*.config.js\"",
50
50
  "typecheck": "tsc --noEmit && pnpm --filter autumnnote-react typecheck && pnpm --filter autumnnote-vue typecheck",
51
51
  "build:cdn": "vite build --config vite.cdn.config.js",
52
52
  "analyze": "cross-env ANALYZE=1 vite build",
@@ -115,9 +115,9 @@
115
115
  "author": "Minh Pham",
116
116
  "license": "MIT",
117
117
  "devDependencies": {
118
- "@vitest/browser": "^4.1.8",
119
- "@vitest/browser-playwright": "^4.1.10",
120
- "@vitest/coverage-v8": "^4.1.8",
118
+ "@vitest/browser": "^4.1.11",
119
+ "@vitest/browser-playwright": "^4.1.11",
120
+ "@vitest/coverage-v8": "^4.1.11",
121
121
  "cross-env": "^10.1.0",
122
122
  "eslint": "^10.8.1",
123
123
  "jsdom": "^30.0.1",
@@ -126,7 +126,7 @@
126
126
  "sass": "^1.102.0",
127
127
  "typescript": "^7.0.2",
128
128
  "vite": "^8.2.1",
129
- "vitest": "^4.1.8"
129
+ "vitest": "^4.1.11"
130
130
  },
131
131
  "packageManager": "pnpm@11.1.3",
132
132
  "engines": {
@@ -22,6 +22,7 @@ export function clamp(val, min, max) {
22
22
  */
23
23
  export function debounce(fn, delay) {
24
24
  let timer;
25
+ /** @this {any} */
25
26
  return function (...args) {
26
27
  clearTimeout(timer);
27
28
  timer = setTimeout(() => fn.apply(this, args), delay);
@@ -37,6 +38,7 @@ export function debounce(fn, delay) {
37
38
  export function throttle(fn, limit) {
38
39
  let lastCall = -Infinity;
39
40
  let trailingTimer = null;
41
+ /** @this {any} */
40
42
  return function (...args) {
41
43
  const now = performance.now();
42
44
  const elapsed = now - lastCall;