Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 新增已编译文件 jsx-to-rn-style 编译逻辑 #16031

Closed
wants to merge 45 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
a277a10
feat: 新增已编译文件 jsx-to-rn-style 编译逻辑
May 31, 2024
c69c160
feat: 新增 jsx-to-rn-style 支持函数对象型参数的识别
Jun 3, 2024
04e711d
Merge remote-tracking branch 'origin' into 4.x
Jun 3, 2024
851500f
chore(release): publish 3.6.31 (#15828)
liqinuo Jun 4, 2024
864a456
feat: 为request兼容ArrayBuffer数据
chenai02 Jun 5, 2024
aad0992
fix: chooseMedia适配两种实现方式
heweishui Jun 5, 2024
e05149f
Merge pull request #15850 from heweishui/main
qican777 Jun 6, 2024
39e6c10
Merge branch 'main' into main
qican777 Jun 6, 2024
522ec4c
Merge pull request #15846 from chenai02/main
qican777 Jun 6, 2024
ccc2b94
feat: [Harmony-Hybrid] createIntersectionObserver修改为独立实现,回调参数支持id和dat…
Jun 7, 2024
6034367
feat: [Harmony-Hybrid] createIntersectionObserver修改为独立实现,回调参数支持id和dat…
Jun 7, 2024
4000b22
fix: [Harmony-Hybrid] dataset读取修改
Jun 7, 2024
8b2d712
Merge branch 'main' into main
qican777 Jun 7, 2024
50bd2a9
Merge pull request #15854 from kongxiaojun/main
qican777 Jun 7, 2024
73f86b8
fix: [harmony-hybrid]修复部分API调用原生报错问题
xiaoyan428820 Jun 11, 2024
7212f9d
Merge pull request #15864 from xiaoyan428820/main
qican777 Jun 11, 2024
4da04e0
feat: 删除navigateToMiniProgram相关实现
licunhao1 Jun 12, 2024
1210ede
Merge pull request #15872 from licunhao1/main
qican777 Jun 12, 2024
21f97bc
fix: [harmony-hybrid]open-api相关接口实现修改
qcjxs Jun 13, 2024
a884dcb
fix: 由于某些浏览器对 :has() 选择器的支持度一般,所以开启参数进行降级 (#15855)
ZEJIA-LIU Jun 14, 2024
5bb5bc4
chore(release): publish 3.6.32 (#15888)
liqinuo Jun 14, 2024
db4a968
Merge branch 'main' into main
qican777 Jun 17, 2024
29b9833
feat: 新增 jsx-to-rn-style 支持变量型类名的识别
Jun 17, 2024
46e62d3
Merge pull request #15882 from xiaoyan428820/main
qican777 Jun 17, 2024
7bbe3d3
Merge remote-tracking branch 'origin/4.x' into 4.x
Jun 17, 2024
c2b0673
feat: [harmony-hybrid]新增previewImage桥接原生
qcjxs Jun 18, 2024
5fea6f9
Merge pull request #15926 from xiaoyan428820/main
qican777 Jun 18, 2024
c410398
fix: 修复导航栏配置无效的问题
guoenxuan Jun 14, 2024
98e8a50
fix: 修复getLaunchOptionsSync无返回数据的问题
guoenxuan Jun 17, 2024
eeacd2c
Merge pull request #15917 from guoenxuan/jd-main
qican777 Jun 18, 2024
0434a61
fix: 解决IntersectionObserver相关接口无效问题
heweishui Jun 18, 2024
08ac81f
fix: 部分API不支持,修改为继承h5
licunhao1 Jun 19, 2024
7093934
Merge pull request #15929 from heweishui/main
qican777 Jun 19, 2024
bc5f615
Merge branch 'main' into main
licunhao1 Jun 19, 2024
a8ac196
Merge pull request #15932 from licunhao1/main
qican777 Jun 19, 2024
c12054b
feat(cli): 支持更改 CLI 展示的模板名称 (#15940)
koppthe Jun 20, 2024
9b4aecc
fix: 修复clearStorageSync报错的问题
guoenxuan Jun 20, 2024
75b131a
Merge pull request #15944 from guoenxuan/jd-main
qican777 Jun 20, 2024
a5e0d79
fix: 修复dev模式下桥接到原生侧的同步API崩溃问题
guoenxuan Jun 21, 2024
f852d5b
Merge pull request #15951 from guoenxuan/jd-main
qican777 Jun 21, 2024
bab6f51
feat(runtime): url search params 容错处理 (#15717) (#15982)
koppthe Jun 25, 2024
231e59c
Merge remote-tracking branch 'origin' into 4.x
Jul 1, 2024
911a7bc
Merge branch 'taro/4.x' into 4.x
Jul 1, 2024
6528237
Merge remote-tracking branch 'origin/4.x' into 4.x
Jul 2, 2024
9e0025f
feat(rn-style-transformer): 新增样式变量编译插件
Jul 3, 2024
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
13 changes: 2 additions & 11 deletions packages/stylelint-taro-rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,8 @@
"name": "stylelint-taro-rn",
"version": "4.0.0-alpha.30",
"description": "A collection of React Native specific rules for stylelint",
"author": "O2Team",
"license": "MIT",
"type": "module",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"exports": {
".": {
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"version": "3.6.32",
"main": "dist/index.js",
"files": [
"dist"
],
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
"dependencies": {
"@tarojs/binding": "workspace:*",
"@tarojs/helper": "workspace:*",
"@tarojs/plugin-doctor": "^0.0.11",
"@tarojs/service": "workspace:*",
"@tarojs/shared": "workspace:*",
"@tarojs/plugin-doctor": "^0.0.13",
"adm-zip": "^0.5.12",
"adm-zip": "^0.4.13",
"axios": "^1.6.8",
"cli-highlight": "^2.1.11",
"download-git-repo": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-cli/src/create/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class Project extends Creator {
public rootPath: string
public conf: IProjectConfOptions

constructor (options: IProjectConfOptions) {
constructor(options: IProjectConfOptions) {
super(options.sourceRoot)
const unSupportedVer = semver.lt(process.version, 'v18.0.0')
if (unSupportedVer) {
Expand Down
37 changes: 37 additions & 0 deletions packages/taro-components-library-vue2/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "@tarojs/components-library-vue2",
"version": "3.6.32",
"description": "Taro 组件库 Vue2 版本库",
"private": true,
"main": "index.js",
"scripts": {
"build:ci": "run-s clean prod",
"clean": "rimraf ../taro-components/lib/vue2",
"dev": "pnpm run prod -w",
"preprod": "node ./scripts/fix.js",
"prod": "rollup -c"
},
"keywords": [],
"author": "ZakaryCode",
"license": "MIT",
"dependencies": {
"@tarojs/components": "workspace:*",
"tslib": "^2.6.2",
"vue-fragment": "^1.6.0"
},
"devDependencies": {
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.5",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"@types/node": "^14.14.31",
"babel-preset-taro": "workspace:*",
"postcss": "^8.4.18",
"rollup": "^2.79.0",
"rollup-plugin-node-externals": "^5.0.0",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-ts": "^3.0.2",
"typescript": "^4.7.4",
"vue": "^2.6.11"
}
}
112 changes: 112 additions & 0 deletions packages/taro-mini-runner/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"name": "@tarojs/mini-runner",
"version": "3.6.32",
"description": "Mini app runner for taro",
"main": "index.js",
"scripts": {
"build": "pnpm run clean && pnpm run prod",
"dev": "pnpm run mv:comp && tsc -w",
"prod": "tsc && pnpm run mv:comp",
"mv:comp": "node ./mv-comp.js",
"clean": "rimraf dist",
"test": "cross-env NODE_ENV=jest jest",
"test:ci": "cross-env NODE_ENV=jest jest --ci -i --coverage --silent",
"test:dev": "cross-env NODE_ENV=jest jest --watch",
"test:coverage": "cross-env NODE_ENV=jest jest --coverage",
"updateSnapshot": "cross-env NODE_ENV=jest jest --updateSnapshot"
},
"repository": {
"type": "git",
"url": "git+https://github.com/NervJS/taro.git"
},
"files": [
"index.js",
"dist"
],
"keywords": [
"taro"
],
"author": "luckyadam",
"license": "MIT",
"bugs": {
"url": "https://github.com/NervJS/taro/issues"
},
"homepage": "https://github.com/NervJS/taro#readme",
"dependencies": {
"@babel/core": "^7.14.5",
"@tarojs/helper": "workspace:*",
"@tarojs/plugin-platform-alipay": "workspace:*",
"@tarojs/plugin-platform-jd": "workspace:*",
"@tarojs/plugin-platform-qq": "workspace:*",
"@tarojs/plugin-platform-swan": "workspace:*",
"@tarojs/plugin-platform-tt": "workspace:*",
"@tarojs/plugin-platform-weapp": "workspace:*",
"@tarojs/runner-utils": "workspace:*",
"@tarojs/taro-loader": "workspace:*",
"acorn-walk": "^8.0.0",
"autoprefixer": "^9.7.4",
"babel-loader": "8.2.1",
"babel-preset-taro": "workspace:*",
"copy-webpack-plugin": "5.1.2",
"css-loader": "5.2.7",
"csso-webpack-plugin": "2.0.0-beta.1",
"file-loader": "^6.0.0",
"html-minifier": "^4.0.0",
"jsdom": "^21.1.0",
"less": "^4.1.0",
"less-loader": "7.3.0",
"loader-utils": "^1.2.3",
"lodash": "^4.17.21",
"md5": "^2.3.0",
"micromatch": "^4.0.2",
"mini-css-extract-plugin": "0.9.0",
"miniprogram-simulate": "^1.1.5",
"mkdirp": "^1.0.4",
"ora": "^5.0.0",
"postcss-html-transform": "workspace:*",
"postcss-import": "^14.0.0",
"postcss-loader": "4.3.0",
"postcss-pxtransform": "workspace:*",
"postcss-url": "^10.1.3",
"regenerator-runtime": "0.11",
"resolve": "^1.22.0",
"resolve-url-loader": "4.0.0",
"sass": "1.50.0",
"sass-loader": "10.2.0",
"sax": "1.2.4",
"stylus": "^0.55.0",
"stylus-loader": "3.0.2",
"terser-webpack-plugin": "^3.0.5",
"url-loader": "^4.1.0",
"vm2": "^3.8.4",
"webpack": "4.46.0",
"webpack-chain": "4.9.0",
"webpack-sources": "^1.4.3",
"webpack-format-messages": "^2.0.5"
},
"devDependencies": {
"@tarojs/runtime": "workspace:*",
"@tarojs/shared": "workspace:*",
"@tarojs/taro": "workspace:*",
"@types/sax": "^1.2.4",
"@types/webpack": "4",
"babel-jest": "^29.5.0",
"jest": "^29.3.1",
"jest-cli": "^29.3.1",
"jest-transform-css": "^6.0.1",
"jest-environment-node": "^29.5.0",
"memfs": "^3.1.2",
"memory-fs": "^0.5.0",
"postcss": "^8.4.18",
"ts-jest": "^29.0.5",
"typescript": "^4.7.4",
"vue-loader": "^15.10.1",
"webpack-merge": "^4.2.2"
},
"peerDependencies": {
"@tarojs/runtime": "workspace:~",
"@tarojs/shared": "workspace:~",
"@tarojs/taro": "workspace:~",
"postcss": "^8.4.18"
}
}
46 changes: 23 additions & 23 deletions packages/taro-platform-harmony-hybrid/src/api/apis/NativeApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class NativeApi {

@syncApiCache()
@(syncAndRelease)
getWindowInfo (): any {}
getWindowInfo (): any { }

// @ts-ignore
@(syncAndRelease)
Expand All @@ -25,19 +25,19 @@ export class NativeApi {

@syncApiCache()
@(syncAndRelease)
getSystemInfoSync (): any {}
getSystemInfoSync (): any { }

@syncApiCache()
@(syncAndRelease)
getSystemSetting (): any {}
getSystemSetting (): any { }

@syncApiCache()
@(syncAndRelease)
getAppBaseInfo (): any {}
getAppBaseInfo (): any { }

@syncApiCache()
@(syncAndRelease)
getAppAuthorizeSetting (): any {}
getAppAuthorizeSetting (): any { }

// @ts-ignore
@(syncAndRelease)
Expand All @@ -47,7 +47,7 @@ export class NativeApi {

@syncApiCache()
@(syncAndRelease)
getMenuButtonBoundingClientRect (): any {}
getMenuButtonBoundingClientRect (): any { }

// @ts-ignore
@(syncAndRelease)
Expand Down Expand Up @@ -150,10 +150,10 @@ export class NativeApi {
}

@(asyncAndRelease)
showNavigationBarLoading (): void {}
showNavigationBarLoading (): void { }

@(asyncAndRelease)
hideNavigationBarLoading (): void {}
hideNavigationBarLoading (): void { }

@(asyncAndRelease)
startSoterAuthentication (options: any): any {
Expand Down Expand Up @@ -216,19 +216,19 @@ export class NativeApi {
@(asyncAndRelease)
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
setNavigationStyle (options: any): void {}
setNavigationStyle (options: any): void { }

// @ts-ignore
@(asyncAndRelease)
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
setCapsuleState (options: any): void {}
setCapsuleState (options: any): void { }

// @ts-ignore
@(syncAndRelease)
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
getCapsuleState (options: any): any {}
getCapsuleState (options: any): any { }

// @ts-ignore
@(syncAndRelease)
Expand Down Expand Up @@ -347,7 +347,7 @@ export class NativeApi {
// NativeUpdateManager
// @ts-ignore
@(syncAndRelease)
applyUpdate (): any {}
applyUpdate (): any { }

// @ts-ignore
@(syncAndRelease)
Expand Down Expand Up @@ -376,7 +376,7 @@ export class NativeApi {
// NativeFileSystemManager
// @ts-ignore
@(syncAndRelease)
getFileManager (): any {}
getFileManager (): any { }

// @ts-ignore
@(asyncAndNotRelease)
Expand All @@ -391,10 +391,10 @@ export class NativeApi {
}

@(asyncAndRelease)
getFileInformation (_option: any): void {}
getFileInformation (_option: any): void { }

@(asyncAndRelease)
getFileInfo (_option: any): void {}
getFileInfo (_option: any): void { }

// @ts-ignore
@(asyncAndNotRelease)
Expand Down Expand Up @@ -562,43 +562,43 @@ export class NativeApi {
@(asyncAndNotRelease)
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
setStorage (option: any): any {}
setStorage (option: any): any { }

@(asyncAndRelease)
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
removeStorage (option: any): any {}
removeStorage (option: any): any { }

// @ts-ignore
@(asyncAndRelease)
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
getStorage (option: any): any {}
getStorage (option: any): any { }

@(syncAndRelease)
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
getStorageSync (key): any {}
getStorageSync (key): any { }

@(asyncAndRelease)
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
batchGetPageShowDataStorage (options: any): any {}
batchGetPageShowDataStorage (options: any): any { }

@(asyncAndRelease)
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
updatePageShowDataKeys (options: any): any {}
updatePageShowDataKeys (options: any): any { }

@(asyncAndRelease)
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
getStorageInfo (option: any): any {}
getStorageInfo (option: any): any { }

@(asyncAndRelease)
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
clearStorage (option: any): any {}
clearStorage (option: any): any { }

@(syncAndRelease)
callInstance (option: any): any {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { asyncAndRelease } from '../../harmony-native/ApiDecorator'

class NativeImage {
@asyncAndRelease
previewImage (_options: any):void {}
previewImage (_options: any): void { }
}

const nativeImage = new NativeImage()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class TaroHarmonyHybridIntersectionObserver implements Taro.IntersectionO
return container
}

constructor (component: TaroGeneral.IAnyObject, options: Taro.createIntersectionObserver.Option = {}) {
constructor(component: TaroGeneral.IAnyObject, options: Taro.createIntersectionObserver.Option = {}) {
this._component = component
Object.assign(this._options, options)
}
Expand Down
Loading