update the spec for the deprecation of feature-exists (#3860)

This commit is contained in:
Christophe Coevoet 2024-08-20 02:57:51 +02:00 committed by GitHub
parent 4a05ece720
commit 240a2c877a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 20 additions and 4 deletions

View File

@ -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.
*

View File

@ -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.

View File

@ -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:

View File

@ -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'>;
}