Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
azure-track2-js-sdk-release-tools
Advanced tools
This package contains 3 tools: 1. Use Track2 Codegen to generate codes by inputting swagger, and then run `rush update & rush build`. 2. Use Track2 Codegen to generate codes in swagger pipeline. 3. Generate changelog and bump version for Azure Track2 J
This package contains 3 tools:
rush update & rush build
.npm install -g azure-track2-js-sdk-release-tools
You can use this command to generate codes, and then run rush update, rush build, and pack the generated codes.
cd azure-sdk-for-js
track2-codegen-automation --use=@autorest/typescript@6.0.0-beta.5 --readme=../azure-rest-api-specs/specification/iotspaces/resource-manager/readme.md
hint: you can change the readme
to yours.
This command is only used in swagger pipeline.
cd azure-sdk-for-js
track2-codegen-automation-for-pipeline --inputJsonPath=a.json --outputJsonPath=b.json --use=@autorest/typescript@6.0.0-beta.5
This tool is used to generate changelog and bump version automatically.
####Prerequisites This tools is based on the api.md file generated by API Extractor. So make sure the sdk package contains the api.md file
cd azure-sdk-for-js
track2-js-sdk-changelog-tool ${package-path}
example:
track2-js-sdk-changelog-tool sdk/compute/arm-compute
In order to compute this changelog, we do the following steps:
The data structure of the extracted information:
export class TSExportedMetaData {
public typeAlias = {};
public operationInterface = {};
public modelInterface = {};
public enums = {};
public classes = {};
}
This is an example of the extracted information:
{
"typeAlias": {
"AttachedDatabaseConfiguration": {
"type": {
"inherits": [
"ProxyResource"
],
"typeLiteralDeclarations": [
{
"properties": [
{
"name": "location",
"visibility": 2,
"type": "string",
"isOptional": true,
"isStatic": false,
"start": 290,
"end": 308
}
],
"methods": [],
"intersectionDeclarations": [],
"typeLiteralDeclarations": [],
"name": "",
"start": 284,
"end": 606
}
],
"name": "",
"start": 268,
"end": 606
},
"methods": [],
"name": "AttachedDatabaseConfiguration",
"isExported": true,
"start": 224,
"end": 607
}
}
}
we have a set of rules that we apply for each entry in the diff. Currently template rules are:
## Features
Added operation group {}
Added operation {}.{}
Added Interface {}
Added Class {}
Added Type Alias {}
Interface {} has a new optional parameter {}
Class {} has a new optional parameter {}
Add parameters of {} to TypeAlias {}
Type Alias {} has a new parameter {}
Added Enum {}
Enum {} has a new value {}
## Breaking Changes
Removed operation group {}
Removed operation {}.{}
Operation {}.{} has a new signature
Class {} has a new signature
Interface {} no longer has parameter {}
Interface {} has a new required parameter {}
Parameter {} of interface {} is now required
Class {} no longer has parameter {}
Class {} has a new required parameter {}
Parameter {} of class {} is now required
Delete parameters of {} in TypeAlias {}
Type Alias {} no longer has parameter {}
Type Alias {} has a new parameter {}
Parameter {} of Type Alias {} is now required
Removed Enum {}
Enum {} no longer has value None
FAQs
This package contains 3 tools: 1. Use Track2 Codegen to generate codes by inputting swagger, and then run `rush update & rush build`. 2. Use Track2 Codegen to generate codes in swagger pipeline. 3. Generate changelog and bump version for Azure Track2 J
We found that azure-track2-js-sdk-release-tools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.