phecda-module 2.1.0 → 2.1.2

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > phecda-module@2.1.0 build /home/runner/work/phecda/phecda/packages/module
2
+ > phecda-module@2.1.2 build /home/runner/work/phecda/phecda/packages/module
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts, src/vite.ts
@@ -9,14 +9,14 @@
9
9
  CLI Target: esnext
10
10
  CJS Build start
11
11
  ESM Build start
12
- CJS dist/vite.js 1.34 KB
13
- CJS dist/index.js 3.26 KB
14
- CJS ⚡️ Build success in 85ms
15
- ESM dist/index.mjs 1.95 KB
12
+ ESM dist/index.mjs 1.92 KB
16
13
  ESM dist/vite.mjs 519.00 B
17
- ESM ⚡️ Build success in 87ms
14
+ ESM ⚡️ Build success in 50ms
15
+ CJS dist/index.js 3.20 KB
16
+ CJS dist/vite.js 1.34 KB
17
+ CJS ⚡️ Build success in 52ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 5892ms
19
+ DTS ⚡️ Build success in 5509ms
20
20
  DTS dist/index.d.ts 262.00 B
21
21
  DTS dist/vite.d.ts 210.00 B
22
22
  DTS dist/index.d.mts 262.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # phecda-module
2
2
 
3
+ ## 2.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [dfb547d]
8
+ - phecda-core@5.0.0
9
+
10
+ ## 2.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [c8c46b6]
15
+ - phecda-core@4.5.1
16
+
3
17
  ## 2.1.0
4
18
 
5
19
  ### Minor Changes
package/dist/index.js CHANGED
@@ -29,7 +29,6 @@ module.exports = __toCommonJS(index_exports);
29
29
 
30
30
  // src/core.ts
31
31
  var import_phecda_core = require("phecda-core");
32
- var import_reflect_metadata = require("reflect-metadata");
33
32
  var moduleMap = /* @__PURE__ */ new Map();
34
33
  async function Factory(Modules) {
35
34
  for (const Module of Modules) await buildNestedModule(Module);
package/dist/index.mjs CHANGED
@@ -3,7 +3,6 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
3
3
 
4
4
  // src/core.ts
5
5
  import { getTag, invokeInit } from "phecda-core";
6
- import "reflect-metadata";
7
6
  var moduleMap = /* @__PURE__ */ new Map();
8
7
  async function Factory(Modules) {
9
8
  for (const Module of Modules) await buildNestedModule(Module);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-module",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "provide DI and HMR for modules by reflect-metadata and vite",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,8 +32,7 @@
32
32
  "repository": "https://github.com/fgsreally/phecda/tree/main/packages/module",
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
- "reflect-metadata": "^0.1.13",
36
- "phecda-core": "4.5.0"
35
+ "phecda-core": "5.0.0"
37
36
  },
38
37
  "devDependencies": {
39
38
  "tsup": "^8.1.0"
package/src/core.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import type { Construct } from 'phecda-core'
2
2
  import { getTag, invokeInit } from 'phecda-core'
3
- import 'reflect-metadata'
4
3
 
5
4
  const moduleMap = new Map<PropertyKey, InstanceType<Construct>>()
6
5
 
@@ -69,4 +68,4 @@ if (__DEV__) {
69
68
  moduleMap.delete(tag)
70
69
  buildNestedModule(target)
71
70
  }
72
- }
71
+ }