Skip to content

Commit

Permalink
chore(deps): bump sass from v1.54 to v1.69
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Dec 30, 2023
1 parent b250707 commit 13d7e46
Show file tree
Hide file tree
Showing 31 changed files with 1,113 additions and 809 deletions.
2 changes: 1 addition & 1 deletion packages/shared/compiled/sass/index.js

Large diffs are not rendered by default.

681 changes: 345 additions & 336 deletions packages/shared/compiled/sass/license

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/shared/compiled/sass/package.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"sass","author":{"name":"Natalie Weizenbaum","email":"nweiz@google.com","url":"https://github.com/nex3"},"version":"1.54.4","license":"MIT","types":"types/index.d.ts"}
{"name":"sass","author":{"name":"Natalie Weizenbaum","email":"nweiz@google.com","url":"https://github.com/nex3"},"version":"1.69.6","license":"MIT","types":"types/index.d.ts","type":"commonjs"}
60 changes: 36 additions & 24 deletions packages/shared/compiled/sass/types/compile.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {RawSourceMap} from 'source-map-js';
import {Options, StringOptions} from './options';

/**
* The result of compiling Sass to CSS. Returned by [[compile]],
* [[compileAsync]], [[compileString]], and [[compileStringAsync]].
* The result of compiling Sass to CSS. Returned by {@link compile}, {@link
* compileAsync}, {@link compileString}, and {@link compileStringAsync}.
*
* @category Compile
*/
Expand All @@ -29,19 +29,25 @@ export interface CompileResult {
* generated CSS back to locations in the Sass source code.
*
* This typically uses absolute `file:` URLs to refer to Sass files, although
* this can be controlled by having a custom [[Importer]] return
* [[ImporterResult.sourceMapUrl]].
* this can be controlled by having a custom {@link Importer} return {@link
* ImporterResult.sourceMapUrl}.
*
* This is set if and only if [[Options.sourceMap]] is `true`.
* This is set if and only if {@link Options.sourceMap} is `true`.
*/
sourceMap?: RawSourceMap;
}

/**
* Synchronously compiles the Sass file at `path` to CSS. If it succeeds it
* returns a [[CompileResult]], and if it fails it throws an [[Exception]].
* returns a {@link CompileResult}, and if it fails it throws an {@link
* Exception}.
*
* This only allows synchronous [[Importer]]s and [[CustomFunction]]s.
* This only allows synchronous {@link Importer}s and {@link CustomFunction}s.
*
* **Heads up!** When using the `sass-embedded` npm package,
* **{@link compileAsync} is almost always faster than {@link compile}**, due to
* the overhead of emulating synchronous messaging with worker threads and
* concurrent compilations being blocked on main thread.
*
* @example
*
Expand All @@ -59,15 +65,15 @@ export function compile(path: string, options?: Options<'sync'>): CompileResult;

/**
* Asynchronously compiles the Sass file at `path` to CSS. Returns a promise
* that resolves with a [[CompileResult]] if it succeeds and rejects with an
* [[Exception]] if it fails.
* that resolves with a {@link CompileResult} if it succeeds and rejects with an
* {@link Exception} if it fails.
*
* This only allows synchronous or asynchronous [[Importer]]s and
* [[CustomFunction]]s.
* This only allows synchronous or asynchronous {@link Importer}s and
* {@link CustomFunction}s.
*
* **Heads up!** When using Dart Sass, **[[compile]] is almost twice as fast as
* [[compileAsync]]**, due to the overhead of making the entire evaluation
* process asynchronous.
* **Heads up!** When using the `sass` npm package, **{@link compile} is almost
* twice as fast as {@link compileAsync}**, due to the overhead of making the
* entire evaluation process asynchronous.
*
* @example
*
Expand All @@ -88,10 +94,16 @@ export function compileAsync(

/**
* Synchronously compiles a stylesheet whose contents is `source` to CSS. If it
* succeeds it returns a [[CompileResult]], and if it fails it throws an
* [[Exception]].
* succeeds it returns a {@link CompileResult}, and if it fails it throws an
* {@link Exception}.
*
* This only allows synchronous {@link Importer}s and {@link CustomFunction}s.
*
* This only allows synchronous [[Importer]]s and [[CustomFunction]]s.
* **Heads up!** When using the `sass-embedded` npm package,
* **{@link compileStringAsync} is almost always faster than
* {@link compileString}**, due to the overhead of emulating synchronous
* messaging with worker threads and concurrent compilations being blocked on
* main thread.
*
* @example
*
Expand All @@ -118,15 +130,15 @@ export function compileString(

/**
* Asynchronously compiles a stylesheet whose contents is `source` to CSS.
* Returns a promise that resolves with a [[CompileResult]] if it succeeds and
* rejects with an [[Exception]] if it fails.
* Returns a promise that resolves with a {@link CompileResult} if it succeeds
* and rejects with an {@link Exception} if it fails.
*
* This only allows synchronous or asynchronous [[Importer]]s and
* [[CustomFunction]]s.
* This only allows synchronous or asynchronous {@link Importer}s and {@link
* CustomFunction}s.
*
* **Heads up!** When using Dart Sass, **[[compile]] is almost twice as fast as
* [[compileAsync]]**, due to the overhead of making the entire evaluation
* process asynchronous.
* **Heads up!** When using the `sass` npm package, **{@link compileString} is
* almost twice as fast as {@link compileStringAsync}**, due to the overhead
* of making the entire evaluation process asynchronous.
*
* @example
*
Expand Down
14 changes: 7 additions & 7 deletions packages/shared/compiled/sass/types/exception.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ export class Exception extends Error {
* A human-friendly representation of the exception.
*
* Because many tools simply print `Error.message` directly, this includes not
* only the textual description of what went wrong (the [[sassMessage]]) but
* also an indication of where in the Sass stylesheet the error occurred (the
* [[span]]) and the Sass stack trace at the point of error (the
* [[sassStack]]).
* only the textual description of what went wrong (the {@link sassMessage})
* but also an indication of where in the Sass stylesheet the error occurred
* (the {@link span}) and the Sass stack trace at the point of error (the
* {@link sassStack}).
*/
message: string;

/**
* A textual description of what went wrong.
*
* Unlike [[message]], this does *not* include representations of [[span]] or
* [[sassStack]].
* Unlike {@link message}, this does *not* include representations of {@link
* span} or {@link sassStack}.
*/
readonly sassMessage: string;

Expand All @@ -36,6 +36,6 @@ export class Exception extends Error {
/** The location the error occurred in the Sass file that triggered it. */
readonly span: SourceSpan;

/** Returns the same string as [[message]]. */
/** Returns the same string as {@link message}. */
toString(): string;
}
Loading

0 comments on commit 13d7e46

Please sign in to comment.