@angular-devkit/core 20.0.0-next.8 → 20.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/logger/level.d.ts +2 -2
- package/src/logger/level.js +2 -2
- package/src/utils/partially-ordered-set.d.ts +6 -6
- package/src/utils/partially-ordered-set.js +1 -1
- package/src/virtual-fs/host/memory.d.ts +3 -22
- package/src/virtual-fs/path.d.ts +0 -2
- package/src/virtual-fs/path.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/core",
|
|
3
|
-
"version": "20.0.0-
|
|
3
|
+
"version": "20.0.0-rc.0",
|
|
4
4
|
"description": "Angular DevKit - Core Utility Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"packageManager": "pnpm@9.15.6",
|
|
53
53
|
"engines": {
|
|
54
|
-
"node": "^20.11.1 ||
|
|
54
|
+
"node": "^20.11.1 || ^22.11.0 || >=24.0.0",
|
|
55
55
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
56
56
|
"yarn": ">= 1.13.0"
|
|
57
57
|
},
|
package/src/logger/level.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class LevelTransformLogger extends Logger {
|
|
|
11
11
|
readonly name: string;
|
|
12
12
|
readonly parent: Logger | null;
|
|
13
13
|
readonly levelTransform: (level: LogLevel) => LogLevel;
|
|
14
|
-
constructor(name: string, parent:
|
|
14
|
+
constructor(name: string, parent: Logger | null, levelTransform: (level: LogLevel) => LogLevel);
|
|
15
15
|
log(level: LogLevel, message: string, metadata?: JsonObject): void;
|
|
16
16
|
createChild(name: string): Logger;
|
|
17
17
|
}
|
|
@@ -24,5 +24,5 @@ export declare class LevelCapLogger extends LevelTransformLogger {
|
|
|
24
24
|
[level: string]: string;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
constructor(name: string, parent:
|
|
27
|
+
constructor(name: string, parent: Logger | null, levelCap: LogLevel);
|
|
28
28
|
}
|
package/src/logger/level.js
CHANGED
|
@@ -13,7 +13,7 @@ class LevelTransformLogger extends logger_1.Logger {
|
|
|
13
13
|
name;
|
|
14
14
|
parent;
|
|
15
15
|
levelTransform;
|
|
16
|
-
constructor(name, parent
|
|
16
|
+
constructor(name, parent, levelTransform) {
|
|
17
17
|
super(name, parent);
|
|
18
18
|
this.name = name;
|
|
19
19
|
this.parent = parent;
|
|
@@ -38,7 +38,7 @@ class LevelCapLogger extends LevelTransformLogger {
|
|
|
38
38
|
error: { debug: 'debug', info: 'info', warn: 'warn', error: 'error', fatal: 'error' },
|
|
39
39
|
fatal: { debug: 'debug', info: 'info', warn: 'warn', error: 'error', fatal: 'fatal' },
|
|
40
40
|
};
|
|
41
|
-
constructor(name, parent
|
|
41
|
+
constructor(name, parent, levelCap) {
|
|
42
42
|
super(name, parent, (level) => {
|
|
43
43
|
return (LevelCapLogger.levelMap[levelCap][level] || level);
|
|
44
44
|
});
|
|
@@ -12,7 +12,7 @@ export declare class DependencyNotFoundException extends BaseException {
|
|
|
12
12
|
export declare class CircularDependencyFoundException extends BaseException {
|
|
13
13
|
constructor();
|
|
14
14
|
}
|
|
15
|
-
export declare class PartiallyOrderedSet<T>
|
|
15
|
+
export declare class PartiallyOrderedSet<T> {
|
|
16
16
|
private _items;
|
|
17
17
|
protected _checkCircularDependencies(item: T, deps: Set<T>): void;
|
|
18
18
|
clear(): void;
|
|
@@ -22,17 +22,17 @@ export declare class PartiallyOrderedSet<T> implements Set<T> {
|
|
|
22
22
|
/**
|
|
23
23
|
* Returns an iterable of [v,v] pairs for every value `v` in the set.
|
|
24
24
|
*/
|
|
25
|
-
entries():
|
|
25
|
+
entries(): IterableIterator<[T, T]>;
|
|
26
26
|
/**
|
|
27
27
|
* Despite its name, returns an iterable of the values in the set,
|
|
28
28
|
*/
|
|
29
|
-
keys():
|
|
29
|
+
keys(): IterableIterator<T>;
|
|
30
30
|
/**
|
|
31
31
|
* Returns an iterable of values in the set.
|
|
32
32
|
*/
|
|
33
|
-
values():
|
|
33
|
+
values(): IterableIterator<T>;
|
|
34
34
|
add(item: T, deps?: Set<T> | T[]): this;
|
|
35
35
|
delete(item: T): boolean;
|
|
36
|
-
[Symbol.iterator]():
|
|
37
|
-
get [Symbol.toStringTag](): '
|
|
36
|
+
[Symbol.iterator](): IterableIterator<T, undefined, unknown>;
|
|
37
|
+
get [Symbol.toStringTag](): 'PartiallyOrderedSet';
|
|
38
38
|
}
|
|
@@ -10,32 +10,13 @@ import { Path, PathFragment } from '../path';
|
|
|
10
10
|
import { FileBuffer, Host, HostCapabilities, HostWatchEvent, HostWatchEventType, HostWatchOptions, Stats } from './interface';
|
|
11
11
|
export interface SimpleMemoryHostStats {
|
|
12
12
|
readonly content: FileBuffer | null;
|
|
13
|
+
inspect(): string;
|
|
13
14
|
}
|
|
14
15
|
export declare class SimpleMemoryHost implements Host<{}> {
|
|
15
16
|
protected _cache: Map<Path, Stats<SimpleMemoryHostStats>>;
|
|
16
17
|
private _watchers;
|
|
17
|
-
protected _newDirStats():
|
|
18
|
-
|
|
19
|
-
isFile(): boolean;
|
|
20
|
-
isDirectory(): boolean;
|
|
21
|
-
size: number;
|
|
22
|
-
atime: Date;
|
|
23
|
-
ctime: Date;
|
|
24
|
-
mtime: Date;
|
|
25
|
-
birthtime: Date;
|
|
26
|
-
content: null;
|
|
27
|
-
};
|
|
28
|
-
protected _newFileStats(content: FileBuffer, oldStats?: Stats<SimpleMemoryHostStats>): {
|
|
29
|
-
inspect(): string;
|
|
30
|
-
isFile(): boolean;
|
|
31
|
-
isDirectory(): boolean;
|
|
32
|
-
size: number;
|
|
33
|
-
atime: Date;
|
|
34
|
-
ctime: Date;
|
|
35
|
-
mtime: Date;
|
|
36
|
-
birthtime: Date;
|
|
37
|
-
content: ArrayBuffer;
|
|
38
|
-
};
|
|
18
|
+
protected _newDirStats(): Stats<SimpleMemoryHostStats>;
|
|
19
|
+
protected _newFileStats(content: FileBuffer, oldStats?: Stats<SimpleMemoryHostStats>): Stats<SimpleMemoryHostStats>;
|
|
39
20
|
constructor();
|
|
40
21
|
protected _toAbsolute(path: Path): Path;
|
|
41
22
|
protected _updateWatchers(path: Path, type: HostWatchEventType): void;
|
package/src/virtual-fs/path.d.ts
CHANGED
|
@@ -30,12 +30,10 @@ export type PathFragment = Path & {
|
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* The Separator for normalized path.
|
|
33
|
-
* @type {Path}
|
|
34
33
|
*/
|
|
35
34
|
export declare const NormalizedSep: Path;
|
|
36
35
|
/**
|
|
37
36
|
* The root of a normalized path.
|
|
38
|
-
* @type {Path}
|
|
39
37
|
*/
|
|
40
38
|
export declare const NormalizedRoot: Path;
|
|
41
39
|
/**
|
package/src/virtual-fs/path.js
CHANGED
|
@@ -44,12 +44,10 @@ class PathCannotBeFragmentException extends exception_1.BaseException {
|
|
|
44
44
|
exports.PathCannotBeFragmentException = PathCannotBeFragmentException;
|
|
45
45
|
/**
|
|
46
46
|
* The Separator for normalized path.
|
|
47
|
-
* @type {Path}
|
|
48
47
|
*/
|
|
49
48
|
exports.NormalizedSep = '/';
|
|
50
49
|
/**
|
|
51
50
|
* The root of a normalized path.
|
|
52
|
-
* @type {Path}
|
|
53
51
|
*/
|
|
54
52
|
exports.NormalizedRoot = exports.NormalizedSep;
|
|
55
53
|
/**
|