@autorest/java 4.1.45 → 4.1.47

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 CHANGED
@@ -2,13 +2,13 @@
2
2
  "name": "@typespec/monorepo",
3
3
  "version": "0.0.1",
4
4
  "private": true,
5
- "packageManager": "pnpm@9.5.0",
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,46 @@
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-latest-docs": "pnpm -r run update-latest-docs",
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/prettier-plugin-alloy": "^0.1.0",
44
- "@chronus/chronus": "^0.15.0",
45
- "@chronus/github": "^0.4.7",
46
- "@eslint/js": "^9.18.0",
47
- "@microsoft/api-extractor": "^7.49.1",
48
- "@octokit/core": "^6.1.3",
42
+ "@chronus/chronus": "^1.0.1",
43
+ "@chronus/github": "^1.0.1",
44
+ "@chronus/github-pr-commenter": "^1.0.1",
45
+ "@eslint/js": "^9.23.0",
46
+ "@microsoft/api-extractor": "^7.52.1",
47
+ "@octokit/core": "^6.1.4",
49
48
  "@octokit/plugin-paginate-graphql": "^5.2.4",
50
- "@octokit/plugin-rest-endpoint-methods": "^13.3.0",
51
- "@pnpm/find-workspace-packages": "^6.0.9",
49
+ "@octokit/plugin-rest-endpoint-methods": "^13.5.0",
52
50
  "@types/micromatch": "^4.0.9",
53
- "@types/node": "~22.10.10",
54
- "@vitest/coverage-v8": "^3.0.4",
51
+ "@types/node": "~22.13.11",
52
+ "@vitest/coverage-v8": "^3.1.2",
53
+ "@vitest/eslint-plugin": "^1.1.38",
55
54
  "c8": "^10.1.3",
56
- "cspell": "^8.17.2",
57
- "eslint": "^9.18.0",
58
- "eslint-plugin-deprecation": "^3.0.0",
55
+ "cspell": "^8.17.5",
56
+ "eslint": "^9.23.0",
59
57
  "eslint-plugin-import": "^2.31.0",
60
- "eslint-plugin-react-hooks": "5.1.0",
61
- "eslint-plugin-unicorn": "^56.0.1",
62
- "eslint-plugin-vitest": "^0.5.4",
58
+ "eslint-plugin-react-hooks": "5.2.0",
59
+ "eslint-plugin-unicorn": "^57.0.0",
63
60
  "micromatch": "^4.0.8",
64
61
  "picocolors": "~1.1.1",
65
- "playwright": "^1.50.0",
66
- "prettier": "~3.4.2",
62
+ "playwright": "^1.51.1",
63
+ "prettier": "~3.5.3",
67
64
  "prettier-plugin-astro": "^0.14.1",
68
65
  "prettier-plugin-organize-imports": "~4.1.0",
69
- "prettier-plugin-sh": "^0.14.0",
66
+ "prettier-plugin-sh": "^0.15.0",
70
67
  "rimraf": "~6.0.1",
71
- "syncpack": "^13.0.0",
72
- "tsx": "^4.19.2",
73
- "typescript": "~5.7.3",
74
- "typescript-eslint": "^8.21.0",
68
+ "syncpack": "^13.0.3",
69
+ "tsx": "^4.19.3",
70
+ "typescript": "~5.8.2",
71
+ "typescript-eslint": "^8.27.0",
75
72
  "vite-plugin-node-polyfills": "^0.23.0",
76
- "vitest": "^3.0.5",
73
+ "vitest": "^3.1.2",
77
74
  "yaml": "~2.7.0"
78
75
  },
79
76
  "syncpack": {
@@ -87,8 +84,8 @@
87
84
  ]
88
85
  },
89
86
  "pnpm": {
90
- "overrides": {
91
- "@fluentui/react-theme": "9.1.17"
92
- }
87
+ "onlyBuiltDependencies": [
88
+ "tree-sitter"
89
+ ]
93
90
  }
94
91
  }
@@ -78,4 +78,5 @@ null-byte-array-maps-to-empty-array: true
78
78
  graal-vm-config: true
79
79
  stream-style-serialization: true
80
80
  use-object-for-unknown: true
