Add a deprecation type for the legacy JS API (#3932)

This commit is contained in:
Jennifer Thakar 2024-09-17 15:41:07 -07:00 committed by GitHub
parent 0150d3861d
commit 6a3df1fe6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 2 deletions

View File

@ -6,7 +6,7 @@
*/ */
export interface Deprecations { export interface Deprecations {
// START AUTOGENERATED LIST // START AUTOGENERATED LIST
// Checksum: 5470e7252641d3eaa7093b072b52e423c3b77375 // Checksum: 0243e0f7ee85127d6e1bda5c08e363509959e758
/** /**
* Deprecation for passing a string directly to meta.call(). * Deprecation for passing a string directly to meta.call().
@ -141,6 +141,13 @@ export interface Deprecations {
*/ */
'color-functions': Deprecation<'color-functions'>; 'color-functions': Deprecation<'color-functions'>;
/**
* Deprecation for legacy JS API.
*
* This deprecation became active in Dart Sass 1.79.0.
*/
'legacy-js-api': Deprecation<'legacy-js-api'>;
/** /**
* Deprecation for @import rules. * Deprecation for @import rules.
* *

View File

@ -130,6 +130,12 @@ color-functions:
status: active status: active
deprecated: 1.79.0 deprecated: 1.79.0
legacy-js-api:
description: Legacy JS API.
dart-sass:
status: active
deprecated: 1.79.0
import: import:
description: "@import rules." description: "@import rules."
dart-sass: dart-sass:

View File

@ -29,7 +29,7 @@
### `Deprecations` ### `Deprecations`
<!-- START AUTOGENERATED LIST --> <!-- START AUTOGENERATED LIST -->
<!-- Checksum: 5470e7252641d3eaa7093b072b52e423c3b77375 --> <!-- Checksum: 0243e0f7ee85127d6e1bda5c08e363509959e758 -->
```ts ```ts
export interface Deprecations { export interface Deprecations {
'call-string': Deprecation<'call-string'>; 'call-string': Deprecation<'call-string'>;
@ -51,6 +51,7 @@ export interface Deprecations {
'feature-exists': Deprecation<'feature-exists'>; 'feature-exists': Deprecation<'feature-exists'>;
'color-4-api': Deprecation<'color-4-api'>; 'color-4-api': Deprecation<'color-4-api'>;
'color-functions': Deprecation<'color-functions'>; 'color-functions': Deprecation<'color-functions'>;
'legacy-js-api': Deprecation<'legacy-js-api'>;
import: Deprecation<'import'>; import: Deprecation<'import'>;
'global-builtin': Deprecation<'global-builtin'>; 'global-builtin': Deprecation<'global-builtin'>;
'user-authored': Deprecation<'user-authored', 'user'>; 'user-authored': Deprecation<'user-authored', 'user'>;