Skip to content

Commit d2a9098

Browse files
author
Angular Builds
committed
b0dfd90d2 build: update all non-major dependencies
1 parent e371d65 commit d2a9098

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

src/json/schema/registry.d.ts

-5
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,5 @@ export declare class CoreSchemaRegistry implements SchemaRegistry {
7676
private static _set;
7777
private _applySmartDefaults;
7878
useXDeprecatedProvider(onUsage: (message: string) => void): void;
79-
/**
80-
* Workaround to avoid a breaking change in downstream schematics.
81-
* @deprecated will be removed in version 13.
82-
*/
83-
private _replaceDeprecatedSchemaIdKeyword;
8479
private normalizeDataPathArr;
8580
}

src/json/schema/registry.js

-14
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ class CoreSchemaRegistry {
196196
return rxjs_1.from(this._flatten(schema));
197197
}
198198
async _flatten(schema) {
199-
this._replaceDeprecatedSchemaIdKeyword(schema);
200199
this._ajv.removeSchema(schema);
201200
this._currentCompilationSchemaInfo = undefined;
202201
const validate = await this._ajv.compileAsync(schema);
@@ -233,7 +232,6 @@ class CoreSchemaRegistry {
233232
if (typeof schema === 'boolean') {
234233
return async (data) => ({ success: schema, data });
235234
}
236-
this._replaceDeprecatedSchemaIdKeyword(schema);
237235
const schemaInfo = {
238236
smartDefaultRecord: new Map(),
239237
promptDefinitions: [],
@@ -544,18 +542,6 @@ class CoreSchemaRegistry {
544542
errors: false,
545543
});
546544
}
547-
/**
548-
* Workaround to avoid a breaking change in downstream schematics.
549-
* @deprecated will be removed in version 13.
550-
*/
551-
_replaceDeprecatedSchemaIdKeyword(schema) {
552-
if (typeof schema.id === 'string') {
553-
schema.$id = schema.id;
554-
delete schema.id;
555-
// eslint-disable-next-line no-console
556-
console.warn(`"${schema.$id}" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID.`);
557-
}
558-
}
559545
normalizeDataPathArr(it) {
560546
return it.dataPathArr
561547
.slice(1, it.dataLevel + 1)

uniqueId

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Tue Aug 10 2021 20:23:49 GMT+0000 (Coordinated Universal Time)
1+
Wed Aug 11 2021 07:45:59 GMT+0000 (Coordinated Universal Time)

0 commit comments

Comments
 (0)