masua 0.12.0 → 0.12.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.
Files changed (2) hide show
  1. package/index.ts +2 -2
  2. package/package.json +18 -11
package/index.ts CHANGED
@@ -195,7 +195,7 @@ function resizeThrottler(state: State) {
195
195
  // ignore resize events as long as an actualResizeHandler execution is in the queue
196
196
  if (!state.resizeTimeout) {
197
197
  state.resizeTimeout = setTimeout(() => {
198
- state.resizeTimeout = undefined
198
+ delete state.resizeTimeout
199
199
  // IOS Safari throw random resize event on scroll, call layout only if size has changed
200
200
  if (state.container.clientWidth !== state.width) {
201
201
  layout(state)
@@ -222,7 +222,7 @@ function init(state: State) {
222
222
  window.removeEventListener('resize', onResize)
223
223
  if (state.resizeTimeout != null) {
224
224
  window.clearTimeout(state.resizeTimeout)
225
- state.resizeTimeout = undefined
225
+ delete state.resizeTimeout
226
226
  }
227
227
  }
228
228
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "masua",
3
3
  "description": "Simple masonry layout library in TypeScript.",
4
- "version": "0.12.0",
4
+ "version": "0.12.1",
5
5
  "repository": "github:tobua/masua",
6
6
  "homepage": "https://tobua.github.io/masua",
7
7
  "license": "MIT",
@@ -17,12 +17,12 @@
17
17
  "demo"
18
18
  ],
19
19
  "devDependencies": {
20
- "@biomejs/biome": "^2.1.4",
21
- "@happy-dom/global-registrator": "^20.8.9",
22
- "@types/bun": "^1.2.19",
23
- "@types/react": "^19.1.9",
24
- "typescript": "^5.9.2",
25
- "zero-configuration": "^1.0.5"
20
+ "@biomejs/biome": "^2.5.3",
21
+ "@happy-dom/global-registrator": "^20.10.6",
22
+ "@types/bun": "^1.3.14",
23
+ "@types/react": "^19.2.17",
24
+ "typescript": "^7.0.2",
25
+ "zero-configuration": "^1.2.0"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">= 18",
@@ -60,9 +60,6 @@
60
60
  "react",
61
61
  "typescript"
62
62
  ],
63
- "publishConfig": {
64
- "provenance": true
65
- },
66
63
  "configuration": {
67
64
  "gitignore": "bundle",
68
65
  "vscode": "biome",
@@ -82,7 +79,10 @@
82
79
  {
83
80
  "extends": "plugin",
84
81
  "compilerOptions": {
85
- "jsx": "react-jsx"
82
+ "jsx": "react-jsx",
83
+ "types": [
84
+ "bun"
85
+ ]
86
86
  },
87
87
  "files": [
88
88
  "index.ts",
@@ -105,6 +105,13 @@
105
105
  ],
106
106
  "biome": {
107
107
  "extends": "recommended",
108
+ "linter": {
109
+ "rules": {
110
+ "performance": {
111
+ "noDelete": "off"
112
+ }
113
+ }
114
+ },
108
115
  "files": {
109
116
  "includes": [
110
117
  "**/*",