@cssxjs/runtime 0.2.27 → 0.2.30

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
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.30](https://github.com/startupjs/startupjs/compare/v0.2.29...v0.2.30) (2026-01-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * support animation and transition (the way it's expected by Reanimated v4) ([44a1f77](https://github.com/startupjs/startupjs/commit/44a1f778074f1f65a8ccd76994a6bf1a3eb5e4a7))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.2.29](https://github.com/startupjs/startupjs/compare/v0.2.28...v0.2.29) (2025-12-26)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **runtime:** show warning about missing window just once ([b2f07d7](https://github.com/startupjs/startupjs/commit/b2f07d7a6b4f203477057db61c8a2456660d9e87))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [0.2.27](https://github.com/startupjs/startupjs/compare/v0.2.26...v0.2.27) (2025-12-16)
7
29
 
8
30
  **Note:** Version bump only for package @cssxjs/runtime
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cssxjs/runtime",
3
- "version": "0.2.27",
3
+ "version": "0.2.30",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -39,7 +39,7 @@
39
39
  "micro-memoize": "^3.0.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@startupjs/css-to-react-native-transform": "^2.1.0-1",
42
+ "@startupjs/css-to-react-native-transform": "2.1.0-2",
43
43
  "mocha": "^8.1.1"
44
44
  },
45
45
  "peerDependencies": {
@@ -54,5 +54,5 @@
54
54
  "optional": true
55
55
  }
56
56
  },
57
- "gitHead": "68a2b7e3305e225801f6e636eff421e0a34d4a6c"
57
+ "gitHead": "2fd171f6da726008a2386471bd5be4b5291e49ab"
58
58
  }
@@ -1,8 +1,14 @@
1
1
  import dimensions, { getDimensionsInitialized, setDimensionsInitialized } from '../dimensions.js'
2
2
 
3
+ let shownWarningGetDimensions = false
4
+ let shownWarningInitDimensionsUpdater = false
5
+
3
6
  export function getDimensions () {
4
7
  if (typeof window === 'undefined' || !window.innerWidth || !window.innerHeight) {
5
- console.warn('[cssx] No "window" global variable. Falling back to constant window width and height of 1024x768')
8
+ if (!shownWarningGetDimensions) {
9
+ console.warn('[cssx] No "window" global variable. Falling back to constant window width and height of 1024x768')
10
+ shownWarningGetDimensions = true
11
+ }
6
12
  return { width: 1024, height: 768 }
7
13
  }
8
14
  return {
@@ -24,7 +30,10 @@ export function initDimensionsUpdater () {
24
30
  if (getDimensionsInitialized()) return
25
31
  setDimensionsInitialized(true)
26
32
  if (typeof window === 'undefined' || !window.innerWidth || !window.addEventListener) {
27
- console.warn('[cssx] No "window" global variable. Setting default window width to 1024 and skipping updater.')
33
+ if (!shownWarningInitDimensionsUpdater) {
34
+ console.warn('[cssx] No "window" global variable. Setting default window width to 1024 and skipping updater.')
35
+ shownWarningInitDimensionsUpdater = true
36
+ }
28
37
  dimensions.width = 1024
29
38
  return
30
39
  }