@atlaspack/rust 3.11.0 → 3.12.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/index.d.ts CHANGED
@@ -74,7 +74,8 @@ export interface InlineRequiresOptimizerResult {
74
74
  export declare function runInlineRequiresOptimizer(input: InlineRequiresOptimizerInput): InlineRequiresOptimizerResult
75
75
  /** Runs in the rayon thread pool */
76
76
  export declare function runInlineRequiresOptimizerAsync(input: InlineRequiresOptimizerInput): object
77
- export interface CompiledCssInJsTransformConfig {
77
+ export interface CompiledCssInJsConfig {
78
+ configPath?: string
78
79
  importReact?: boolean
79
80
  nonce?: string
80
81
  importSources?: Array<string>
@@ -84,22 +85,46 @@ export interface CompiledCssInJsTransformConfig {
84
85
  processXcss?: boolean
85
86
  increaseSpecificity?: boolean
86
87
  sortAtRules?: boolean
88
+ sortShorthand?: boolean
87
89
  classHashPrefix?: string
88
90
  flattenMultipleSelectors?: boolean
89
91
  extract?: boolean
90
92
  ssr?: boolean
93
+ unsafeReportSafeAssetsForMigration?: boolean
94
+ unsafeUseSafeAssets?: boolean
91
95
  }
92
96
  export interface CompiledCssInJsPluginInput {
93
97
  filename: string
94
98
  projectRoot: string
95
99
  isSource: boolean
96
100
  sourceMaps: boolean
97
- config: CompiledCssInJsTransformConfig
101
+ config: CompiledCssInJsConfig
98
102
  }
99
103
  export interface CompiledCssInJsPluginResult {
100
104
  code: string
101
105
  map?: string
102
106
  styleRules: Array<string>
107
+ diagnostics: Array<JsDiagnostic>
108
+ bailOut: boolean
109
+ codeHash: string
110
+ }
111
+ export interface JsSourceLocation {
112
+ startLine: number
113
+ startCol: number
114
+ endLine: number
115
+ endCol: number
116
+ }
117
+ export interface JsCodeHighlight {
118
+ message?: string
119
+ loc: JsSourceLocation
120
+ }
121
+ export interface JsDiagnostic {
122
+ message: string
123
+ codeHighlights?: Array<JsCodeHighlight>
124
+ hints?: Array<string>
125
+ showEnvironment: boolean
126
+ severity: string
127
+ documentationUrl?: string
103
128
  }
104
129
  export declare function applyCompiledCssInJsPlugin(rawCode: Buffer, input: CompiledCssInJsPluginInput): object
105
130
  export interface JsFileSystemOptions {
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/rust",
3
- "version": "3.11.0",
3
+ "version": "3.12.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"