@atomicservice/ascf-toolkit 1.0.3 → 1.0.5-beta.4

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 (89) hide show
  1. package/lib/ascf-base/index.d.ts +68 -0
  2. package/lib/ascf-base/index.js +1 -0
  3. package/lib/ascf-compiler/appjson-loader.js +1 -1
  4. package/lib/ascf-compiler/common/appjson-validator.js +1 -1
  5. package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
  6. package/lib/ascf-compiler/common/eventHappenHjs.js +1 -1
  7. package/lib/ascf-compiler/common/exp-utils.js +1 -1
  8. package/lib/ascf-compiler/common/hash-sum.js +1 -1
  9. package/lib/ascf-compiler/common/hdc-executor.js +1 -0
  10. package/lib/ascf-compiler/common/hjs-utils.js +1 -1
  11. package/lib/ascf-compiler/common/hxml-validator.js +1 -1
  12. package/lib/ascf-compiler/common/logUndefined.js +1 -1
  13. package/lib/ascf-compiler/common/manifest-handler.js +1 -0
  14. package/lib/ascf-compiler/common/manifest-manager.js +1 -0
  15. package/lib/ascf-compiler/common/merge-tpl-cmps.js +1 -1
  16. package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
  17. package/lib/ascf-compiler/common/quick-generate-subpackage.js +1 -1
  18. package/lib/ascf-compiler/common/utils.js +1 -1
  19. package/lib/ascf-compiler/css-process-loader.js +1 -1
  20. package/lib/ascf-compiler/extract-loader.js +1 -1
  21. package/lib/ascf-compiler/hcss-loader.js +1 -1
  22. package/lib/ascf-compiler/hjs-loader.js +1 -1
  23. package/lib/ascf-compiler/hxml-loader.js +1 -1
  24. package/lib/ascf-compiler/js-parser/parser-babel.js +1 -1
  25. package/lib/ascf-compiler/js-parser/parser-swc.js +1 -1
  26. package/lib/ascf-compiler/js-parser/parser.js +1 -1
  27. package/lib/ascf-compiler/loader-utils.js +1 -1
  28. package/lib/ascf-compiler/path-process-loader.js +1 -1
  29. package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
  30. package/lib/ascf-compiler/plugin/dynamic-entry-plugin.js +1 -0
  31. package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
  32. package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
  33. package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
  34. package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
  35. package/lib/ascf-compiler/plugin/replace-module-id-plugin.js +1 -1
  36. package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
  37. package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
  38. package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
  39. package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
  40. package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
  41. package/lib/ascf-compiler/require-loader.js +1 -1
  42. package/lib/ascf-compiler/server/dev-server.js +1 -0
  43. package/lib/ascf-compiler/server/port-manager.js +1 -0
  44. package/lib/ascf-compiler/swc-loader.js +1 -1
  45. package/lib/ascf-compiler/template/attr-utils.js +1 -1
  46. package/lib/ascf-compiler/template/implicit-model-config.js +1 -1
  47. package/lib/ascf-compiler/template/node-name-utils.js +1 -1
  48. package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
  49. package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
  50. package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
  51. package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
  52. package/lib/ascf-compiler/trustlist-verify/verify-ignore-files.js +1 -0
  53. package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
  54. package/lib/ascf-compiler/watch/watch.js +1 -1
  55. package/lib/ascf-compiler/web.webpack.config.js +1 -1
  56. package/lib/ascf-converter/ascfApisDiff.json +1979 -0
  57. package/lib/ascf-converter/common/commonConfig.js +1 -1
  58. package/lib/ascf-converter/common/commonUtils.js +1 -1
  59. package/lib/ascf-converter/common/path-validator.js +1 -1
  60. package/lib/ascf-converter/common/textDocument.js +1 -1
  61. package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
  62. package/lib/ascf-converter/convertManager.js +1 -0
  63. package/lib/ascf-converter/features/converter.js +1 -1
  64. package/lib/ascf-converter/features/fileHandle.js +1 -1
  65. package/lib/ascf-converter/features/transformReport.js +1 -1
  66. package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
  67. package/lib/ascf-converter/parse/babelParser.js +1 -1
  68. package/lib/ascf-converter/parse/importVisitor.js +1 -1
  69. package/lib/ascf-converter/parse/wxssParser.js +1 -1
  70. package/lib/ascf-converter/report/icons/completely.png +0 -0
  71. package/lib/ascf-converter/report/icons/failed.png +0 -0
  72. package/lib/ascf-converter/report/icons/portion.png +0 -0
  73. package/lib/ascf-converter/report/index.html +718 -0
  74. package/lib/ascf-converter/report/js/index.js +1 -0
  75. package/lib/bin/ascf.js +1 -1
  76. package/lib/commands/ascfbuild/index.js +1 -0
  77. package/lib/commands/build-npm/index.js +1 -0
  78. package/lib/commands/debugger/index.js +1 -0
  79. package/lib/common/config.js +1 -1
  80. package/lib/common/log4js.js +1 -1
  81. package/lib/common/logger-plugin.js +1 -1
  82. package/lib/common/remove-strict-mode-plugin.js +1 -1
  83. package/lib/common/string-utils.js +1 -1
  84. package/lib/common/url.json +3 -0
  85. package/lib/common/utils.js +1 -1
  86. package/lib/common/version-check.js +1 -1
  87. package/lib/index.d.ts +2 -0
  88. package/lib/index.js +1 -1
  89. package/package.json +17 -53
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomicservice/ascf-toolkit",
3
- "version": "1.0.3",
3
+ "version": "1.0.5-beta.4",
4
4
  "author": "atomicservice",
