@stylexjs/babel-plugin
Advanced tools
Comparing version 0.5.1 to 0.6.0
@@ -10,2 +10,3 @@ /** | ||
import type { FlatCompiledStyles } from '../../../shared/src/common-types'; | ||
import * as t from '@babel/types'; | ||
@@ -25,1 +26,4 @@ import { IncludedStyles } from '@stylexjs/shared'; | ||
): t.ObjectExpression; | ||
export declare function removeObjectsWithSpreads(obj: { | ||
readonly [$$Key$$: string]: FlatCompiledStyles; | ||
}): { readonly [$$Key$$: string]: FlatCompiledStyles }; |
@@ -146,2 +146,8 @@ /** | ||
addStyle(style: [string, { ltr: string; rtl?: string | null }, number]): void; | ||
registerStyles( | ||
styles: ReadonlyArray< | ||
[string, { ltr: string; rtl?: string | null }, number] | ||
>, | ||
path?: null | undefined | NodePath, | ||
): void; | ||
markComposedNamespace( | ||
@@ -148,0 +154,0 @@ memberExpression: [string, true | string, true | Array<string>], |
@@ -11,9 +11,10 @@ /** | ||
export type Check<T> = (val: unknown, name?: string) => Error | T; | ||
export type InferCheckType<T> = T extends Check<infer U> | ||
? U | ||
: /** | ||
* > 11 | export type InferCheckType<T> = T extends Check<infer U> ? U : empty; | ||
* | ^^^^^ Unsupported feature: Translating "empty type" is currently not supported. | ||
**/ | ||
any; | ||
export type InferCheckType<T> = | ||
T extends Check<infer U> | ||
? U | ||
: /** | ||
* > 11 | export type InferCheckType<T> = T extends Check<infer U> ? U : empty; | ||
* | ^^^^^ Unsupported feature: Translating "empty type" is currently not supported. | ||
**/ | ||
any; | ||
type Msg = (value: unknown, name?: string) => string; | ||
@@ -20,0 +21,0 @@ type PrimitiveChecker<T> = (message?: Msg) => Check<T>; |
{ | ||
"name": "@stylexjs/babel-plugin", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"description": "StyleX babel plugin.", | ||
@@ -17,4 +17,4 @@ "main": "lib/index.js", | ||
"@babel/helper-module-imports": "^7.22.15", | ||
"@stylexjs/shared": "0.5.1", | ||
"@stylexjs/stylex": "0.5.1", | ||
"@stylexjs/shared": "0.6.0", | ||
"@stylexjs/stylex": "0.6.0", | ||
"@babel/core": "^7.23.6", | ||
@@ -21,0 +21,0 @@ "@babel/traverse": "^7.23.6", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
584178
7418
+ Added@stylexjs/shared@0.6.0(transitive)
+ Added@stylexjs/stylex@0.6.0(transitive)
- Removed@stylexjs/shared@0.5.1(transitive)
- Removed@stylexjs/stylex@0.5.1(transitive)
- Removedutility-types@3.11.0(transitive)
Updated@stylexjs/shared@0.6.0
Updated@stylexjs/stylex@0.6.0