styled-components 6.2.1-prerelease.0 → 6.3.0

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": "styled-components",
3
- "version": "6.2.1-prerelease.0",
3
+ "version": "6.3.0",
4
4
  "description": "CSS for the <Component> Age. Style components your way with speed, strong typing, and flexibility.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -14,20 +14,6 @@
14
14
  "./dist/styled-components.esm.js": "./dist/styled-components.browser.esm.js"
15
15
  },
16
16
  "sideEffects": false,
17
- "scripts": {
18
- "generateErrors": "node scripts/generateErrorMap.js",
19
- "prebuild": "rimraf dist && pnpm run generateErrors",
20
- "build": "rollup -c",
21
- "postbuild": "pnpm run size",
22
- "pretest": "pnpm run generateErrors",
23
- "test": "pnpm run test:web && pnpm run test:native",
24
- "test:web": "jest -c jest.config.main.js",
25
- "test:native": "jest -c jest.config.native.js --forceExit",
26
- "size": "bundlewatch",
27
- "prettier": "prettier src --write",
28
- "prettier:check": "prettier src --check",
29
- "prepublishOnly": "cp ../../README.md . && pnpm run build"
30
- },
31
17
  "repository": {
32
18
  "type": "git",
33
19
  "url": "git+https://github.com/styled-components/styled-components.git"
@@ -53,15 +39,15 @@
53
39
  },
54
40
  "homepage": "https://styled-components.com",
55
41
  "dependencies": {
56
- "@emotion/is-prop-valid": "1.2.2",
57
- "@emotion/unitless": "0.8.1",
42
+ "@emotion/is-prop-valid": "1.4.0",
43
+ "@emotion/unitless": "0.10.0",
58
44
  "@types/stylis": "4.2.7",
59
45
  "css-to-react-native": "3.2.0",
60
46
  "csstype": "3.2.3",
61
47
  "postcss": "8.4.49",
62
48
  "shallowequal": "1.1.0",
63
49
  "stylis": "4.3.6",
64
- "tslib": "2.6.2"
50
+ "tslib": "2.8.1"
65
51
  },
66
52
  "peerDependencies": {
67
53
  "react": ">= 16.8.0",
@@ -96,7 +82,7 @@
96
82
  "babel-plugin-add-module-exports": "^1.0.4",
97
83
  "babel-plugin-styled-components": "^2.1.4",
98
84
  "babel-plugin-tester": "^10.1.0",
99
- "bundlewatch": "^0.3.3",
85
+ "bundlewatch": "^0.4.1",
100
86
  "jest": "^30.1.3",
101
87
  "jest-environment-jsdom": "^30.1.2",
102
88
  "jest-serializer-html": "^7.1.0",
@@ -138,5 +124,18 @@
138
124
  },
139
125
  "engines": {
140
126
  "node": ">= 16"
127
+ },
128
+ "scripts": {
129
+ "generateErrors": "node scripts/generateErrorMap.js",
130
+ "prebuild": "rimraf dist && pnpm run generateErrors",
131
+ "build": "rollup -c",
132
+ "postbuild": "pnpm run size",
133
+ "pretest": "pnpm run generateErrors",
134
+ "test": "pnpm run test:web && pnpm run test:native",
135
+ "test:web": "jest -c jest.config.main.js",
136
+ "test:native": "jest -c jest.config.native.js --forceExit",
137
+ "size": "bundlewatch",
138
+ "prettier": "prettier src --write",
139
+ "prettier:check": "prettier src --check"
141
140
  }
142
- }
141
+ }
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * Detect if we're running in a React Server Component environment.
3
- * RSC environments lack createContext, making this a reliable indicator.
4
- * This is evaluated once at module load time and is deterministic per environment.
5
- */
6
- export declare const isRSC: boolean;
7
- /**
8
- * Check if React context APIs are available (opposite of isRSC).
9
- * Used to guard context creation and usage.
10
- */
11
- export declare const canUseContext: boolean;
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * Detect if we're running in a React Server Component environment.
3
- * RSC environments lack createContext, making this a reliable indicator.
4
- * This is evaluated once at module load time and is deterministic per environment.
5
- */
6
- export declare const isRSC: boolean;
7
- /**
8
- * Check if React context APIs are available (opposite of isRSC).
9
- * Used to guard context creation and usage.
10
- */
11
- export declare const canUseContext: boolean;