@swc/plugin-styled-jsx 1.5.25 → 1.5.27

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/Cargo.toml CHANGED
@@ -15,8 +15,8 @@ custom_transform = ["swc_core/common_concurrent"]
15
15
 
16
16
  [dependencies]
17
17
  easy-error = "1.0.0"
18
- styled_jsx = {version = "0.29.0", path = "./transform"}
19
- swc_core = { version = "0.43.14", features = [
18
+ styled_jsx = { version = "0.29.0", path = "./transform" }
19
+ swc_core = { version = "0.44.2", features = [
20
20
  "common",
21
21
  "ecma_ast",
22
22
  "css_ast",
@@ -32,7 +32,5 @@ swc_core = { version = "0.43.14", features = [
32
32
  tracing = { version = "0.1.37", features = ["release_max_level_off"] }
33
33
 
34
34
  [dev-dependencies]
35
- swc_core = { features = [
36
- "testing_transform",
37
- ], version = "0.43.14" }
38
- testing = "0.31.14"
35
+ swc_core = { features = ["testing_transform"], version = "0.44.2" }
36
+ testing = "0.31.17"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/plugin-styled-jsx",
3
- "version": "1.5.25",
3
+ "version": "1.5.27",
4
4
  "description": "SWC plugin for styled-jsx",
5
5
  "main": "swc_plugin_styled_jsx.wasm",
6
6
  "scripts": {
Binary file
@@ -4,7 +4,7 @@ description = "AST transforms visitor for styled-jsx"
4
4
  edition = "2021"
5
5
  license = "Apache-2.0"
6
6
  name = "styled_jsx"
7
- version = "0.29.5"
7
+ version = "0.29.7"
8
8
 
9
9
  [features]
10
10
  custom_transform = ["swc_core/common_concurrent"]
@@ -13,7 +13,7 @@ custom_transform = ["swc_core/common_concurrent"]
13
13
  easy-error = "1.0.0"
14
14
  tracing = "0.1.37"
15
15
 
16
- swc_core = { version = "0.43.14", features = [
16
+ swc_core = { version = "0.44.2", features = [
17
17
  "common",
18
18
  "ecma_ast",
19
19
  "css_ast",
@@ -24,11 +24,9 @@ swc_core = { version = "0.43.14", features = [
24
24
  "ecma_parser",
25
25
  "ecma_minifier",
26
26
  "ecma_utils",
27
- "ecma_visit"
27
+ "ecma_visit",
28
28
  ] }
29
29
 
30
30
  [dev-dependencies]
31
- testing = "0.31.14"
32
- swc_core = { features = [
33
- "testing_transform"
34
- ], version = "0.43.14" }
31
+ testing = "0.31.17"
32
+ swc_core = { features = ["testing_transform"], version = "0.44.2" }
@@ -1,21 +1,27 @@
1
1
 
2
2
  x Detected nested styled-jsx tag.
3
3
  | Read more: https://nextjs.org/docs/messages/nested-styled-jsx-tags
4
- ,-[input.js:13:9]
5
- 13 | <style jsx>{``}</style>
6
- : ^^^^^^^^^^^^^^^^^^^^^^^
4
+ ,-[input.js:12:1]
5
+ 12 | Welcome!
6
+ 13 | <style jsx>{``}</style>
7
+ : ^^^^^^^^^^^^^^^^^^^^^^^
8
+ 14 | </h1>
7
9
  `----
8
10
 
9
11
  x Detected nested styled-jsx tag.
10
12
  | Read more: https://nextjs.org/docs/messages/nested-styled-jsx-tags
11
- ,-[input.js:21:9]
12
- 21 | <style jsx global>{``}</style>
13
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
+ ,-[input.js:20:1]
14
+ 20 | Hello world!
15
+ 21 | <style jsx global>{``}</style>
16
+ : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
+ 22 | </h1>
14
18
  `----
15
19
 
16
20
  x Detected nested styled-jsx tag.
17
21
  | Read more: https://nextjs.org/docs/messages/nested-styled-jsx-tags
18
- ,-[input.js:26:9]
19
- 26 | <style jsx>{styles}</style>
20
- : ^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
+ ,-[input.js:25:1]
23
+ 25 | <>
24
+ 26 | <style jsx>{styles}</style>
25
+ : ^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
+ 27 | </>
21
27
  `----
@@ -1,7 +1,9 @@
1
1
 
2
2
  x Expected one child under JSX style tag, but got 0.
3
3
  | Read more: https://nextjs.org/docs/messages/invalid-styled-jsx-children
4
- ,-[input.js:3:5]
5
- 3 | ,-> <style jsx>
4
+ ,-[input.js:2:1]
5
+ 2 | <div>
6
+ 3 | ,-> <style jsx>
6
7
  4 | `-> </style>
8
+ 5 | </div>
7
9
  `----
@@ -1,9 +1,11 @@
1
1
 
2
2
  x Expected one child under JSX style tag, but got 2.
3
3
  | Read more: https://nextjs.org/docs/messages/invalid-styled-jsx-children
4
- ,-[input.js:3:5]
5
- 3 | ,-> <style jsx>
4
+ ,-[input.js:2:1]
5
+ 2 | <div>
6
+ 3 | ,-> <style jsx>
6
7
  4 | | {`.p {}`}
7
8
  5 | | {`.p {}`}
8
9
  6 | `-> </style>
10
+ 7 | </div>
9
11
  `----
@@ -1,8 +1,10 @@
1
1
 
2
2
  x Expected a single child of type JSXExpressionContainer under JSX Style tag.
3
3
  | Read more: https://nextjs.org/docs/messages/invalid-styled-jsx-children
4
- ,-[input.js:3:5]
5
- 3 | ,-> <style jsx>
4
+ ,-[input.js:2:1]
5
+ 2 | <div>
6
+ 3 | ,-> <style jsx>
6
7
  4 | | 10
7
8
  5 | `-> </style>
9
+ 6 | </div>
8
10
  `----
@@ -1,8 +1,10 @@
1
1
 
2
2
  x Expected a template literal, string or identifier inside the JSXExpressionContainer.
3
3
  | Read more: https://nextjs.org/docs/messages/invalid-styled-jsx-children
4
- ,-[input.js:3:5]
5
- 3 | ,-> <style jsx>
4
+ ,-[input.js:2:1]
5
+ 2 | <div>
6
+ 3 | ,-> <style jsx>
6
7
  4 | | {[]}
7
8
  5 | `-> </style>
9
+ 6 | </div>
8
10
  `----