@modern-js/types
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.0-beta.2
# @modern-js/types | ||
## 2.0.0-beta.2 | ||
### Major Changes | ||
- dda38c9c3e: chore: v2 | ||
### Patch Changes | ||
- cc971eabfc: refactor: move server plugin load logic in `@modern-js/core` | ||
refactor:移除在 `@modern-js/core` 中的 server 插件加载逻辑 | ||
- 6bda14ed71: feat: refactor router with react-router@6.4 | ||
feat: 使用 react-router@6.4 重构路由模块 | ||
- 40ed587: feat: inject css chunk into html for streaming ssr | ||
feat: streaming ssr 返回的 html 注入 css chunk | ||
- 87c1ff8: feat(app-tools): attach builder instance to appContext | ||
feat(app-tools): 将 builder 实例挂载到 appContext 上 | ||
- 102d32e4ba: feat(server): add `req` and `res` to SSR context | ||
feat(server): 添加 `req` 和 `res` 到 SSR context 中 | ||
- 8b8e1bb571: feat: support nested routes | ||
feat: 支持嵌套路由 | ||
- 3bbea92b2a: feat: support Hook、Middleware new API | ||
feat: 支持 Hook、Middleware 的新 API | ||
## 2.0.0-beta.1 | ||
@@ -4,0 +33,0 @@ |
import type { Merge } from 'type-fest'; | ||
import { InternalPlugins } from '../common'; | ||
import { ServerRoute } from '../server'; | ||
export type { Config as JestConfigTypes } from '@jest/types'; | ||
/** | ||
@@ -89,29 +89,2 @@ * Bundle entrypoint | ||
export interface IAppContext { | ||
metaName: string; // name for generating conventional constants, such as .modern-js | ||
appDirectory: string; | ||
configFile: string | false; | ||
serverConfigFile: string; | ||
serverInternalPlugins: InternalPlugins; | ||
ip?: string; | ||
port?: number; | ||
distDirectory: string; | ||
packageName: string; | ||
srcDirectory: string; | ||
sharedDirectory: string; | ||
nodeModulesDirectory: string; | ||
internalDirectory: string; | ||
plugins: any[]; | ||
entrypoints: Entrypoint[]; | ||
checkedEntries: string[]; | ||
serverRoutes: ServerRoute[]; | ||
htmlTemplates: HtmlTemplates; | ||
absoluteEntryDir?: string; | ||
apiOnly: boolean; | ||
internalDirAlias: string; | ||
internalSrcAlias: string; | ||
// FIXME real builder type | ||
builder?: Record<string, any>; | ||
} | ||
export type { Merge } from 'type-fest'; |
@@ -0,1 +1,6 @@ | ||
export type { | ||
TransformOptions as BabelTransformOptions, | ||
PluginItem as BabelPlugin, | ||
} from '@babel/core'; | ||
export type InternalPlugins = Record< | ||
@@ -2,0 +7,0 @@ string, |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0-beta.2", | ||
"types": "./index.d.ts", | ||
@@ -35,9 +35,11 @@ "exports": { | ||
"devDependencies": { | ||
"@types/babel__core": "^7.1.19", | ||
"@types/jest": "^27", | ||
"@types/node": "^14", | ||
"@jest/types": "^27.0.6", | ||
"http-proxy-middleware": "^2.0.4", | ||
"jest": "^27", | ||
"type-fest": "2.15.0", | ||
"@scripts/build": "2.0.0-beta.1", | ||
"@scripts/jest-config": "2.0.0-beta.1" | ||
"@scripts/build": "2.0.0-beta.2", | ||
"@scripts/jest-config": "2.0.0-beta.2" | ||
}, | ||
@@ -44,0 +46,0 @@ "sideEffects": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27711
9
426