@pangza/express 1.1.3 → 2.0.0

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.
Files changed (2) hide show
  1. package/README.md +12 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,15 +1,21 @@
1
1
  # @pangza/express
2
2
 
3
- 完整框架产物。**推荐按模块从分包导入**(避免一把梭):
3
+ 完整框架(含 Application / IoC / 校验 / Logger 等)。HTTP 与核心能力请**只从本包导入**:
4
4
 
5
5
  ```ts
6
- import Application, { Controller, GetMapping } from "@pangza/application";
7
- import { Db, Mapper } from "@pangza/orm";
8
- import Redis, { EnableRedis } from "@pangza/redis";
9
- import { Service, Resource } from "@pangza/core";
6
+ import {
7
+ Application,
8
+ Controller,
9
+ GetMapping,
10
+ Service,
11
+ Resource,
12
+ Logger,
13
+ } from "@pangza/express";
10
14
  ```
11
15
 
12
- 分包:`@pangza/core` `@pangza/application` `@pangza/orm` `@pangza/auth` `@pangza/redis` `@pangza/log` `@pangza/schedule` `@pangza/encrypt`。
16
+ 可选能力分包(薄封装,仍依赖本包):`@pangza/orm` `@pangza/auth` `@pangza/redis` `@pangza/log` `@pangza/schedule` `@pangza/encrypt`。
17
+
18
+ > 已移除 `@pangza/core` / `@pangza/application`,请改从 `@pangza/express` 导入。
13
19
 
14
20
  静态资源:
15
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pangza/express",
3
- "version": "1.1.3",
3
+ "version": "2.0.0",
4
4
  "description": "TypeScript + Express 装饰器框架(完整包;业务请优先从 @pangza/orm 等分包导入)",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",