Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"@types/webpack-dev-server": "^3.11.3",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@vitest/coverage-istanbul": "^3.2.3",
"@vitest/coverage-istanbul": "^3.2.4",
"babel-jest": "^29.7.0",
"babel-plugin-syntax-jsx": "6.18.0",
"babel-preset-power-assert": "3.0.0",
Expand Down Expand Up @@ -163,7 +163,7 @@
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"typescript": "~5.4.5",
"vitest": "^3.2.3"
"vitest": "^3.2.4"
},
"pnpm": {
"packageExtensions": {
Expand Down
12 changes: 0 additions & 12 deletions packages/eslint-plugin-taro/CHANGELOG.md

This file was deleted.

144 changes: 0 additions & 144 deletions packages/eslint-plugin-taro/yarn.lock

This file was deleted.

2 changes: 1 addition & 1 deletion packages/shared/src/shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const enum Shortcuts {
NodeType = 'nt',
NodeName = 'nn',

// Attrtibutes
// Attributes
Sid = 'sid',
Style = 'st',
Class = 'cl',
Expand Down
7 changes: 0 additions & 7 deletions packages/taro-components/CHANGELOG.md

This file was deleted.

10 changes: 5 additions & 5 deletions packages/taro-framework-react/src/runtime/connect-native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export function createNativePageConfig (Component, pageName: string, data: Recor
[ONUNLOAD] () {
const $taroPath = this.$taroPath
// 销毁当前页面的上下文信息
window.trigger(CONTEXT_ACTIONS.DESTORY, $taroPath)
window.trigger(CONTEXT_ACTIONS.DESTROY, $taroPath)
// 触发onUnload生命周期
safeExecute($taroPath, ONUNLOAD)
resetCurrent()
Expand Down Expand Up @@ -345,20 +345,20 @@ export function createNativePageConfig (Component, pageName: string, data: Recor
export function createH5NativeComponentConfig (
Component,
react: typeof React,
reactdom: typeof ReactDOM,
reactDOM: typeof ReactDOM,
) {
reactMeta.R = react
h = react.createElement
ReactDOM = reactdom
ReactDOM = reactDOM
setReconciler(ReactDOM)

return Component
}

export function createNativeComponentConfig (Component, react: typeof React, reactdom, componentConfig) {
export function createNativeComponentConfig (Component, react: typeof React, reactDOM, componentConfig) {
reactMeta.R = react
h = react.createElement
ReactDOM = reactdom
ReactDOM = reactDOM
setReconciler(ReactDOM)
const { isNewBlended } = componentConfig

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export function createNativePageConfig (
[ONUNLOAD] () {
const $taroPath = this.$taroPath
// 销毁当前页面的上下文信息
window.trigger(CONTEXT_ACTIONS.DESTORY, $taroPath)
window.trigger(CONTEXT_ACTIONS.DESTROY, $taroPath)
// 触发onUnload生命周期
safeExecute($taroPath, ONUNLOAD)

Expand Down Expand Up @@ -446,12 +446,12 @@ export function createNativeComponentConfig (
Component,
compName: string,
react: typeof React,
reactdom,
reactDOM,
componentConfig: any = {}
) {
reactMeta.R = react
h = react.createElement
ReactDOM = reactdom
ReactDOM = reactDOM
setReconciler(ReactDOM)
const { isUseReact18 = true } = componentConfig

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export function createPageConfig (component: any, pageName?: string, pageConfig?
[ONUNLOAD] () {
const $taroPath = this.$taroPath
// 销毁当前页面的上下文信息
window.trigger(CONTEXT_ACTIONS.DESTORY, $taroPath)
window.trigger(CONTEXT_ACTIONS.DESTROY, $taroPath)

// 触发onUnload生命周期
safeExecute($taroPath, ON_UNLOAD)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export function createNativePageConfig (
[ONUNLOAD] () {
const $taroPath = this.$taroPath
// 销毁当前页面的上下文信息
window.trigger(CONTEXT_ACTIONS.DESTORY, $taroPath)
window.trigger(CONTEXT_ACTIONS.DESTROY, $taroPath)
// 触发onUnload生命周期
safeExecute($taroPath, ONUNLOAD)

Expand Down Expand Up @@ -418,12 +418,12 @@ export function createNativePageConfig (
export function createNativeComponentConfig (
Component,
react: typeof React,
reactdom,
reactDOM,
componentConfig
) {
reactMeta.R = react
h = react.createElement
ReactDOM = reactdom
ReactDOM = reactDOM
setReconciler(ReactDOM)
const { isNewBlended, isUseReact18 } = componentConfig

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function createPageConfig (component: any, pageName?: string, pageConfig?
[ONUNLOAD] () {
const $taroPath = this.$taroPath
// 销毁当前页面的上下文信息
window.trigger(CONTEXT_ACTIONS.DESTORY, $taroPath)
window.trigger(CONTEXT_ACTIONS.DESTROY, $taroPath)

// 触发onUnload生命周期
safeExecute($taroPath, ON_UNLOAD)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function createPageConfig (component: any, pageName?: string, pageConfig?
[ONUNLOAD] () {
const $taroPath = this.$taroPath
// 销毁当前页面的上下文信息
window.trigger(CONTEXT_ACTIONS.DESTORY, $taroPath)
window.trigger(CONTEXT_ACTIONS.DESTROY, $taroPath)

// 触发onUnload生命周期
safeExecute($taroPath, ON_UNLOAD)
Expand Down
5 changes: 2 additions & 3 deletions packages/taro-router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ H5 端路由系统。

## 核心 API

### createRouter(app, config, type, framework, reactdom)
### createRouter(app, config, type, framework, reactDOM)

暴露给 `@tarojs/taro-loader/h5` 调用,在应用入口文件中调用,创建一个兼容小程序路由规范的应用。

Expand All @@ -26,7 +26,6 @@ H5 端路由系统。

框架的 default import 对象。

### `reactdom`
### `reactDOM`

可选,`react-dom` 的 default import 对象。

35 changes: 0 additions & 35 deletions packages/taro-runtime/jest.config.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/taro-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"clean": "rimraf ./dist",
"dev": "pnpm run rollup --environment NODE_ENV:development -w",
"rollup": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
"test": "jest",
"test:ci": "jest --ci -i --coverage --silent"
"test": "vitest run",
"test:ci": "vitest run --coverage"
},
"repository": {
"type": "git",
Expand Down
Loading
Loading