@codefast/di-testing 0.1.2 → 0.1.3
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/CHANGELOG.md +12 -0
- package/LICENSE +1 -1
- package/README.md +4 -4
- package/package.json +7 -33
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @codefast/di-testing
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#827](https://github.com/codefastlabs/codefast/pull/827) [`0984174`](https://github.com/codefastlabs/codefast/commit/0984174df148a7cffcd09b837bdde1922f38f24e) Thanks [@thevuong](https://github.com/thevuong)! - `package.json` now carries `homepage` and `bugs`, so npm links the package README and the issue tracker the way the
|
|
8
|
+
other `@codefast/*` packages already do.
|
|
9
|
+
|
|
10
|
+
- [#848](https://github.com/codefastlabs/codefast/pull/848) [`ffb61a0`](https://github.com/codefastlabs/codefast/commit/ffb61a094aefb77d68dd13af7dba96ffdee6f5f2) Thanks [@thevuong](https://github.com/thevuong)! - README samples declare tokens with a `<namespace>:<Name>` display name, matching the convention `@codefast/di`
|
|
11
|
+
documents.
|
|
12
|
+
- Updated dependencies [[`0984174`](https://github.com/codefastlabs/codefast/commit/0984174df148a7cffcd09b837bdde1922f38f24e), [`d0b794c`](https://github.com/codefastlabs/codefast/commit/d0b794c047344c4040b5641202c259d72a0ea48c)]:
|
|
13
|
+
- @codefast/di@0.9.0
|
|
14
|
+
|
|
3
15
|
## 0.1.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -52,9 +52,9 @@ interface EmailService {
|
|
|
52
52
|
send(to: string, body: string): void;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
const UserServiceToken = token<UserService>("UserService");
|
|
56
|
-
const PaymentGatewayToken = token<PaymentGateway>("PaymentGateway");
|
|
57
|
-
const EmailServiceToken = token<EmailService>("EmailService");
|
|
55
|
+
const UserServiceToken = token<UserService>("app:UserService");
|
|
56
|
+
const PaymentGatewayToken = token<PaymentGateway>("app:PaymentGateway");
|
|
57
|
+
const EmailServiceToken = token<EmailService>("app:EmailService");
|
|
58
58
|
|
|
59
59
|
@injectable([UserServiceToken, PaymentGatewayToken, EmailServiceToken])
|
|
60
60
|
class OrderProcessor {
|
|
@@ -139,7 +139,7 @@ interface TaxPolicy {
|
|
|
139
139
|
rateFor(currency: string): number;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
const TaxPolicyToken = token<TaxPolicy>("TaxPolicy");
|
|
142
|
+
const TaxPolicyToken = token<TaxPolicy>("app:TaxPolicy");
|
|
143
143
|
|
|
144
144
|
@injectable([TaxPolicyToken])
|
|
145
145
|
class PricingService {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/di-testing",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Solitary and sociable auto-mocking test beds for @codefast/di",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auto-mock",
|
|
@@ -13,8 +13,12 @@
|
|
|
13
13
|
"testing",
|
|
14
14
|
"typescript"
|
|
15
15
|
],
|
|
16
|
+
"homepage": "https://github.com/codefastlabs/codefast/tree/main/packages/di-testing#readme",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/codefastlabs/codefast/issues"
|
|
19
|
+
},
|
|
16
20
|
"license": "MIT",
|
|
17
|
-
"author": "Vuong Phan <mr.thevuong@gmail.com>",
|
|
21
|
+
"author": "Vuong Phan <mr.thevuong@gmail.com> (https://github.com/thevuong)",
|
|
18
22
|
"repository": {
|
|
19
23
|
"type": "git",
|
|
20
24
|
"url": "git+https://github.com/codefastlabs/codefast.git",
|
|
@@ -32,13 +36,6 @@
|
|
|
32
36
|
"module": "./dist/index.js",
|
|
33
37
|
"types": "./dist/index.d.ts",
|
|
34
38
|
"imports": {
|
|
35
|
-
"#/tests/*": [
|
|
36
|
-
"./tests/*",
|
|
37
|
-
"./tests/*.ts",
|
|
38
|
-
"./tests/*.tsx",
|
|
39
|
-
"./tests/*/index.ts",
|
|
40
|
-
"./tests/*/index.tsx"
|
|
41
|
-
],
|
|
42
39
|
"#/*": {
|
|
43
40
|
"types": "./dist/*.d.ts",
|
|
44
41
|
"default": "./dist/*.js"
|
|
@@ -102,33 +99,10 @@
|
|
|
102
99
|
"publishConfig": {
|
|
103
100
|
"access": "public"
|
|
104
101
|
},
|
|
105
|
-
"devDependencies": {
|
|
106
|
-
"@babel/core": "^8.0.1",
|
|
107
|
-
"@babel/plugin-proposal-decorators": "8.0.2",
|
|
108
|
-
"@rolldown/plugin-babel": "^0.2.3",
|
|
109
|
-
"@types/node": "^26.4.1",
|
|
110
|
-
"@vitest/coverage-v8": "^5.0.0",
|
|
111
|
-
"typescript": "^7.0.2",
|
|
112
|
-
"vitest": "^5.0.0",
|
|
113
|
-
"@codefast/typescript-config": "0.9.0",
|
|
114
|
-
"@codefast/di": "0.8.1"
|
|
115
|
-
},
|
|
116
102
|
"peerDependencies": {
|
|
117
|
-
"@codefast/di": ">=0.
|
|
103
|
+
"@codefast/di": ">=0.9.0"
|
|
118
104
|
},
|
|
119
105
|
"engines": {
|
|
120
106
|
"node": ">=24.0.0"
|
|
121
|
-
},
|
|
122
|
-
"scripts": {
|
|
123
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
124
|
-
"check-types": "tsc --noEmit",
|
|
125
|
-
"clean": "rm -rf dist",
|
|
126
|
-
"test": "vitest run",
|
|
127
|
-
"test:coverage": "vitest run --coverage",
|
|
128
|
-
"test:e2e": "vitest run tests/e2e",
|
|
129
|
-
"test:integration": "vitest run tests/integration",
|
|
130
|
-
"test:type": "vitest run tests/types",
|
|
131
|
-
"test:unit": "vitest run tests/unit",
|
|
132
|
-
"test:watch": "vitest"
|
|
133
107
|
}
|
|
134
108
|
}
|