mushroom-cli 1.2.2 → 1.2.3
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.
- package/README.md +7 -1
- package/dist/gen/gen-ts-driver.js +2 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -132,6 +132,12 @@ npx mushroom-cli parameters --no-check-update
|
|
|
132
132
|
|
|
133
133
|
## Version
|
|
134
134
|
|
|
135
|
+
### 1.2.3
|
|
136
|
+
|
|
137
|
+
Improvement
|
|
138
|
+
|
|
139
|
+
- gen ts-driver: separate `import` and `import type` when import mushroomjs
|
|
140
|
+
|
|
135
141
|
### 1.2.2
|
|
136
142
|
|
|
137
143
|
New features:
|
|
@@ -143,7 +149,7 @@ New features:
|
|
|
143
149
|
Improvement/Changes:
|
|
144
150
|
|
|
145
151
|
- gen docs: fix bugs
|
|
146
|
-
- gen c#-mongo: fix
|
|
152
|
+
- gen c#-mongo: fix signature for RegisterCustomViewMethod method
|
|
147
153
|
- init netcore:
|
|
148
154
|
- change: show warning message when replacing content in unexisting file (instead of throwing error)
|
|
149
155
|
|
|
@@ -259,7 +259,8 @@ export function genTypescriptDriverString(aliasProject, source) {
|
|
|
259
259
|
extensionsCodeLines.push('FileExtension.useFile(mushroom);');
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
let code = `import mushroom, { defineAsyncResource, defineAsyncView, fireEvent, createRestfulAsyncFunction,
|
|
262
|
+
let code = `import mushroom, { defineAsyncResource, defineAsyncView, fireEvent, createRestfulAsyncFunction, Mushroom, MushroomError } from "mushroomjs";
|
|
263
|
+
import type { IdType, IMushroom, MushroomRequest, MushroomRequestSetting, MushroomRestfulRequest, MushroomResponse, MushroomResponseDataType, MushroomResourceBase, MushroomListResource, MushroomCountResource, MushroomFindByIdResource, MushroomCreateResource, MushroomBatchCreateResource, MushroomUpdateResource, MushroomBatchUpdateResource, MushroomPartialUpdateResource, MushroomDeleteResource, MushroomBatchDeleteResource, MushroomExtensibleResource, MushroomViewFunction, IMushroomOfflineResponse, MushroomOfflineResponse, MushroomOfflineResponseState } from "mushroomjs";
|
|
263
264
|
${extensionsImportLines.join('\n')}
|
|
264
265
|
export * from "mushroomjs";
|
|
265
266
|
export const extensions = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mushroom-cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Mushroom CLI",
|
|
5
5
|
"main": "dist/mr.js",
|
|
6
6
|
"type": "module",
|
|
@@ -33,30 +33,30 @@
|
|
|
33
33
|
"author": "suco2007",
|
|
34
34
|
"license": "ISC",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"jsdom": "^
|
|
36
|
+
"jsdom": "^27.4.0",
|
|
37
37
|
"json5": "^2.2.3",
|
|
38
|
-
"minify": "^14.
|
|
38
|
+
"minify": "^14.1.0",
|
|
39
39
|
"node-fetch": "^3.3.2",
|
|
40
|
-
"open": "^
|
|
40
|
+
"open": "^11.0.0",
|
|
41
41
|
"readline-sync": "^1.4.10",
|
|
42
42
|
"targz": "^1.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@eslint/js": "^9.
|
|
46
|
-
"@types/jsdom": "^
|
|
45
|
+
"@eslint/js": "^9.39.2",
|
|
46
|
+
"@types/jsdom": "^27.0.0",
|
|
47
47
|
"@types/minify": "^9.1.4",
|
|
48
48
|
"@types/node": "^22.15.29",
|
|
49
49
|
"@types/node-fetch": "^2.6.13",
|
|
50
50
|
"@types/readline-sync": "^1.4.8",
|
|
51
51
|
"@types/targz": "^1.0.5",
|
|
52
52
|
"copyfiles": "^2.4.1",
|
|
53
|
-
"eslint": "^9.
|
|
53
|
+
"eslint": "^9.39.2",
|
|
54
54
|
"husky": "^9.1.7",
|
|
55
|
-
"lint-staged": "^16.
|
|
56
|
-
"only-allow": "^1.2.
|
|
57
|
-
"prettier": "^3.
|
|
58
|
-
"typescript": "^5.
|
|
59
|
-
"typescript-eslint": "^8.
|
|
55
|
+
"lint-staged": "^16.2.7",
|
|
56
|
+
"only-allow": "^1.2.2",
|
|
57
|
+
"prettier": "^3.7.4",
|
|
58
|
+
"typescript": "^5.9.3",
|
|
59
|
+
"typescript-eslint": "^8.51.0"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=14.0.0"
|