mirror of
https://github.com/sass/sass.git
synced 2024-09-21 02:27:30 +00:00
update the spec for the deprecation of feature-exists (#3860)
This commit is contained in:
parent
4a05ece720
commit
240a2c877a
9
js-api-doc/deprecations.d.ts
vendored
9
js-api-doc/deprecations.d.ts
vendored
@ -6,7 +6,7 @@
|
||||
*/
|
||||
export interface Deprecations {
|
||||
// START AUTOGENERATED LIST
|
||||
// Checksum: 309e4f1f008f08379b824ab6094e13df2e18e187
|
||||
// Checksum: dd5c6aa0f1431fa9fc88bb71a96f832adbc165f5
|
||||
|
||||
/**
|
||||
* Deprecation for passing a string directly to meta.call().
|
||||
@ -120,6 +120,13 @@ export interface Deprecations {
|
||||
*/
|
||||
'mixed-decls': Deprecation<'mixed-decls'>;
|
||||
|
||||
/**
|
||||
* Deprecation for meta.feature-exists
|
||||
*
|
||||
* This deprecation became active in Dart Sass 1.78.0.
|
||||
*/
|
||||
'feature-exists': Deprecation<'feature-exists'>;
|
||||
|
||||
/**
|
||||
* Deprecation for @import rules.
|
||||
*
|
||||
|
@ -106,6 +106,8 @@ function-exists($name, $module: null)
|
||||
|
||||
This function is also available as a global function named `function-exists()`.
|
||||
|
||||
* Emit a deprecation warning named `feature-exists`.
|
||||
|
||||
* If `$name` is not a string, throw an error.
|
||||
|
||||
* If `$name` is not an [`<ident-token>`], return false.
|
||||
@ -115,7 +117,7 @@ This function is also available as a global function named `function-exists()`.
|
||||
* If `$module` is null:
|
||||
|
||||
* Return whether [resolving a function] named `$name` returns null.
|
||||
|
||||
|
||||
[resolving a function]: ../modules.md#resolving-a-member
|
||||
|
||||
* Otherwise, if `$module` isn't a string, throw an error.
|
||||
@ -213,7 +215,7 @@ This function is also available as a global function named `global-variable-exis
|
||||
|
||||
* Return whether [resolving a variable] named `$name`, ignoring local
|
||||
scopes, returns null.
|
||||
|
||||
|
||||
[resolving a variable]: ../modules.md#resolving-a-member
|
||||
|
||||
* Otherwise, if `$module` isn't a string, throw an error.
|
||||
|
@ -112,6 +112,12 @@ mixed-decls:
|
||||
status: active
|
||||
deprecated: 1.77.7
|
||||
|
||||
feature-exists:
|
||||
description: meta.feature-exists
|
||||
dart-sass:
|
||||
status: active
|
||||
deprecated: 1.78.0
|
||||
|
||||
import:
|
||||
description: "@import rules."
|
||||
dart-sass:
|
||||
|
@ -29,7 +29,7 @@
|
||||
### `Deprecations`
|
||||
|
||||
<!-- START AUTOGENERATED LIST -->
|
||||
<!-- Checksum: 309e4f1f008f08379b824ab6094e13df2e18e187 -->
|
||||
<!-- Checksum: dd5c6aa0f1431fa9fc88bb71a96f832adbc165f5 -->
|
||||
```ts
|
||||
export interface Deprecations {
|
||||
'call-string': Deprecation<'call-string'>;
|
||||
@ -48,6 +48,7 @@ export interface Deprecations {
|
||||
'fs-importer-cwd': Deprecation<'fs-importer-cwd'>;
|
||||
'css-function-mixin': Deprecation<'css-function-mixin'>;
|
||||
'mixed-decls': Deprecation<'mixed-decls'>;
|
||||
'feature-exists': Deprecation<'feature-exists'>;
|
||||
import: Deprecation<'import'>;
|
||||
'user-authored': Deprecation<'user-authored', 'user'>;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user