svelte-preprocess
Advanced tools
Comparing version 4.9.7 to 4.9.8
@@ -6,2 +6,5 @@ "use strict"; | ||
const utils_1 = require("./utils"); | ||
// todo: remove on v5 | ||
let hasLoggedDeprecatedLangTypescriptWarning = false; | ||
let hasLoggedDeprecatedTypeWarning = false; | ||
const LANGUAGE_DEFAULTS = { | ||
@@ -81,2 +84,6 @@ sass: { | ||
alias = attributes.lang; | ||
if (alias === 'typescript' && !hasLoggedDeprecatedLangTypescriptWarning) { | ||
hasLoggedDeprecatedLangTypescriptWarning = true; | ||
console.warn(`[svelte-preprocess] Deprecation notice: using 'lang="typescript"' is no longer recommended and will be removed in the next major version. Please use 'lang="ts"' instead.`); | ||
} | ||
} | ||
@@ -89,2 +96,6 @@ else if (attributes.type) { | ||
alias = attributes.type.replace(/^(text|application)\/(.*)$/, '$2'); | ||
if (attributes.type.includes('text/') && !hasLoggedDeprecatedTypeWarning) { | ||
hasLoggedDeprecatedTypeWarning = true; | ||
console.warn(`[svelte-preprocess] Deprecation notice: using the "type" attribute is no longer recommended and will be removed in the next major version. Please use the "lang" attribute instead.`); | ||
} | ||
} | ||
@@ -91,0 +102,0 @@ else if (typeof attributes.src === 'string' && |
{ | ||
"name": "svelte-preprocess", | ||
"version": "4.9.7", | ||
"version": "4.9.8", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97243
2157