@cssxjs/babel-plugin-rn-stylename-to-style 0.2.9 → 0.2.11

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 (3) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/index.js +6 -6
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v0.2.11 (Fri Nov 07 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix: make pug reconstruct bindings; add extra options to babel preset; implement reactive update of @media for web and RN ([@cray0000](https://github.com/cray0000))
6
+
7
+ #### Authors: 1
8
+
9
+ - Pavel Zhukov ([@cray0000](https://github.com/cray0000))
10
+
11
+ ---
12
+
1
13
  # v0.2.8 (Wed Nov 05 2025)
2
14
 
3
15
  #### ⚠️ Pushed to `master`
package/index.js CHANGED
@@ -10,7 +10,7 @@ const STYLE_REGEX = /(?:^s|S)tyle$/
10
10
  const ROOT_STYLE_PROP_NAME = 'style'
11
11
  const RUNTIME_PROCESS_NAME = 'cssx'
12
12
  const OPTIONS_CACHE = ['teamplay']
13
- const OPTIONS_PLATFORM = ['react-native', 'web']
13
+ const OPTIONS_REACT_TYPES = ['react-native', 'web']
14
14
  const DEFAULT_MAGIC_IMPORTS = ['cssxjs', 'startupjs']
15
15
  const DEFAULT_OBSERVER_NAME = 'observer'
16
16
  const DEFAULT_OBSERVER_IMPORTS = ['teamplay', 'startupjs']
@@ -565,15 +565,15 @@ function getRuntimePath ($node, state, hasObserver) {
565
565
  // If observer() is used in this file then we force cache to 'teamplay'
566
566
  // TODO: this is a bit of a hack, think of a better way to do this
567
567
  if (!cache && hasObserver) cache = 'teamplay'
568
- const platform = state.opts.platform
569
- if (platform && !OPTIONS_PLATFORM.includes(platform)) {
568
+ const reactType = state.opts.reactType
569
+ if (reactType && !OPTIONS_REACT_TYPES.includes(reactType)) {
570
570
  throw $node.buildCodeFrameError(
571
- `Invalid platform option value: "${platform}". Supported values: ${OPTIONS_PLATFORM.join(', ')}`
571
+ `Invalid reactType option value: "${reactType}". Supported values: ${OPTIONS_REACT_TYPES.join(', ')}`
572
572
  )
573
573
  }
574
574
  let runtimePath = RUNTIME_LIBRARY
575
- if (platform) {
576
- runtimePath += `/${platform}`
575
+ if (reactType) {
576
+ runtimePath += `/${reactType}`
577
577
  if (cache) {
578
578
  runtimePath += `-${cache}`
579
579
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cssxjs/babel-plugin-rn-stylename-to-style",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,16 +25,16 @@
25
25
  "dependencies": {
26
26
  "@babel/template": "^7.4.0",
27
27
  "@babel/types": "^7.0.0",
28
- "@cssxjs/runtime": "^0.2.9"
28
+ "@cssxjs/runtime": "^0.2.11"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@babel/plugin-syntax-jsx": "^7.0.0",
32
- "@cssxjs/babel-plugin-react-pug": "^0.2.9",
32
+ "@cssxjs/babel-plugin-react-pug": "^0.2.11",
33
33
  "babel-plugin-tester": "^9.1.0",
34
34
  "jest": "^30.0.4"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "teamplay": "*"
38
38
  },
39
- "gitHead": "af8db22bc0f2aaff393010ad7c50b1233bc23214"
39
+ "gitHead": "93a4681bc0182d5c2faa9e3b8aa4cbdff6c4e780"
40
40
  }