@atlaspack/rust 3.8.3 → 3.9.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 +48 -0
- package/index.darwin-arm64.node +0 -0
- package/index.darwin-x64.node +0 -0
- package/index.js +3 -1
- package/index.linux-arm64-gnu.node +0 -0
- package/index.linux-x64-gnu.node +0 -0
- package/package.json +1 -1
- package/types.d.ts +27 -0
package/index.d.ts
CHANGED
|
@@ -71,6 +71,34 @@ export interface InlineRequiresOptimizerResult {
|
|
|
71
71
|
export declare function runInlineRequiresOptimizer(input: InlineRequiresOptimizerInput): InlineRequiresOptimizerResult
|
|
72
72
|
/** Runs in the rayon thread pool */
|
|
73
73
|
export declare function runInlineRequiresOptimizerAsync(input: InlineRequiresOptimizerInput): object
|
|
74
|
+
export interface CompiledCssInJsTransformConfig {
|
|
75
|
+
importReact?: boolean
|
|
76
|
+
nonce?: string
|
|
77
|
+
importSources?: Array<string>
|
|
78
|
+
optimizeCss?: boolean
|
|
79
|
+
extensions?: Array<string>
|
|
80
|
+
addComponentName?: boolean
|
|
81
|
+
processXcss?: boolean
|
|
82
|
+
increaseSpecificity?: boolean
|
|
83
|
+
sortAtRules?: boolean
|
|
84
|
+
classHashPrefix?: string
|
|
85
|
+
flattenMultipleSelectors?: boolean
|
|
86
|
+
extract?: boolean
|
|
87
|
+
ssr?: boolean
|
|
88
|
+
}
|
|
89
|
+
export interface CompiledCssInJsPluginInput {
|
|
90
|
+
filename: string
|
|
91
|
+
projectRoot: string
|
|
92
|
+
isSource: boolean
|
|
93
|
+
sourceMaps: boolean
|
|
94
|
+
config: CompiledCssInJsTransformConfig
|
|
95
|
+
}
|
|
96
|
+
export interface CompiledCssInJsPluginResult {
|
|
97
|
+
code: string
|
|
98
|
+
map?: string
|
|
99
|
+
styleRules: Array<string>
|
|
100
|
+
}
|
|
101
|
+
export declare function applyCompiledCssInJsPlugin(rawCode: Buffer, input: CompiledCssInJsPluginInput): object
|
|
74
102
|
export interface JsFileSystemOptions {
|
|
75
103
|
canonicalize: (...args: any[]) => any
|
|
76
104
|
read: (...args: any[]) => any
|
|
@@ -128,6 +156,26 @@ export declare function transform(opts: object): unknown
|
|
|
128
156
|
export declare function transformAsync(opts: object): object
|
|
129
157
|
export declare function getVcsStateSnapshot(path: string, excludePatterns: Array<string>): object
|
|
130
158
|
export declare function getEventsSince(repoPath: string, vcsStateSnapshot: unknown, newRev?: string | undefined | null): object
|
|
159
|
+
export interface TokensPluginOptions {
|
|
160
|
+
tokenDataPath: string
|
|
161
|
+
shouldUseAutoFallback: boolean
|
|
162
|
+
shouldForceAutoFallback: boolean
|
|
163
|
+
forceAutoFallbackExemptions: Array<string>
|
|
164
|
+
defaultTheme: string
|
|
165
|
+
}
|
|
166
|
+
export interface TokensConfig {
|
|
167
|
+
filename: string
|
|
168
|
+
projectRoot: string
|
|
169
|
+
isSource: boolean
|
|
170
|
+
sourceMaps: boolean
|
|
171
|
+
tokensOptions: TokensPluginOptions
|
|
172
|
+
}
|
|
173
|
+
export interface TokensPluginResult {
|
|
174
|
+
code: string
|
|
175
|
+
map?: string
|
|
176
|
+
}
|
|
177
|
+
/** Apply the tokens transformation plugin to the given code asynchronously */
|
|
178
|
+
export declare function applyTokensPlugin(rawCode: Buffer, config: TokensConfig): object
|
|
131
179
|
export type LMDB = Lmdb
|
|
132
180
|
export class Lmdb {
|
|
133
181
|
constructor(options: LmdbOptions)
|
package/index.darwin-arm64.node
CHANGED
|
Binary file
|
package/index.darwin-x64.node
CHANGED
|
Binary file
|
package/index.js
CHANGED
|
@@ -310,7 +310,7 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { initTracingSubscriber, Lmdb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, AtlaspackTracer, createAssetId, atlaspackNapiCreate, atlaspackNapiBuildAssetGraph, atlaspackNapiRespondToFsEvents, createDependencyId, createEnvironmentId, setAllEnvironments, getAllEnvironments, getEnvironment, addEnvironment, getAvailableThreads, initializeMonitoring, closeMonitoring, newNodejsWorker, runInlineRequiresOptimizer, runInlineRequiresOptimizerAsync, Resolver, performStringReplacements, transform, transformAsync, getVcsStateSnapshot, getEventsSince } = nativeBinding
|
|
313
|
+
const { initTracingSubscriber, Lmdb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, AtlaspackTracer, createAssetId, atlaspackNapiCreate, atlaspackNapiBuildAssetGraph, atlaspackNapiRespondToFsEvents, createDependencyId, createEnvironmentId, setAllEnvironments, getAllEnvironments, getEnvironment, addEnvironment, getAvailableThreads, initializeMonitoring, closeMonitoring, newNodejsWorker, runInlineRequiresOptimizer, runInlineRequiresOptimizerAsync, applyCompiledCssInJsPlugin, Resolver, performStringReplacements, transform, transformAsync, getVcsStateSnapshot, getEventsSince, applyTokensPlugin } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.initTracingSubscriber = initTracingSubscriber
|
|
316
316
|
module.exports.Lmdb = Lmdb
|
|
@@ -338,9 +338,11 @@ module.exports.closeMonitoring = closeMonitoring
|
|
|
338
338
|
module.exports.newNodejsWorker = newNodejsWorker
|
|
339
339
|
module.exports.runInlineRequiresOptimizer = runInlineRequiresOptimizer
|
|
340
340
|
module.exports.runInlineRequiresOptimizerAsync = runInlineRequiresOptimizerAsync
|
|
341
|
+
module.exports.applyCompiledCssInJsPlugin = applyCompiledCssInJsPlugin
|
|
341
342
|
module.exports.Resolver = Resolver
|
|
342
343
|
module.exports.performStringReplacements = performStringReplacements
|
|
343
344
|
module.exports.transform = transform
|
|
344
345
|
module.exports.transformAsync = transformAsync
|
|
345
346
|
module.exports.getVcsStateSnapshot = getVcsStateSnapshot
|
|
346
347
|
module.exports.getEventsSince = getEventsSince
|
|
348
|
+
module.exports.applyTokensPlugin = applyTokensPlugin
|
|
Binary file
|
package/index.linux-x64-gnu.node
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -249,3 +249,30 @@ export interface Symbol {
|
|
|
249
249
|
isStaticBindingSafe: boolean;
|
|
250
250
|
selfReferenced: boolean;
|
|
251
251
|
}
|
|
252
|
+
|
|
253
|
+
export interface TokensPluginOptions {
|
|
254
|
+
tokenDataPath: string;
|
|
255
|
+
shouldUseAutoFallback: boolean;
|
|
256
|
+
shouldForceAutoFallback: boolean;
|
|
257
|
+
forceAutoFallbackExemptions: Array<string>;
|
|
258
|
+
defaultTheme: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface TokensConfig {
|
|
262
|
+
filename: string;
|
|
263
|
+
projectRoot: string;
|
|
264
|
+
isSource: boolean;
|
|
265
|
+
sourceMaps: boolean;
|
|
266
|
+
tokensOptions: TokensPluginOptions;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export interface TokensPluginResult {
|
|
270
|
+
code: string;
|
|
271
|
+
map: string | null;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/** Apply the tokens transformation plugin to the given code asynchronously */
|
|
275
|
+
export declare function applyTokensPlugin(
|
|
276
|
+
rawCode: Buffer,
|
|
277
|
+
config: TokensConfig,
|
|
278
|
+
): object;
|