@autorest/java 4.1.45 → 4.1.46
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/core/package.json +31 -31
- package/fluentgen/target/azure-autorest-fluentgen-jar-with-dependencies.jar +0 -0
- package/javagen/target/azure-autorest-javagen-jar-with-dependencies.jar +0 -0
- package/package.json +1 -4
- package/readme.md +4 -12
- package/typespec-extension/package.json +45 -36
- package/typespec-tests/package.json +20 -15
package/core/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"name": "@typespec/monorepo",
|
|
3
3
|
"version": "0.0.1",
|
|
4
4
|
"private": true,
|
|
5
|
-
"packageManager": "pnpm@
|
|
5
|
+
"packageManager": "pnpm@10.8.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "pnpm build:all && pnpm check:eng && pnpm gen-compiler-extern-signature",
|
|
9
9
|
"build:all": "pnpm -r --workspace-concurrency=Infinity build",
|
|
10
10
|
"check:eng": "tsc -p ./tsconfig.eng.json --noEmit",
|
|
11
|
-
"setup:min": "pnpm install && pnpm --filter \"@typespec/prettier-plugin-typespec...\" run build",
|
|
11
|
+
"setup:min": "pnpm install && pnpm --filter \"@typespec/prettier-plugin-typespec...\" --filter \"@typespec/tspd...\" run build",
|
|
12
12
|
"check-version-mismatch": "syncpack list-mismatches",
|
|
13
13
|
"change": "chronus",
|
|
14
14
|
"clean": "pnpm -r run clean",
|
|
@@ -31,49 +31,49 @@
|
|
|
31
31
|
"test": "vitest run",
|
|
32
32
|
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
|
|
33
33
|
"test:e2e": "pnpm -r run test:e2e",
|
|
34
|
-
"update-
|
|
34
|
+
"update-playground-versions": "pnpm -r run update-playground-versions",
|
|
35
35
|
"watch": "tsc --build ./tsconfig.ws.json --watch",
|
|
36
36
|
"sync-labels": "tsx ./eng/common/scripts/labels/sync-labels.ts --config ./eng/common/config/labels.ts",
|
|
37
37
|
"validate-scenarios": "pnpm -r --filter=@typespec/http-specs run validate-scenarios",
|
|
38
38
|
"validate-mock-apis": "pnpm -r --filter=@typespec/http-specs run validate-mock-apis",
|
|
39
|
-
"generate-scenarios-summary": "pnpm -r --filter=@typespec/http-specs run generate-scenarios-summary"
|
|
40
|
-
"upload-manifest": "pnpm -r --filter=@typespec/http-specs run upload-manifest"
|
|
39
|
+
"generate-scenarios-summary": "pnpm -r --filter=@typespec/http-specs run generate-scenarios-summary"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
|
-
"@alloy-js/
|
|
44
|
-
"@
|
|
45
|
-
"@chronus/
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
42
|
+
"@alloy-js/babel-preset": "^0.2.0",
|
|
43
|
+
"@babel/preset-typescript": "^7.27.0",
|
|
44
|
+
"@chronus/chronus": "^1.0.1",
|
|
45
|
+
"@chronus/github": "^1.0.1",
|
|
46
|
+
"@chronus/github-pr-commenter": "^1.0.1",
|
|
47
|
+
"@eslint/js": "^9.23.0",
|
|
48
|
+
"@microsoft/api-extractor": "^7.52.1",
|
|
49
|
+
"@octokit/core": "^6.1.4",
|
|
49
50
|
"@octokit/plugin-paginate-graphql": "^5.2.4",
|
|
50
|
-
"@octokit/plugin-rest-endpoint-methods": "^13.
|
|
51
|
-
"@pnpm/find-workspace-packages": "^6.0.9",
|
|
51
|
+
"@octokit/plugin-rest-endpoint-methods": "^13.5.0",
|
|
52
52
|
"@types/micromatch": "^4.0.9",
|
|
53
|
-
"@types/node": "~22.
|
|
54
|
-
"@vitest/coverage-v8": "^3.0.
|
|
53
|
+
"@types/node": "~22.13.11",
|
|
54
|
+
"@vitest/coverage-v8": "^3.0.9",
|
|
55
|
+
"@vitest/eslint-plugin": "^1.1.38",
|
|
55
56
|
"c8": "^10.1.3",
|
|
56
|
-
"cspell": "^8.17.
|
|
57
|
-
"eslint": "^9.
|
|
57
|
+
"cspell": "^8.17.5",
|
|
58
|
+
"eslint": "^9.23.0",
|
|
58
59
|
"eslint-plugin-deprecation": "^3.0.0",
|
|
59
60
|
"eslint-plugin-import": "^2.31.0",
|
|
60
|
-
"eslint-plugin-react-hooks": "5.
|
|
61
|
-
"eslint-plugin-unicorn": "^
|
|
62
|
-
"eslint-plugin-vitest": "^0.5.4",
|
|
61
|
+
"eslint-plugin-react-hooks": "5.2.0",
|
|
62
|
+
"eslint-plugin-unicorn": "^57.0.0",
|
|
63
63
|
"micromatch": "^4.0.8",
|
|
64
64
|
"picocolors": "~1.1.1",
|
|
65
|
-
"playwright": "^1.
|
|
66
|
-
"prettier": "~3.
|
|
65
|
+
"playwright": "^1.51.1",
|
|
66
|
+
"prettier": "~3.5.3",
|
|
67
67
|
"prettier-plugin-astro": "^0.14.1",
|
|
68
68
|
"prettier-plugin-organize-imports": "~4.1.0",
|
|
69
|
-
"prettier-plugin-sh": "^0.
|
|
69
|
+
"prettier-plugin-sh": "^0.15.0",
|
|
70
70
|
"rimraf": "~6.0.1",
|
|
71
|
-
"syncpack": "^13.0.
|
|
72
|
-
"tsx": "^4.19.
|
|
73
|
-
"typescript": "~5.
|
|
74
|
-
"typescript-eslint": "^8.
|
|
71
|
+
"syncpack": "^13.0.3",
|
|
72
|
+
"tsx": "^4.19.3",
|
|
73
|
+
"typescript": "~5.8.2",
|
|
74
|
+
"typescript-eslint": "^8.27.0",
|
|
75
75
|
"vite-plugin-node-polyfills": "^0.23.0",
|
|
76
|
-
"vitest": "^3.0.
|
|
76
|
+
"vitest": "^3.0.9",
|
|
77
77
|
"yaml": "~2.7.0"
|
|
78
78
|
},
|
|
79
79
|
"syncpack": {
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
]
|
|
88
88
|
},
|
|
89
89
|
"pnpm": {
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
90
|
+
"onlyBuiltDependencies": [
|
|
91
|
+
"tree-sitter"
|
|
92
|
+
]
|
|
93
93
|
}
|
|
94
94
|
}
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autorest/java",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.46",
|
|
4
4
|
"description": "The Java extension for classic generators in AutoRest.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"autorest": "autorest",
|
|
@@ -31,10 +31,7 @@
|
|
|
31
31
|
"*/package.json",
|
|
32
32
|
"/readme.md",
|
|
33
33
|
"/fluentgen/*.md",
|
|
34
|
-
"/fluentnamer/*.md",
|
|
35
34
|
"/javagen/*.md",
|
|
36
|
-
"/postprocessor/*.md",
|
|
37
|
-
"/preprocessor/*.md",
|
|
38
35
|
"*/target/*-jar-with-dependencies.jar"
|
|
39
36
|
],
|
|
40
37
|
"devDependencies": {
|
package/readme.md
CHANGED
|
@@ -31,7 +31,7 @@ To build from source code, clone this repo and checkout to main branch. Make sur
|
|
|
31
31
|
mvn package -P local
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
This will build a file `javagen-jar-with-dependencies.jar` under `javagen` module, a `
|
|
34
|
+
This will build a file `javagen-jar-with-dependencies.jar` under `javagen` module, a `fluentgen-jar-with-dependencies.jar` under `fluentgen` module.
|
|
35
35
|
|
|
36
36
|
And then run AutoRest
|
|
37
37
|
|
|
@@ -280,10 +280,6 @@ and requires latest `azure-core` as a dependency.
|
|
|
280
280
|
For guidance on using the post-code generation customization framework see its [documentation](https://github.com/Azure/autorest.java/tree/main/customization-base/README.md).
|
|
281
281
|
|
|
282
282
|
# Project structure
|
|
283
|
-
## extension-base
|
|
284
|
-
This contains the base classes and utilities for creating an AutoRest extension in Java. It handles the JSON RPC communications with AutoRest core, provides JSON and YAML parsers, and provides the POJO models for the code model output from [modelerfour](https://github.com/Azure/autorest.modelerfour/).
|
|
285
|
-
|
|
286
|
-
Extend from `NewPlugin.java` class if you are writing a new extension in Java.
|
|
287
283
|
|
|
288
284
|
## javagen
|
|
289
285
|
This contains the actual generator extension, including mappers that maps a code model to a Java client model, and templates that writes the Java client models into .java files.
|
|
@@ -383,7 +379,7 @@ Before building Maven project and packaging NPM package, the script does 3 thing
|
|
|
383
379
|
|
|
384
380
|
If you do not plan to modify these patched files in your PR, you can use "assume-unchanged" to ignore the changes on these files:
|
|
385
381
|
```
|
|
386
|
-
git update-index --assume-unchanged packages/http-client-java/
|
|
382
|
+
git update-index --assume-unchanged packages/http-client-java/generator/http-client-generator-core/pom.xml packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/postprocessor/Postprocessor.java packages/http-client-java/generator/http-client-generator/src/main/resources/readme/pom.xml
|
|
387
383
|
```
|
|
388
384
|
"no-assume-unchanged" would unset the files marked by "assume-unchanged".
|
|
389
385
|
|
|
@@ -469,18 +465,14 @@ AutoRest needs the below config to pick this up as a plug-in - see https://githu
|
|
|
469
465
|
|
|
470
466
|
#### Javagen
|
|
471
467
|
|
|
472
|
-
``` yaml $(java) && !$(fluent)
|
|
468
|
+
``` yaml $(java) && !$(fluent)
|
|
473
469
|
use: $(this-folder)/javagen
|
|
474
470
|
```
|
|
475
471
|
|
|
476
|
-
``` yaml $(java) && $(fluent)
|
|
472
|
+
``` yaml $(java) && $(fluent)
|
|
477
473
|
use: $(this-folder)/fluentgen
|
|
478
474
|
```
|
|
479
475
|
|
|
480
|
-
``` yaml $(java) && $(android)
|
|
481
|
-
use: $(this-folder)/javagen
|
|
482
|
-
```
|
|
483
|
-
|
|
484
476
|
#### Help
|
|
485
477
|
|
|
486
478
|
```yaml
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-java",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.1",
|
|
4
4
|
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TypeSpec"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": ">=
|
|
28
|
+
"node": ">=20.0.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"clean": "rimraf ./dist ./temp",
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"generator/http-client-generator/target/emitter.jar"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@azure-tools/typespec-
|
|
49
|
-
"@azure-tools/typespec-azure-
|
|
50
|
-
"@azure-tools/typespec-
|
|
51
|
-
"@azure-tools/typespec-azure-rulesets": ">=0.
|
|
52
|
-
"@azure-tools/typespec-client-generator-core": ">=0.
|
|
53
|
-
"@typespec
|
|
54
|
-
"@typespec/
|
|
55
|
-
"@typespec/
|
|
56
|
-
"@typespec/
|
|
57
|
-
"@typespec/
|
|
58
|
-
"@typespec/
|
|
59
|
-
"@
|
|
48
|
+
"@azure-tools/typespec-autorest": ">=0.54.0 <1.0.0",
|
|
49
|
+
"@azure-tools/typespec-azure-core": ">=0.54.0 <1.0.0",
|
|
50
|
+
"@azure-tools/typespec-azure-resource-manager": ">=0.54.0 <1.0.0",
|
|
51
|
+
"@azure-tools/typespec-azure-rulesets": ">=0.54.0 <1.0.0",
|
|
52
|
+
"@azure-tools/typespec-client-generator-core": ">=0.54.0 <1.0.0",
|
|
53
|
+
"@azure-tools/typespec-liftr-base": ">=0.8.0 <1.0.0",
|
|
54
|
+
"@typespec/compiler": "^1.0.0-0",
|
|
55
|
+
"@typespec/http": "^1.0.0-0",
|
|
56
|
+
"@typespec/openapi": "^1.0.0-0",
|
|
57
|
+
"@typespec/rest": ">=0.68.0 <1.0.0",
|
|
58
|
+
"@typespec/versioning": ">=0.68.0 <1.0.0",
|
|
59
|
+
"@typespec/xml": ">=0.68.0 <1.0.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@autorest/codemodel": "~4.20.0",
|
|
@@ -64,31 +64,40 @@
|
|
|
64
64
|
"lodash": "~4.17.21"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@azure-tools/typespec-
|
|
68
|
-
"@azure-tools/typespec-azure-
|
|
69
|
-
"@azure-tools/typespec-
|
|
70
|
-
"@azure-tools/typespec-azure-rulesets": "0.
|
|
71
|
-
"@azure-tools/typespec-client-generator-core": "0.
|
|
67
|
+
"@azure-tools/typespec-autorest": "0.54.0",
|
|
68
|
+
"@azure-tools/typespec-azure-core": "0.54.0",
|
|
69
|
+
"@azure-tools/typespec-azure-resource-manager": "0.54.0",
|
|
70
|
+
"@azure-tools/typespec-azure-rulesets": "0.54.0",
|
|
71
|
+
"@azure-tools/typespec-client-generator-core": "0.54.0",
|
|
72
|
+
"@azure-tools/typespec-liftr-base": "0.8.0",
|
|
72
73
|
"@types/js-yaml": "~4.0.9",
|
|
73
|
-
"@types/lodash": "~4.17.
|
|
74
|
-
"@types/node": "~22.
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "~8.
|
|
76
|
-
"@typescript-eslint/parser": "~8.
|
|
77
|
-
"@typespec/compiler": "0.
|
|
78
|
-
"@typespec/http": "0.
|
|
79
|
-
"@typespec/openapi": "0.
|
|
80
|
-
"@typespec/rest": "0.
|
|
81
|
-
"@typespec/versioning": "0.
|
|
82
|
-
"@typespec/xml": "0.
|
|
83
|
-
"@
|
|
84
|
-
"@
|
|
74
|
+
"@types/lodash": "~4.17.16",
|
|
75
|
+
"@types/node": "~22.14.0",
|
|
76
|
+
"@typescript-eslint/eslint-plugin": "~8.29.0",
|
|
77
|
+
"@typescript-eslint/parser": "~8.29.0",
|
|
78
|
+
"@typespec/compiler": "1.0.0-rc.0",
|
|
79
|
+
"@typespec/http": "1.0.0-rc.0",
|
|
80
|
+
"@typespec/openapi": "1.0.0-rc.0",
|
|
81
|
+
"@typespec/rest": "0.68.0",
|
|
82
|
+
"@typespec/versioning": "0.68.0",
|
|
83
|
+
"@typespec/xml": "0.68.0",
|
|
84
|
+
"@typespec/events": "0.68.0",
|
|
85
|
+
"@typespec/sse": "0.68.0",
|
|
86
|
+
"@typespec/streams": "0.68.0",
|
|
87
|
+
"@vitest/coverage-v8": "^3.1.1",
|
|
88
|
+
"@vitest/ui": "^3.1.1",
|
|
85
89
|
"c8": "~10.1.3",
|
|
86
|
-
"eslint": "~
|
|
90
|
+
"eslint": "~9.23.0",
|
|
87
91
|
"eslint-plugin-deprecation": "~3.0.0",
|
|
88
|
-
"
|
|
92
|
+
"eslint-plugin-import": "^2.31.0",
|
|
93
|
+
"eslint-plugin-unicorn": "^58.0.0",
|
|
94
|
+
"prettier": "~3.5.3",
|
|
89
95
|
"rimraf": "~6.0.1",
|
|
90
|
-
"typescript": "~5.
|
|
91
|
-
"
|
|
92
|
-
"
|
|
96
|
+
"typescript": "~5.8.2",
|
|
97
|
+
"typescript-eslint": "^8.29.0",
|
|
98
|
+
"vitest": "^3.1.1"
|
|
99
|
+
},
|
|
100
|
+
"overrides": {
|
|
101
|
+
"eslint": "~9.23.0"
|
|
93
102
|
}
|
|
94
103
|
}
|
|
@@ -9,26 +9,31 @@
|
|
|
9
9
|
"spector-serve": "tsp-spector serve ./node_modules/@typespec/http-specs/specs ./node_modules/@azure-tools/azure-http-specs/specs --coverageFile ./tsp-spector-coverage-java.json"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@typespec/
|
|
13
|
-
"@
|
|
14
|
-
"@
|
|
12
|
+
"@typespec/spec-api": "0.1.0-alpha.3",
|
|
13
|
+
"@typespec/spector": "0.1.0-alpha.11",
|
|
14
|
+
"@typespec/http-specs": "0.1.0-alpha.17",
|
|
15
|
+
"@azure-tools/azure-http-specs": "0.1.0-alpha.13",
|
|
16
|
+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.29.1.tgz"
|
|
15
17
|
},
|
|
16
18
|
"devDependencies": {
|
|
17
|
-
"@typespec/prettier-plugin-typespec": "~0.
|
|
19
|
+
"@typespec/prettier-plugin-typespec": "~0.68.0",
|
|
18
20
|
"prettier-plugin-organize-imports": "4.1.0",
|
|
19
|
-
"prettier": "~3.5.
|
|
21
|
+
"prettier": "~3.5.3"
|
|
20
22
|
},
|
|
21
23
|
"overrides": {
|
|
22
|
-
"@typespec/compiler": "
|
|
23
|
-
"@typespec/http": "
|
|
24
|
-
"@typespec/rest": "~0.
|
|
25
|
-
"@typespec/versioning": "~0.
|
|
26
|
-
"@typespec/openapi": "
|
|
27
|
-
"@typespec/xml": "~0.
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@azure-tools/typespec-
|
|
24
|
+
"@typespec/compiler": "^1.0.0-0",
|
|
25
|
+
"@typespec/http": "^1.0.0-0",
|
|
26
|
+
"@typespec/rest": "~0.68.0",
|
|
27
|
+
"@typespec/versioning": "~0.68.0",
|
|
28
|
+
"@typespec/openapi": "^1.0.0-0",
|
|
29
|
+
"@typespec/xml": "~0.68.0",
|
|
30
|
+
"@typespec/events": "~0.68.0",
|
|
31
|
+
"@typespec/sse": "~0.68.0",
|
|
32
|
+
"@typespec/streams": "~0.68.0",
|
|
33
|
+
"@azure-tools/typespec-azure-core": "~0.54.0",
|
|
34
|
+
"@azure-tools/typespec-client-generator-core": "~0.54.0",
|
|
35
|
+
"@azure-tools/typespec-azure-resource-manager": "~0.54.0",
|
|
36
|
+
"@azure-tools/typespec-autorest": "~0.54.0"
|
|
32
37
|
},
|
|
33
38
|
"private": true
|
|
34
39
|
}
|