@mui/x-license
Advanced tools
Comparing version 7.17.0 to 7.18.0
import { PlanScope, PlanVersion } from '../utils/plan'; | ||
import { LicenseModel } from '../utils/licenseModel'; | ||
export interface LicenseDetails { | ||
expiryDate: Date; | ||
licenseModel?: LicenseModel; | ||
orderNumber: string; | ||
expiryDate: Date; | ||
/** | ||
* @deprecated Use planScope instead. | ||
*/ | ||
scope?: PlanScope; | ||
planScope?: PlanScope; | ||
/** | ||
* @deprecated Use licenseModel instead. | ||
*/ | ||
licensingModel?: LicenseModel; | ||
licenseModel?: LicenseModel; | ||
planVersion: PlanVersion; | ||
} | ||
export declare function generateLicense(details: LicenseDetails): string; |
@@ -7,10 +7,2 @@ import { md5 } from "../encoding/md5.js"; | ||
function getClearLicenseString(details) { | ||
// TODO remove | ||
if (details.licensingModel) { | ||
details.licenseModel = details.licensingModel; | ||
} | ||
// TODO remove | ||
if (details.scope) { | ||
details.planScope = details.scope; | ||
} | ||
if (details.planScope && !PLAN_SCOPES.includes(details.planScope)) { | ||
@@ -17,0 +9,0 @@ throw new Error('MUI X: Invalid scope'); |
/** | ||
* @mui/x-license v7.17.0 | ||
* @mui/x-license v7.18.0 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MUI X Commercial |
@@ -7,10 +7,2 @@ import { md5 } from "../encoding/md5.js"; | ||
function getClearLicenseString(details) { | ||
// TODO remove | ||
if (details.licensingModel) { | ||
details.licenseModel = details.licensingModel; | ||
} | ||
// TODO remove | ||
if (details.scope) { | ||
details.planScope = details.scope; | ||
} | ||
if (details.planScope && !PLAN_SCOPES.includes(details.planScope)) { | ||
@@ -17,0 +9,0 @@ throw new Error('MUI X: Invalid scope'); |
/** | ||
* @mui/x-license v7.17.0 | ||
* @mui/x-license v7.18.0 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MUI X Commercial |
@@ -13,4 +13,6 @@ export const LICENSE_MODELS = [ | ||
/** | ||
* TODO 2026 remove, legacy name of annual. | ||
* Legacy. The previous name for 'annual'. | ||
* Can be removed once old license keys generated with 'subscription' are no longer supported. | ||
* To support for a while. We need more years of backward support and we sell multi year licenses. | ||
*/ | ||
'subscription']; |
@@ -13,10 +13,2 @@ "use strict"; | ||
function getClearLicenseString(details) { | ||
// TODO remove | ||
if (details.licensingModel) { | ||
details.licenseModel = details.licensingModel; | ||
} | ||
// TODO remove | ||
if (details.scope) { | ||
details.planScope = details.scope; | ||
} | ||
if (details.planScope && !_plan.PLAN_SCOPES.includes(details.planScope)) { | ||
@@ -23,0 +15,0 @@ throw new Error('MUI X: Invalid scope'); |
/** | ||
* @mui/x-license v7.17.0 | ||
* @mui/x-license v7.18.0 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MUI X Commercial |
@@ -19,4 +19,6 @@ "use strict"; | ||
/** | ||
* TODO 2026 remove, legacy name of annual. | ||
* Legacy. The previous name for 'annual'. | ||
* Can be removed once old license keys generated with 'subscription' are no longer supported. | ||
* To support for a while. We need more years of backward support and we sell multi year licenses. | ||
*/ | ||
'subscription']; |
{ | ||
"name": "@mui/x-license", | ||
"version": "7.17.0", | ||
"version": "7.18.0", | ||
"description": "MUI X License verification", | ||
@@ -23,3 +23,3 @@ "author": "MUI Team", | ||
"type": "git", | ||
"url": "https://github.com/mui/mui-x.git", | ||
"url": "git+https://github.com/mui/mui-x.git", | ||
"directory": "packages/x-license" | ||
@@ -26,0 +26,0 @@ }, |
@@ -13,4 +13,6 @@ export const LICENSE_MODELS = [ | ||
/** | ||
* TODO 2026 remove, legacy name of annual. | ||
* Legacy. The previous name for 'annual'. | ||
* Can be removed once old license keys generated with 'subscription' are no longer supported. | ||
* To support for a while. We need more years of backward support and we sell multi year licenses. | ||
*/ | ||
'subscription']; |
Sorry, the diff of this file is too big to display
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
283217
1974