Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ contact_links:
about: 发布一般性问题
- name: 🏗 生态建设 Ecosystem
url: https://github.com/NervJS/taro/discussions/categories/%E7%94%9F%E6%80%81
about: 工具库?组件库?快来丰富 Taro 生态
about: 工具库?组件库?快来丰富 Taro 生态
8 changes: 3 additions & 5 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: 🚀 功能请求 Feature Request
description: 提出新的功能特性
title: "[Feat]: "
labels:
- triage
- feat
- enhancement
body:
- type: checkboxes
id: duplication
Expand All @@ -23,7 +21,7 @@ body:
id: design
attributes:
label: 功能设计
description: 这个功能如何使用?(API / CLI ...)
description: 这个功能该如何使用?(API / CLI ...)
validations:
required: true
- type: textarea
Expand All @@ -36,4 +34,4 @@ body:
attributes:
label: 贡献代码
options:
- label: 我愿意实现这个功能
- label: 我愿意实现这个功能。请参考 [(贡献指南)](https://github.com/NervJS/taro/blob/main/CONTRIBUTING.md)
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $ pnpm --filter [package-name] run dev

在测试项目中创建好链接后,接下来就可以启动项目编译。注意如果是编译 H5 或小程序时,请提前关闭依赖预编译配置:

```json
```js
// /demo/config/dev.js
compiler: {
type: "webpack5",
Expand Down
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
8 changes: 0 additions & 8 deletions packages/taro-api/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const path = require('path')

module.exports = {
globals: {
ENABLE_INNER_HTML: true,
Expand All @@ -11,12 +9,6 @@ module.exports = {
ENABLE_CONTAINS: true,
},
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'node'],
moduleNameMapper: {
'@tarojs/taro': '<rootDir>/src/index.ts',
'@tarojs/api': '<rootDir>/src/index.ts',
'@tarojs/shared': path.resolve(__dirname, '..', '..', 'packages/shared/src/index.ts'),
'@tarojs/runtime': path.resolve(__dirname, '..', '..', 'packages/taro-runtime/dist/runtime.esm.js')
},
preset: 'ts-jest',
testEnvironment: 'node',
testEnvironmentOptions: {
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-api/src/interceptor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export default class Link {
}
}

export function interceptorify (promiseifyApi) {
export function interceptorify (promisifyApi) {
return new Link(function (chain) {
return promiseifyApi(chain.requestParams)
return promisifyApi(chain.requestParams)
})
}
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 对象。

Loading