Skip to content

Commit e141cb9

Browse files
authored
Merge pull request #803 from postmanlabs/release/v2.1.0
Release version v2.1.0
2 parents a2864b6 + fe5cb79 commit e141cb9

File tree

29 files changed

+5207
-15
lines changed

29 files changed

+5207
-15
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ on:
99

1010
jobs:
1111
Unit-Tests:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
strategy:
14+
fail-fast: false
1415
max-parallel: 10
1516
matrix:
16-
node-version: [ 18.x, 20.x ]
17+
node-version: [ 20.x ]
1718
language-variant: [ 'csharp-httpclient', 'csharp-restsharp', 'curl', 'dart-dio', 'dart-http', 'golang', 'http',
1819
'java-okhttp', 'java-unirest', 'js-fetch', 'js-jquery', 'js-xhr', 'kotlin-okhttp', 'libcurl',
1920
'nodejs-axios', 'nodejs-native', 'nodejs-request', 'nodejs-unirest', 'objective-c', 'ocaml-cohttp',

CHANGELOG.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22

33
## [Unreleased]
44

5+
## [v2.1.0] - 2025-11-12
6+
7+
### Feature
8+
- Support Postman CLI's request command.
9+
10+
### Chore
11+
- Upgraded build pipeline to use Ubuntu 22 (in response to GitHub Action's deprecation.)
12+
513
## [v2.0.0] - 2025-03-10
614

715
### Breaking Changes
816

9-
- Dropped support for node < v18.
17+
- Dropped support for node &lt; v18.
1018

1119
## [v1.14.2] - 2025-02-21
1220

@@ -202,7 +210,9 @@ v1.0.0 (May 29, 2020)
202210
- Add ES6 syntax support for NodeJS Request, NodeJS Native and NodeJS Unirest
203211
- Fix snippet generation for powershell and jquery, where form data params had no type field
204212

205-
[Unreleased]: https://github.com/postmanlabs/postman-code-generators/compare/v2.0.0...HEAD
213+
[Unreleased]: https://github.com/postmanlabs/postman-code-generators/compare/v2.1.0...HEAD
214+
215+
[v2.1.0]: https://github.com/postmanlabs/postman-code-generators/compare/v2.0.0...v2.1.0
206216

207217
[v2.0.0]: https://github.com/postmanlabs/postman-code-generators/compare/v1.14.2...v2.0.0
208218

codegens/csharp-httpclient/test/ci-install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ set -ev; # stop on error
33

44
sudo apt-get update
55
echo "Installing dependencies required for tests in codegens/csharp-httpclient"
6-
# Install latest .net6.0 sdk
6+
# Install latest .net8.0 sdk
77
pushd ./codegens/csharp-httpclient &>/dev/null;
8-
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
8+
wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
99
sudo dpkg -i packages-microsoft-prod.deb
1010
sudo apt-get install apt-transport-https
1111
sudo apt-get update
12-
sudo apt-get install dotnet-sdk-6.0
13-
dotnet new console -o testProject -f net6.0
12+
sudo apt-get install dotnet-sdk-8.0
13+
dotnet new console -o testProject -f net8.0
1414
# no extra packages needed
1515
popd &>/dev/null;

codegens/csharp-restsharp/test/ci-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ set -ev; # stop on error
44
sudo apt-get update
55
echo "Installing dependencies required for tests in codegens/csharp-restsharp"
66
pushd ./codegens/csharp-restsharp &>/dev/null;
7-
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
7+
wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
88
sudo dpkg -i packages-microsoft-prod.deb
99
sudo apt-get install apt-transport-https
1010
sudo apt-get update
11-
sudo apt-get install dotnet-sdk-6.0
12-
dotnet new console -o testProject -f net6.0
11+
sudo apt-get install dotnet-sdk-8.0
12+
dotnet new console -o testProject -f net8.0
1313
pushd ./testProject &>/dev/null;
1414
dotnet add package RestSharp --version 112.0.0
1515
popd &>/dev/null;

codegens/postman-cli/.gitignore

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
.DS_Store
2+
# Logs
3+
logs
4+
*.log
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
9+
# Package manager lock files
10+
yarn.lock
11+
package-lock.json
12+
pnpm-lock.yaml
13+
bun.lockb
14+
15+
# Runtime data
16+
pids
17+
*.pid
18+
*.seed
19+
*.pid.lock
20+
21+
# Prevent IDE stuff
22+
.idea
23+
.vscode
24+
*.sublime-*
25+
26+
# Directory for instrumented libs generated by jscoverage/JSCover
27+
lib-cov
28+
29+
# Coverage directory used by tools like istanbul
30+
.coverage
31+
32+
# nyc test coverage
33+
.nyc_output
34+
35+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
36+
.grunt
37+
38+
# Bower dependency directory (https://bower.io/)
39+
bower_components
40+
41+
# node-waf configuration
42+
.lock-wscript
43+
44+
# Compiled binary addons (http://nodejs.org/api/addons.html)
45+
build/Release
46+
47+
# Dependency directories
48+
node_modules/
49+
jspm_packages/
50+
51+
# Typescript v1 declaration files
52+
typings/
53+
54+
# Optional npm cache directory
55+
.npm
56+
57+
# Optional eslint cache
58+
.eslintcache
59+
60+
# Optional REPL history
61+
.node_repl_history
62+
63+
# Output of 'npm pack'
64+
*.tgz
65+
66+
# Yarn Integrity file
67+
.yarn-integrity
68+
69+
# dotenv environment variables file
70+
.env
71+
72+
out/
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"tags": {
3+
"allowUnknownTags": true,
4+
"dictionaries": ["jsdoc", "closure"]
5+
},
6+
"source": {
7+
"include": [ ],
8+
"includePattern": ".+\\.js(doc)?$",
9+
"excludePattern": "(^|\\/|\\\\)_"
10+
},
11+
12+
"plugins": [
13+
"plugins/markdown"
14+
],
15+
16+
"templates": {
17+
"cleverLinks": false,
18+
"monospaceLinks": false,
19+
"highlightTutorialCode" : true
20+
},
21+
22+
"opts": {
23+
"template": "./node_modules/postman-jsdoc-theme",
24+
"encoding": "utf8",
25+
"destination": "./out/docs",
26+
"recurse": true,
27+
"readme": "README.md"
28+
},
29+
30+
"markdown": {
31+
"parser": "gfm",
32+
"hardwrap": false
33+
}
34+
}

codegens/postman-cli/.npmignore

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
### NPM Specific: Disregard recursive project files
2+
### ===============================================
3+
/.editorconfig
4+
/.gitmodules
5+
/test
6+
7+
### Borrowed from .gitignore
8+
### ========================
9+
10+
# Logs
11+
logs
12+
*.log
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
17+
# Runtime data
18+
pids
19+
*.pid
20+
*.seed
21+
*.pid.lock
22+
23+
# Prevent IDE stuff
24+
.idea
25+
.vscode
26+
*.sublime-*
27+
28+
# Directory for instrumented libs generated by jscoverage/JSCover
29+
lib-cov
30+
31+
# Coverage directory used by tools like istanbul
32+
.coverage
33+
34+
# nyc test coverage
35+
.nyc_output
36+
37+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
38+
.grunt
39+
40+
# Bower dependency directory (https://bower.io/)
41+
bower_components
42+
43+
# node-waf configuration
44+
.lock-wscript
45+
46+
# Compiled binary addons (http://nodejs.org/api/addons.html)
47+
build/Release
48+
49+
# Dependency directories
50+
node_modules/
51+
jspm_packages/
52+
53+
# Typescript v1 declaration files
54+
typings/
55+
56+
# Optional npm cache directory
57+
.npm
58+
59+
# Optional eslint cache
60+
.eslintcache
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
74+
out/

0 commit comments

Comments
 (0)