@angular-devkit/core 9.0.0-rc.7 → 9.0.1
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/node/host.d.ts +2 -2
- package/node/testing/index.d.ts +3 -3
- package/package.json +1 -2
- package/src/experimental/workspace/workspace.d.ts +4 -4
- package/src/logger/logger.d.ts +2 -1
- package/src/utils/partially-ordered-set.d.ts +2 -2
- package/src/utils/priority-queue.d.ts +1 -1
- package/src/virtual-fs/host/alias.d.ts +1 -1
- package/src/virtual-fs/host/memory.d.ts +1 -1
- package/src/virtual-fs/host/record.d.ts +2 -2
- package/src/virtual-fs/host/resolver.d.ts +1 -1
- package/src/virtual-fs/host/safe.d.ts +1 -1
- package/src/virtual-fs/host/sync.d.ts +2 -2
- package/src/virtual-fs/host/test.d.ts +3 -3
- package/src/workspace/definitions.d.ts +1 -1
- package/src/workspace/json/metadata.d.ts +2 -2
package/node/host.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { Path, PathFragment, virtualFs } from '../src';
|
|
|
14
14
|
* synchronous and one asynchronous.
|
|
15
15
|
*/
|
|
16
16
|
export declare class NodeJsAsyncHost implements virtualFs.Host<fs.Stats> {
|
|
17
|
-
|
|
17
|
+
get capabilities(): virtualFs.HostCapabilities;
|
|
18
18
|
write(path: Path, content: virtualFs.FileBuffer): Observable<void>;
|
|
19
19
|
read(path: Path): Observable<virtualFs.FileBuffer>;
|
|
20
20
|
delete(path: Path): Observable<void>;
|
|
@@ -30,7 +30,7 @@ export declare class NodeJsAsyncHost implements virtualFs.Host<fs.Stats> {
|
|
|
30
30
|
* An implementation of the Virtual FS using Node as the backend, synchronously.
|
|
31
31
|
*/
|
|
32
32
|
export declare class NodeJsSyncHost implements virtualFs.Host<fs.Stats> {
|
|
33
|
-
|
|
33
|
+
get capabilities(): virtualFs.HostCapabilities;
|
|
34
34
|
write(path: Path, content: virtualFs.FileBuffer): Observable<void>;
|
|
35
35
|
read(path: Path): Observable<virtualFs.FileBuffer>;
|
|
36
36
|
delete(path: Path): Observable<void>;
|
package/node/testing/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare class TempScopedNodeJsSyncHost extends virtualFs.ScopedHost<fs.St
|
|
|
15
15
|
protected _sync: virtualFs.SyncDelegateHost<fs.Stats>;
|
|
16
16
|
protected _root: Path;
|
|
17
17
|
constructor();
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
get files(): Path[];
|
|
19
|
+
get root(): Path;
|
|
20
|
+
get sync(): virtualFs.SyncDelegateHost<fs.Stats>;
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/core",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"description": "Angular DevKit - Core Utility Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": ">= 10.13.0",
|
|
28
28
|
"npm": ">= 6.11.0",
|
|
29
|
-
"pnpm": ">= 3.2.0",
|
|
30
29
|
"yarn": ">= 1.13.0"
|
|
31
30
|
},
|
|
32
31
|
"author": "Angular Authors",
|
|
@@ -45,10 +45,10 @@ export declare class Workspace {
|
|
|
45
45
|
loadWorkspaceFromHost(workspacePath: Path): Observable<this>;
|
|
46
46
|
private _loadWorkspaceSchema;
|
|
47
47
|
private _assertLoaded;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
get root(): Path;
|
|
49
|
+
get host(): virtualFs.Host<{}>;
|
|
50
|
+
get version(): number;
|
|
51
|
+
get newProjectRoot(): string | undefined;
|
|
52
52
|
listProjectNames(): string[];
|
|
53
53
|
getProject(projectName: string): WorkspaceProject;
|
|
54
54
|
getDefaultProjectName(): string | null;
|
package/src/logger/logger.d.ts
CHANGED
|
@@ -33,7 +33,8 @@ export declare class Logger extends Observable<LogEntry> implements LoggerApi {
|
|
|
33
33
|
protected _metadata: LoggerMetadata;
|
|
34
34
|
private _obs;
|
|
35
35
|
private _subscription;
|
|
36
|
-
protected _observable: Observable<LogEntry>;
|
|
36
|
+
protected get _observable(): Observable<LogEntry>;
|
|
37
|
+
protected set _observable(v: Observable<LogEntry>);
|
|
37
38
|
constructor(name: string, parent?: Logger | null);
|
|
38
39
|
asApi(): LoggerApi;
|
|
39
40
|
createChild(name: string): Logger;
|
|
@@ -17,7 +17,7 @@ export declare class PartiallyOrderedSet<T> implements Set<T> {
|
|
|
17
17
|
protected _checkCircularDependencies(item: T, deps: Set<T>): void;
|
|
18
18
|
clear(): void;
|
|
19
19
|
has(item: T): boolean;
|
|
20
|
-
|
|
20
|
+
get size(): number;
|
|
21
21
|
forEach(callbackfn: (value: T, value2: T, set: PartiallyOrderedSet<T>) => void, thisArg?: any): void;
|
|
22
22
|
/**
|
|
23
23
|
* Returns an iterable of [v,v] pairs for every value `v` in the set.
|
|
@@ -34,5 +34,5 @@ export declare class PartiallyOrderedSet<T> implements Set<T> {
|
|
|
34
34
|
add(item: T, deps?: (Set<T> | T[])): this;
|
|
35
35
|
delete(item: T): boolean;
|
|
36
36
|
[Symbol.iterator](): Generator<T, void, unknown>;
|
|
37
|
-
|
|
37
|
+
get [Symbol.toStringTag](): 'Set';
|
|
38
38
|
}
|
|
@@ -56,5 +56,5 @@ import { ResolverHost } from './resolver';
|
|
|
56
56
|
export declare class AliasHost<StatsT extends object = {}> extends ResolverHost<StatsT> {
|
|
57
57
|
protected _aliases: Map<Path, Path>;
|
|
58
58
|
protected _resolve(path: Path): Path;
|
|
59
|
-
|
|
59
|
+
get aliases(): Map<Path, Path>;
|
|
60
60
|
}
|
|
@@ -39,7 +39,7 @@ export declare class SimpleMemoryHost implements Host<{}> {
|
|
|
39
39
|
constructor();
|
|
40
40
|
protected _toAbsolute(path: Path): Path;
|
|
41
41
|
protected _updateWatchers(path: Path, type: HostWatchEventType): void;
|
|
42
|
-
|
|
42
|
+
get capabilities(): HostCapabilities;
|
|
43
43
|
/**
|
|
44
44
|
* List of protected methods that give direct access outside the observables to the cache
|
|
45
45
|
* and internal states.
|
|
@@ -47,8 +47,8 @@ export declare class CordHost extends SimpleMemoryHost {
|
|
|
47
47
|
protected _filesToDelete: Set<Path>;
|
|
48
48
|
protected _filesToOverwrite: Set<Path>;
|
|
49
49
|
constructor(_back: ReadonlyHost);
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
get backend(): ReadonlyHost;
|
|
51
|
+
get capabilities(): HostCapabilities;
|
|
52
52
|
/**
|
|
53
53
|
* Create a copy of this host, including all actions made.
|
|
54
54
|
* @returns {CordHost} The carbon copy.
|
|
@@ -16,7 +16,7 @@ export declare abstract class ResolverHost<T extends object> implements Host<T>
|
|
|
16
16
|
protected _delegate: Host<T>;
|
|
17
17
|
protected abstract _resolve(path: Path): Path;
|
|
18
18
|
constructor(_delegate: Host<T>);
|
|
19
|
-
|
|
19
|
+
get capabilities(): HostCapabilities;
|
|
20
20
|
write(path: Path, content: FileBuffer): Observable<void>;
|
|
21
21
|
read(path: Path): Observable<FileBuffer>;
|
|
22
22
|
delete(path: Path): Observable<void>;
|
|
@@ -15,7 +15,7 @@ import { FileBuffer, HostCapabilities, ReadonlyHost, Stats } from './interface';
|
|
|
15
15
|
export declare class SafeReadonlyHost<StatsT extends object = {}> implements ReadonlyHost<StatsT> {
|
|
16
16
|
private _delegate;
|
|
17
17
|
constructor(_delegate: ReadonlyHost<StatsT>);
|
|
18
|
-
|
|
18
|
+
get capabilities(): HostCapabilities;
|
|
19
19
|
read(path: Path): Observable<FileBuffer>;
|
|
20
20
|
list(path: Path): Observable<PathFragment[]>;
|
|
21
21
|
exists(path: Path): Observable<boolean>;
|
|
@@ -19,8 +19,8 @@ export declare class SyncDelegateHost<T extends object = {}> {
|
|
|
19
19
|
protected _delegate: Host<T>;
|
|
20
20
|
constructor(_delegate: Host<T>);
|
|
21
21
|
protected _doSyncCall<ResultT>(observable: Observable<ResultT>): ResultT;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
get capabilities(): HostCapabilities;
|
|
23
|
+
get delegate(): Host<T>;
|
|
24
24
|
write(path: Path, content: FileBufferLike): void;
|
|
25
25
|
read(path: Path): FileBuffer;
|
|
26
26
|
delete(path: Path): void;
|
|
@@ -25,10 +25,10 @@ export declare namespace test {
|
|
|
25
25
|
constructor(map?: {
|
|
26
26
|
[path: string]: string;
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
get records(): TestLogRecord[];
|
|
29
29
|
clearRecords(): void;
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
get files(): Path[];
|
|
31
|
+
get sync(): SyncDelegateHost<{}>;
|
|
32
32
|
clone(): TestHost;
|
|
33
33
|
protected _write(path: Path, content: FileBuffer): void;
|
|
34
34
|
protected _read(path: Path): ArrayBuffer;
|
|
@@ -32,7 +32,7 @@ declare class DefinitionCollection<V extends object> implements ReadonlyMap<stri
|
|
|
32
32
|
forEach<T>(callbackfn: (value: V, key: string, map: DefinitionCollection<V>) => void, thisArg?: T): void;
|
|
33
33
|
get(key: string): V | undefined;
|
|
34
34
|
has(key: string): boolean;
|
|
35
|
-
|
|
35
|
+
get size(): number;
|
|
36
36
|
[Symbol.iterator](): IterableIterator<[string, V]>;
|
|
37
37
|
entries(): IterableIterator<[string, V]>;
|
|
38
38
|
keys(): IterableIterator<string>;
|
|
@@ -31,8 +31,8 @@ export declare class JsonWorkspaceMetadata {
|
|
|
31
31
|
readonly raw: string;
|
|
32
32
|
readonly changes: JsonChange[];
|
|
33
33
|
constructor(filePath: string, ast: JsonAstObject, raw: string);
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
get hasChanges(): boolean;
|
|
35
|
+
get changeCount(): number;
|
|
36
36
|
findChangesForPath(path: string): JsonChange[];
|
|
37
37
|
addChange<T extends keyof ChangeValues = keyof ChangeValues>(op: 'add' | 'remove' | 'replace', path: string, node: JsonAstArray | JsonAstObject | JsonAstKeyValue, value?: ChangeValues[T], type?: T): void;
|
|
38
38
|
reset(): void;
|