weifuwu 0.28.0 → 0.28.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.
Files changed (3) hide show
  1. package/index.d.ts +4 -4
  2. package/index.js +6 -6
  3. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @deprecated Use `import { ... } from '@weifuwu/core'` instead.
2
+ * @deprecated Use `import { ... } from '@weifuwujs/core'` instead.
3
3
  *
4
4
  * Migration:
5
- * `weifuwu` → `@weifuwu/core` for framework core
6
- * `weifuwu` → `@weifuwu/react` for React SSR
5
+ * `weifuwu` → `@weifuwujs/core` for framework core
6
+ * `weifuwu` → `@weifuwujs/react` for React SSR
7
7
  */
8
- export * from '@weifuwu/core'
8
+ export * from '@weifuwujs/core'
package/index.js CHANGED
@@ -2,19 +2,19 @@
2
2
  * @deprecated weifuwu has been split into scoped packages.
3
3
  *
4
4
  * Update your imports:
5
- * import { serve } from 'weifuwu' → import { serve } from '@weifuwu/core'
6
- * import { ssr, theme } from 'weifuwu' → import { ssr, theme } from '@weifuwu/react'
5
+ * import { serve } from 'weifuwu' → import { serve } from '@weifuwujs/core'
6
+ * import { ssr, theme } from 'weifuwu' → import { ssr, theme } from '@weifuwujs/react'
7
7
  *
8
8
  * The 'weifuwu' package is a backward-compatibility alias and
9
- * will receive no new features. Migrate to '@weifuwu/core'.
9
+ * will receive no new features. Migrate to '@weifuwujs/core'.
10
10
  */
11
11
 
12
12
  if (!process.env.WEIFUWU_SUPPRESS_DEPRECATION) {
13
13
  process.emitWarning(
14
14
  [
15
15
  `'weifuwu' is deprecated. Use scoped packages instead:`,
16
- ` import { serve } from 'weifuwu' → import { serve } from '@weifuwu/core'`,
17
- ` import { ssr } from 'weifuwu' → import { ssr } from '@weifuwu/react'`,
16
+ ` import { serve } from 'weifuwu' → import { serve } from '@weifuwujs/core'`,
17
+ ` import { ssr } from 'weifuwu' → import { ssr } from '@weifuwujs/react'`,
18
18
  ` import { aiProvider } from 'weifuwu' → npm install ai (use vercel/ai-sdk directly)`,
19
19
  `Set WEIFUWU_SUPPRESS_DEPRECATION=1 to silence this warning.`,
20
20
  ].join('\n'),
@@ -23,4 +23,4 @@ if (!process.env.WEIFUWU_SUPPRESS_DEPRECATION) {
23
23
  )
24
24
  }
25
25
 
26
- export * from '@weifuwu/core'
26
+ export * from '@weifuwujs/core'
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "weifuwu",
3
3
  "type": "module",
4
- "version": "0.28.0",
5
- "description": "Web-standard HTTP microframework — alias for @weifuwu/core",
4
+ "version": "0.28.2",
5
+ "description": "Web-standard HTTP microframework — alias for @weifuwujs/core",
6
6
  "exports": {
7
7
  ".": {
8
8
  "types": "./index.d.ts",
@@ -10,7 +10,7 @@
10
10
  }
11
11
  },
12
12
  "dependencies": {
13
- "@weifuwu/core": "*"
13
+ "@weifuwujs/core": "*"
14
14
  },
15
15
  "files": [
16
16
  "index.js",