@layerzerolabs/dependency-graph 0.2.68 → 0.2.69
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 +6 -3
- package/.turbo/turbo-build.log +0 -27
- package/.turbo/turbo-lint.log +0 -8
- package/src/dependencyNode.ts +0 -49
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -20
- package/tsup.config.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/dependency-graph",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.69",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -13,10 +13,13 @@
|
|
|
13
13
|
"main": "./dist/index.cjs",
|
|
14
14
|
"module": "./dist/index.js",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/**/*"
|
|
18
|
+
],
|
|
16
19
|
"devDependencies": {
|
|
17
20
|
"tsup": "^8.4.0",
|
|
18
|
-
"@layerzerolabs/tsup-configuration": "0.2.
|
|
19
|
-
"@layerzerolabs/typescript-configuration": "0.2.
|
|
21
|
+
"@layerzerolabs/tsup-configuration": "0.2.69",
|
|
22
|
+
"@layerzerolabs/typescript-configuration": "0.2.69"
|
|
20
23
|
},
|
|
21
24
|
"publishConfig": {
|
|
22
25
|
"access": "public",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
2
|
-
|
|
3
|
-
> @layerzerolabs/dependency-graph@0.0.2 build /home/runner/work/monorepo-internal/monorepo-internal/packages/framework/dependency-graph
|
|
4
|
-
> tsup
|
|
5
|
-
|
|
6
|
-
[34mCLI[39m Building entry: src/dependencyNode.ts, src/index.ts
|
|
7
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
-
[34mCLI[39m tsup v8.5.1
|
|
9
|
-
[34mCLI[39m Using tsup config: /home/runner/work/monorepo-internal/monorepo-internal/packages/framework/dependency-graph/tsup.config.ts
|
|
10
|
-
[34mCLI[39m Target: ES2023
|
|
11
|
-
[34mCLI[39m Cleaning output folder
|
|
12
|
-
[34mCJS[39m Build start
|
|
13
|
-
[34mESM[39m Build start
|
|
14
|
-
[32mCJS[39m [1mdist/dependencyNode.cjs [22m[32m426.00 B[39m
|
|
15
|
-
[32mCJS[39m [1mdist/4LBVNANM.cjs [22m[32m1007.00 B[39m
|
|
16
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m408.00 B[39m
|
|
17
|
-
[32mCJS[39m [1mdist/dependencyNode.cjs.map [22m[32m79.00 B[39m
|
|
18
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m70.00 B[39m
|
|
19
|
-
[32mCJS[39m [1mdist/4LBVNANM.cjs.map [22m[32m3.01 KB[39m
|
|
20
|
-
[32mCJS[39m ⚡️ Build success in 82ms
|
|
21
|
-
[32mESM[39m [1mdist/index.js [22m[32m133.00 B[39m
|
|
22
|
-
[32mESM[39m [1mdist/dependencyNode.js [22m[32m151.00 B[39m
|
|
23
|
-
[32mESM[39m [1mdist/WWFEJOTN.js [22m[32m949.00 B[39m
|
|
24
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m69.00 B[39m
|
|
25
|
-
[32mESM[39m [1mdist/WWFEJOTN.js.map [22m[32m3.01 KB[39m
|
|
26
|
-
[32mESM[39m [1mdist/dependencyNode.js.map [22m[32m78.00 B[39m
|
|
27
|
-
[32mESM[39m ⚡️ Build success in 82ms
|
package/.turbo/turbo-lint.log
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @layerzerolabs/dependency-graph@0.0.2 lint /home/runner/work/monorepo-internal/monorepo-internal/packages/framework/dependency-graph
|
|
3
|
-
> eslint . --max-warnings 0 || (eslint . --fix --max-warnings 0 && false)
|
|
4
|
-
|
|
5
|
-
(node:66125) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/eslint.config.js?mtime=1775777605148 is not specified and it doesn't parse as CommonJS.
|
|
6
|
-
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
7
|
-
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
8
|
-
(Use `node --trace-warnings ...` to show where the warning was created)
|
package/src/dependencyNode.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* <!-- anchor:DependencyNode -->
|
|
3
|
-
* Dependency nodes are abstract nodes in the dependency graph. They're used to build the graph,
|
|
4
|
-
* but as an abstract class, lacks the required information to actually be resolved to anything.
|
|
5
|
-
* If you want to implement a new dependency node, see ObjectDefinition or FactoryDefinition
|
|
6
|
-
* @param name the name of this node. It should be unique across the entire graph.
|
|
7
|
-
* @param dependencies a map of other nodes that this node depends on. These children will be resolved first.
|
|
8
|
-
* The key of the dependencies map should be some arbitrary name within the context of *this* node. It does
|
|
9
|
-
* not have to be unique.
|
|
10
|
-
*/
|
|
11
|
-
export abstract class DependencyNode<
|
|
12
|
-
Name extends string = string,
|
|
13
|
-
_Dependencies extends Dependencies = Dependencies,
|
|
14
|
-
> {
|
|
15
|
-
public readonly name: Name;
|
|
16
|
-
public readonly dependencies: _Dependencies;
|
|
17
|
-
constructor({
|
|
18
|
-
name,
|
|
19
|
-
dependencies = {} as _Dependencies,
|
|
20
|
-
}: {
|
|
21
|
-
name: Name;
|
|
22
|
-
dependencies?: _Dependencies;
|
|
23
|
-
}) {
|
|
24
|
-
this.name = name;
|
|
25
|
-
this.dependencies = dependencies;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type Dependencies = { [key: string]: DependencyNode<any, any> };
|
|
30
|
-
|
|
31
|
-
type IndexedDeps<Extra extends readonly DependencyNode[]> = {
|
|
32
|
-
[K in keyof Extra as K extends `${number}` ? `__extra${K}` : never]: Extra[K];
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const withDependencies = <
|
|
36
|
-
N extends DependencyNode,
|
|
37
|
-
const Extra extends readonly DependencyNode[],
|
|
38
|
-
>(
|
|
39
|
-
node: N,
|
|
40
|
-
extraDeps: Extra,
|
|
41
|
-
): N & { dependencies: N['dependencies'] & IndexedDeps<Extra> } => {
|
|
42
|
-
const mergedDeps = {
|
|
43
|
-
...node.dependencies,
|
|
44
|
-
...Object.fromEntries(extraDeps.map((dep, i) => [`__extra${i}`, dep])),
|
|
45
|
-
};
|
|
46
|
-
const descriptors: PropertyDescriptorMap = Object.getOwnPropertyDescriptors(node);
|
|
47
|
-
descriptors.dependencies = { ...descriptors.dependencies, value: mergedDeps };
|
|
48
|
-
return Object.create(Object.getPrototypeOf(node), descriptors);
|
|
49
|
-
};
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dependencyNode';
|
package/tsconfig.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@layerzerolabs/typescript-configuration/tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"rootDir": "./src",
|
|
5
|
-
"outDir": "./dist",
|
|
6
|
-
"strictPropertyInitialization": false,
|
|
7
|
-
"noUnusedLocals": false,
|
|
8
|
-
"noUnusedParameters": false,
|
|
9
|
-
"jsx": "react-jsx"
|
|
10
|
-
},
|
|
11
|
-
"exclude": [
|
|
12
|
-
"node_modules",
|
|
13
|
-
"**/__mocks__/*",
|
|
14
|
-
"**/__tests__/*",
|
|
15
|
-
"**/*.spec.ts",
|
|
16
|
-
"**/*.test.ts",
|
|
17
|
-
"dist"
|
|
18
|
-
],
|
|
19
|
-
"include": ["src/**/*"]
|
|
20
|
-
}
|