-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
1,747 additions
and
1,814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
plugins: | ||
- ./packages/yarn-plugin-ts-project-linker/bundles/@yarnpkg/plugin-ts-project-linker.js | ||
|
||
packageExtensions: | ||
"vite@*": | ||
debug@*: | ||
dependencies: | ||
supports-color: "*" | ||
vite@*: | ||
dependencies: | ||
bufferutil: "*" | ||
"vitest@*": | ||
supports-color: "*" | ||
vitest@*: | ||
dependencies: | ||
"@types/chai": "*" | ||
"debug@*": | ||
dependencies: | ||
supports-color: "*" | ||
|
||
plugins: | ||
- ./packages/yarn-plugin-ts-project-linker/bundles/@yarnpkg/plugin-ts-project-linker.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "foundation", | ||
"private": true, | ||
"version": "0.0.1", | ||
"packageManager": "[email protected].0", | ||
"packageManager": "[email protected].3", | ||
"type": "module", | ||
"license": "MIT", | ||
"author": "Wroud", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@wroud/ci", | ||
"private": true, | ||
"type": "module", | ||
"packageManager": "[email protected].0", | ||
"packageManager": "[email protected].3", | ||
"bin": "./lib/cli.js", | ||
"scripts": { | ||
"test": "tests-runner", | ||
|
@@ -32,7 +32,7 @@ | |
"@types/yargs": "^17", | ||
"@vitest/coverage-v8": "^2", | ||
"@wroud/tsconfig": "workspace:*", | ||
"concurrently": "^8", | ||
"concurrently": "^9", | ||
"rimraf": "^6", | ||
"typescript": "^5", | ||
"vitest": "^2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"description": "A utility for determining version bump types (major, minor, patch) based on conventional commit messages, facilitating semantic versioning in your projects.", | ||
"version": "0.1.1", | ||
"type": "module", | ||
"packageManager": "[email protected].0", | ||
"packageManager": "[email protected].3", | ||
"bin": "./lib/cli.js", | ||
"exports": { | ||
".": "./lib/index.js" | ||
|
@@ -43,7 +43,7 @@ | |
"@wroud/ci": "workspace:*", | ||
"@wroud/tests-runner": "workspace:*", | ||
"@wroud/tsconfig": "workspace:*", | ||
"concurrently": "^8", | ||
"concurrently": "^9", | ||
"rimraf": "^6", | ||
"typescript": "^5", | ||
"vitest": "^2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"description": "A TypeScript library for generating markdown changelogs from conventional commit messages, providing a structured and consistent format for documenting project updates.", | ||
"version": "0.1.1", | ||
"type": "module", | ||
"packageManager": "[email protected].0", | ||
"packageManager": "[email protected].3", | ||
"exports": { | ||
".": "./lib/index.js" | ||
}, | ||
|
@@ -42,7 +42,7 @@ | |
"@wroud/ci": "workspace:*", | ||
"@wroud/tests-runner": "workspace:*", | ||
"@wroud/tsconfig": "workspace:*", | ||
"concurrently": "^8", | ||
"concurrently": "^9", | ||
"rimraf": "^6", | ||
"typescript": "^5", | ||
"vitest": "^2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"description": "A lightweight parser for conventional commits that supports extracting commit metadata, generating commit messages, and managing commit trailers in TypeScript.", | ||
"version": "0.1.1", | ||
"type": "module", | ||
"packageManager": "[email protected].0", | ||
"packageManager": "[email protected].3", | ||
"exports": { | ||
".": "./lib/index.js" | ||
}, | ||
|
@@ -42,7 +42,7 @@ | |
"@wroud/ci": "workspace:*", | ||
"@wroud/tests-runner": "workspace:*", | ||
"@wroud/tsconfig": "workspace:*", | ||
"concurrently": "^8", | ||
"concurrently": "^9", | ||
"rimraf": "^6", | ||
"typescript": "^5", | ||
"vitest": "^2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@wroud/di-react", | ||
"description": "A simple and lightweight dependency injection library for React", | ||
"version": "0.4.0", | ||
"packageManager": "[email protected].0", | ||
"packageManager": "[email protected].3", | ||
"type": "module", | ||
"license": "MIT", | ||
"author": "Wroud", | ||
|
@@ -63,7 +63,7 @@ | |
"@wroud/ci": "workspace:*", | ||
"@wroud/tests-runner": "workspace:*", | ||
"@wroud/tsconfig": "workspace:*", | ||
"concurrently": "^8", | ||
"concurrently": "^9", | ||
"happy-dom": "^15", | ||
"react": "^18", | ||
"react-dom": "^18", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@wroud/di-tools-analyzer", | ||
"description": "DI Tools Analyzer is a tool that helps you to analyze the dependency injection tools in your project and generate a report for them.", | ||
"version": "0.5.0", | ||
"packageManager": "[email protected].0", | ||
"packageManager": "[email protected].3", | ||
"type": "module", | ||
"license": "MIT", | ||
"author": "Wroud", | ||
|
@@ -49,7 +49,7 @@ | |
"@dagrejs/dagre": "^1", | ||
"@wroud/di": "workspace:^0", | ||
"d3": "^7", | ||
"uuid": "^10" | ||
"uuid": "^11" | ||
}, | ||
"devDependencies": { | ||
"@types/d3": "^7", | ||
|
@@ -59,7 +59,7 @@ | |
"@wroud/ci": "workspace:*", | ||
"@wroud/tests-runner": "workspace:*", | ||
"@wroud/tsconfig": "workspace:*", | ||
"concurrently": "^8", | ||
"concurrently": "^9", | ||
"rimraf": "^6", | ||
"tslib": "^2", | ||
"typescript": "^5", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
"!lib/tests", | ||
"!.tsbuildinfo" | ||
], | ||
"packageManager": "[email protected].0", | ||
"packageManager": "[email protected].3", | ||
"devDependencies": { | ||
"@wroud/tsconfig": "workspace:^", | ||
"rimraf": "^6", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { bench } from "vitest"; | ||
import { ServiceContainerBuilder } from "@wroud/di"; | ||
import { createDeepServices } from "./tests/createDeepServices.js"; | ||
|
||
const { lastService, services } = createDeepServices(500); | ||
|
||
const builder = new ServiceContainerBuilder(); | ||
|
||
for (const { service, impl } of services) { | ||
builder.addTransient(service, impl); | ||
} | ||
|
||
const serviceProvider = builder.build(); | ||
|
||
bench("[@wroud/di]", () => { | ||
serviceProvider.getService(lastService); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/@wroud/di-tools-benchmark/src/inversify/tests/createServicesTreeInversify.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/@wroud/di-tools-benchmark/src/tsyringe/deep_500.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { bench } from "vitest"; | ||
import "reflect-metadata"; | ||
import { container, Lifecycle } from "tsyringe"; | ||
import { createDeepServices } from "./tests/createDeepServices.js"; | ||
|
||
const { lastService, services } = createDeepServices(500); | ||
|
||
for (const { service, impl } of services) { | ||
container.register( | ||
service, | ||
{ useClass: impl }, | ||
{ lifecycle: Lifecycle.Transient }, | ||
); | ||
} | ||
|
||
bench("[tsyringe]", () => { | ||
container.resolve(lastService); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/@wroud/di-tools-benchmark/src/tsyringe/tests/createServicesTreeTsyringe.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.