5
5
  "title": "ASCF toolkit for atomicservice",
6
6
  "description": "ASCF toolkit for atomicservice",
@@ -14,27 +14,26 @@
14
14
  "prepare:init": "git submodule update --init && node scripts/prepare",
15
15
  "prepare:parse5": "cd thirdparty/parse5/packages/parse5 && pnpm i && pnpm build:cjs && pnpm release:ascf-parse5",
16
16
  "prepare:vue": "cd thirdparty/vue && pnpm i && pnpm release:compiler",
17
- "prepare:build": "npm run prepare:init && npm run prepare:parse5 && npm run prepare:vue",
17
+ "prepare:base": "cd ../ascf-base && pnpm i && pnpm build:ascf-toolkit",
18
+ "prepare:build": "npm run prepare:init && npm run prepare:parse5 && npm run prepare:vue && npm run prepare:base",
18
19
  "bep": "gulp dev && npm pack",
19
20
  "dev": "gulp dev",
20
21
  "build": "gulp release",
21
22
  "release": "gulp release && npm pack"
22
23
  },
23
24
  "dependencies": {
24
- "@swc/core": "1.10.14",
25
- "@babel/core": "7.25.7",
26
- "@babel/generator": "7.25.7",
27
- "@babel/parser": "7.25.7",
28
- "@babel/traverse": "7.25.7",
29
-
30
- "@babel/plugin-proposal-class-properties": "7.18.6",
25
+ "@babel/core": "7.25.9",
26
+ "@babel/generator": "7.25.9",
27
+ "@babel/parser": "7.25.9",
31
28
  "@babel/plugin-proposal-object-rest-spread": "7.18.9",
32
- "@babel/plugin-transform-modules-commonjs": "7.25.7",
29
+ "@babel/plugin-transform-class-properties": "7.25.9",
30
+ "@babel/plugin-transform-modules-commonjs": "7.25.9",
33
31
  "@babel/plugin-transform-runtime": "7.18.10",
34
- "@babel/preset-env": "7.25.7",
35
- "@babel/runtime": "7.25.7",
36
-
37
- "babel-loader": "8.2.5",
32
+ "@babel/preset-env": "7.25.9",
33
+ "@babel/runtime": "7.25.9",
34
+ "@babel/traverse": "7.25.9",
35
+ "@swc/core": "1.10.14",
36
+ "babel-loader": "10.0.0",
38
37
  "cachedir": "2.4.0",
39
38
  "commander": "9.4.0",
40
39
  "eslint": "8.31.0",
@@ -43,16 +42,17 @@
43
42
  "less-loader": "12.2.0",
44
43
  "loader-utils": "2.0.4",
45
44
  "log4js": "6.9.1",
45
+ "minimatch": "5.1.6",
46
46
  "postcss": "8.4.39",
47
47
  "rimraf": "4.4.0",
48
48
  "sass": "1.55.0",
49
49
  "sass-loader": "10.3.1",
50
50
  "semver": "7.5.4",
51
- "source-map": "0.7.4",
52
51
  "stylus": "0.59.0",
53
- "stylus-loader": "7.0.0",
52
+ "stylus-loader": "8.1.1",
54
53
  "webpack": "5.76.2",
55
- "minimatch": "5.1.6"
54
+ "webpack-bundle-analyzer": "4.10.2",
55
+ "webpack-dev-server": "5.2.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "del": "6.1.0",
@@ -65,42 +65,6 @@
65
65
  },
