@contember/utilities
Advanced tools
Comparing version 1.3.0-alpha.15 to 1.3.0-alpha.16
@@ -10,2 +10,5 @@ import { assertNever } from "../assert-types/assertNever.js"; | ||
} else { | ||
{ | ||
console.error(`Unexpected className: ${JSON.stringify(className)}`); | ||
} | ||
assertNever(); | ||
@@ -12,0 +15,0 @@ } |
@@ -0,2 +1,13 @@ | ||
var define_import_meta_env_default = { BASE_URL: "/", MODE: "development", DEV: true, PROD: false, SSR: false }; | ||
function deprecate(removal, condition, deprecated, replacement) { | ||
if (condition === true) { | ||
{ | ||
const shouldThrow = Boolean(define_import_meta_env_default.VITE_CONTEMBER_ADMIN_STRICT_DEPRECATIONS); | ||
if (shouldThrow) { | ||
throw new Error(`Support for ${deprecated} was planned to be removed in the ${removal} release.${replacement ? ` Replace it with ${replacement} instead.` : "Remove it."}`); | ||
} else { | ||
console.warn(`Use of ${deprecated} is deprecated and might be removed in the next release.${replacement ? ` Use ${replacement} instead.` : " There is no replacement."}`); | ||
} | ||
} | ||
} | ||
} | ||
@@ -3,0 +14,0 @@ export { |
{ | ||
"name": "@contember/utilities", | ||
"license": "Apache-2.0", | ||
"version": "1.3.0-alpha.15", | ||
"version": "1.3.0-alpha.16", | ||
"type": "module", | ||
@@ -31,3 +31,3 @@ "sideEffects": false, | ||
"build": "yarn build:js:dev && yarn build:js:prod", | ||
"build:js:dev": "vite build --mode development", | ||
"build:js:dev": "NODE_ENV=development vite build --mode development", | ||
"build:js:prod": "vite build --mode production", | ||
@@ -34,0 +34,0 @@ "ae:build": "api-extractor run --local", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
237279
2582