81
+ enable-sync-stack: true
81
82
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/java",
3
- "version": "4.1.45",
3
+ "version": "4.1.47",
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 `preprocess-jar-with-dependencies.jar` under `preprocessor` module, a `fluentgen-jar-with-dependencies.jar` under `fluentgen` module, and a `fluentnamer-jar-with-dependencies.jar` under `fluentnamer` module.
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/emitter/src/code-model-builder.ts packages/http-client-java/emitter/src/lib.ts 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
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) && !$(android)
468
+ ``` yaml $(java) && !$(fluent)
473
469
  use: $(this-folder)/javagen
474
470
  ```
475
471
 
476
- ``` yaml $(java) && $(fluent) && !$(android)
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.27.4",
3
+ "version": "0.30.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": ">=18.0.0"
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-azure-core": ">=0.50.0 <1.0.0",
49
- "@azure-tools/typespec-azure-resource-manager": ">=0.50.0 <1.0.0",
50
- "@azure-tools/typespec-autorest": ">=0.50.0 <1.0.0",
51
- "@azure-tools/typespec-azure-rulesets": ">=0.50.0 <1.0.0",
52
- "@azure-tools/typespec-client-generator-core": ">=0.50.3 <1.0.0",
53
- "@typespec/compiler": ">=0.64.0 <1.0.0",
54
- "@typespec/http": ">=0.64.0 <1.0.0",
55
- "@typespec/openapi": ">=0.64.0 <1.0.0",
56
- "@typespec/rest": ">=0.64.0 <1.0.0",
57
- "@typespec/versioning": ">=0.64.0 <1.0.0",
58
- "@typespec/xml": ">=0.64.0 <1.0.0",
59
- "@azure-tools/typespec-liftr-base": ">=0.7.0 <1.0.0"
48
+ "@azure-tools/typespec-autorest": ">=0.56.0 <1.0.0",
49
+ "@azure-tools/typespec-azure-core": ">=0.56.0 <1.0.0",
50
+ "@azure-tools/typespec-azure-resource-manager": ">=0.56.0 <1.0.0",
51
+ "@azure-tools/typespec-azure-rulesets": ">=0.56.0 <1.0.0",
52
+ "@azure-tools/typespec-client-generator-core": ">=0.56.0 <1.0.0",
53
+ "@azure-tools/typespec-liftr-base": ">=0.8.0 <1.0.0",
54
+ "@typespec/compiler": "^1.0.0",
55
+ "@typespec/http": "^1.0.0",
56
+ "@typespec/openapi": "^1.0.0",
57
+ "@typespec/rest": ">=0.70.0 <1.0.0",
58
+ "@typespec/versioning": ">=0.70.0 <1.0.0",
59
+ "@typespec/xml": ">=0.70.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-azure-core": "0.51.0",
68
- "@azure-tools/typespec-azure-resource-manager": "0.51.0",
69
- "@azure-tools/typespec-autorest": "0.51.0",
70
- "@azure-tools/typespec-azure-rulesets": "0.51.0",
71
- "@azure-tools/typespec-client-generator-core": "0.51.0",
67
+ "@azure-tools/typespec-autorest": "0.56.0",
68
+ "@azure-tools/typespec-azure-core": "0.56.0",
69
+ "@azure-tools/typespec-azure-resource-manager": "0.56.0",
70
+ "@azure-tools/typespec-azure-rulesets": "0.56.0",
71
+ "@azure-tools/typespec-client-generator-core": "0.56.1",
72
+ "@azure-tools/typespec-liftr-base": "0.8.0",
72
73
  "@types/js-yaml": "~4.0.9",
73
- "@types/lodash": "~4.17.15",
74
- "@types/node": "~22.13.1",
75
- "@typescript-eslint/eslint-plugin": "~8.24.0",
76
- "@typescript-eslint/parser": "~8.24.0",
77
- "@typespec/compiler": "0.65.0",
78
- "@typespec/http": "0.65.0",
79
- "@typespec/openapi": "0.65.0",
80
- "@typespec/rest": "0.65.0",
81
- "@typespec/versioning": "0.65.0",
82
- "@typespec/xml": "0.65.0",
83
- "@vitest/coverage-v8": "^3.0.5",
84
- "@vitest/ui": "^3.0.5",
74
+ "@types/lodash": "~4.17.16",
75
+ "@types/node": "~22.15.14",
76
+ "@typescript-eslint/eslint-plugin": "~8.32.0",
77
+ "@typescript-eslint/parser": "~8.32.0",
78
+ "@typespec/compiler": "1.0.0",
79
+ "@typespec/http": "1.0.0",
80
+ "@typespec/openapi": "1.0.0",
81
+ "@typespec/rest": "0.70.0",
82
+ "@typespec/versioning": "0.70.0",
83
+ "@typespec/xml": "0.70.0",
84
+ "@typespec/events": "0.70.0",
85
+ "@typespec/sse": "0.70.0",
86
+ "@typespec/streams": "0.70.0",
87
+ "@vitest/coverage-v8": "^3.1.3",
88
+ "@vitest/ui": "^3.1.3",
85
89
  "c8": "~10.1.3",
86
- "eslint": "~8.57.0",
90
+ "eslint": "~9.26.0",
87
91
  "eslint-plugin-deprecation": "~3.0.0",
88
- "prettier": "~3.5.0",
92
+ "eslint-plugin-import": "^2.31.0",
93
+ "eslint-plugin-unicorn": "^59.0.1",
94
+ "prettier": "~3.5.3",
89
95
  "rimraf": "~6.0.1",
90
- "typescript": "~5.7.3",
91
- "vitest": "^3.0.5",
92
- "@azure-tools/typespec-liftr-base": "0.7.0"
96
+ "typescript": "~5.8.3",
97
+ "typescript-eslint": "^8.32.0",
98
+ "vitest": "^3.1.3"
99
+ },
100
+ "overrides": {
101
+ "eslint": "~9.26.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/http-specs": "0.1.0-alpha.9",
13
- "@azure-tools/azure-http-specs": "0.1.0-alpha.6",
14
- "@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.27.4.tgz"
12
+ "@typespec/spec-api": "0.1.0-alpha.6",
13
+ "@typespec/spector": "0.1.0-alpha.13",
14
+ "@typespec/http-specs": "0.1.0-alpha.22",
15
+ "@azure-tools/azure-http-specs": "0.1.0-alpha.17",
16
+ "@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.30.1.tgz"
15
17
  },
16
18
  "devDependencies": {
17
- "@typespec/prettier-plugin-typespec": "~0.65.0",
18
- "prettier-plugin-organize-imports": "4.1.0",
19
- "prettier": "~3.5.0"
19
+ "@typespec/prettier-plugin-typespec": "^1.0.0",
20
+ "prettier-plugin-organize-imports": "^4.1.0",
21
+ "prettier": "^3.5.3"
20
22
  },
21
23
  "overrides": {
22
- "@typespec/compiler": "~0.65.0",
23
- "@typespec/http": "~0.65.0",
24
- "@typespec/rest": "~0.65.0",
25
- "@typespec/versioning": "~0.65.0",
26
- "@typespec/openapi": "~0.65.0",
27
- "@typespec/xml": "~0.65.0",
28
- "@azure-tools/typespec-azure-core": "~0.51.0",
29
- "@azure-tools/typespec-client-generator-core": "~0.51.0",
30
- "@azure-tools/typespec-azure-resource-manager": "~0.51.0",
31
- "@azure-tools/typespec-autorest": "~0.51.0"
24
+ "@typespec/compiler": "~1.0.0",
25
+ "@typespec/http": "~1.0.0",
26
+ "@typespec/rest": "~0.70.0",
27
+ "@typespec/versioning": "~0.70.0",
28
+ "@typespec/openapi": "~1.0.0",
29
+ "@typespec/xml": "~0.70.0",
30
+ "@typespec/events": "~0.70.0",
31
+ "@typespec/sse": "~0.70.0",
32
+ "@typespec/streams": "~0.70.0",
33
+ "@azure-tools/typespec-azure-core": "~0.56.0",
34
+ "@azure-tools/typespec-client-generator-core": "~0.56.1",
35
+ "@azure-tools/typespec-azure-resource-manager": "~0.56.0",
36
+ "@azure-tools/typespec-autorest": "~0.56.0"
32
37
  },
33
38
  "private": true
34
39
  }