66
66
  "overrides": {
67
67
  "minipass": "3.3.6",
68
- "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "7.25.7",
69
- "@babel/plugin-bugfix-safari-class-field-initializer-scope": "7.25.7",
70
- "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "7.25.7",
71
- "@babel/plugin-syntax-import-assertions": "7.25.7",
72
- "@babel/plugin-transform-optional-chaining": "7.25.8",
73
- "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "7.25.7",
74
- "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "7.25.7",
75
- "@babel/plugin-syntax-import-attributes": "7.25.7",
76
- "@babel/plugin-transform-async-generator-functions": "7.25.8",
77
- "@babel/plugin-transform-class-properties": "7.25.7",
78
- "@babel/plugin-transform-class-static-block": "7.25.8",
79
- "@babel/plugin-transform-dotall-regex": "7.25.7",
80
- "@babel/plugin-transform-duplicate-keys": "7.25.7",
81
- "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "7.25.7",
82
- "@babel/plugin-transform-dynamic-import": "7.25.8",
83
- "@babel/plugin-transform-exponentiation-operator": "7.25.7",
84
- "@babel/helper-builder-binary-assignment-operator-visitor": "7.25.7",
85
- "@babel/plugin-transform-export-namespace-from": "7.25.8",
86
- "@babel/plugin-transform-json-strings": "7.25.8",
87
- "@babel/plugin-transform-logical-assignment-operators": "7.25.8",
88
- "@babel/plugin-transform-modules-amd": "7.25.7",
89
- "@babel/plugin-transform-modules-systemjs": "7.25.7",
90
- "@babel/plugin-transform-modules-umd": "7.25.7",
91
- "@babel/plugin-transform-new-target": "7.25.7",
92
- "@babel/plugin-transform-nullish-coalescing-operator": "7.25.8",
93
- "@babel/plugin-transform-numeric-separator": "7.25.8",
94
- "@babel/plugin-transform-object-rest-spread": "7.25.8",
95
- "@babel/plugin-transform-optional-catch-binding": "7.25.8",
96
- "@babel/plugin-transform-private-methods": "7.25.7",
97
- "@babel/plugin-transform-private-property-in-object": "7.25.8",
98
- "@babel/plugin-transform-regenerator": "7.25.7",
99
- "@babel/plugin-transform-reserved-words": "7.25.7",
100
- "@babel/plugin-transform-typeof-symbol": "7.25.7",
101
- "@babel/plugin-transform-unicode-escapes": "7.25.7",
102
- "@babel/plugin-transform-unicode-property-regex": "7.25.7",
103
- "@babel/plugin-transform-unicode-sets-regex": "7.25.7",
104
68
  "@types/node": "18.15.5",
105
69
  "cross-spawn": "7.0.3",
106
70
  "esquery": "1.4.0",