Skip to content

Commit

Permalink
Merge pull request #124 from hey-api/feat/changesets
Browse files Browse the repository at this point in the history
feat: add changesets to project and backfill changelog
  • Loading branch information
mrlubos authored Mar 24, 2024
2 parents 4984a5d + e8cf58b commit 282ea25
Show file tree
Hide file tree
Showing 10 changed files with 3,035 additions and 146 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@svitejs/changesets-changelog-github-compact", { "repo": "hey-api/openapi-ts" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/curly-foxes-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hey-api/openapi-ts": patch
---

Warn users about missing dependencies used in the generated client
5 changes: 5 additions & 0 deletions .changeset/good-balloons-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hey-api/openapi-ts": patch
---

Use AbortController in Axios client instead of deprecated CancelToken
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Create Release Pull Request
uses: changesets/action@v1
with:
version: npm run changeset version
publish: npm run changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
117 changes: 117 additions & 0 deletions CHANGELOG-old.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.27.0] - 2024-01-15
### Fixed
- Reverted `@apidevtools/json-schema-ref-parser` to version 10.1.0

## [0.26.0] - 2024-01-07
### Fixed
- Upgraded dependencies

## [0.25.0] - 2023-07-05
### Fixed
- Upgraded dependencies
### Added
- Allow usage of a custom axios instance
- Added message in generated files

## [0.24.0] - 2023-04-10
### Fixed
- Upgraded dependencies
- Fixed issue with Cancelable promise
- Fixed issue with escaping reserved keywords in schema names
### Added
- Added `--postfixModels` option

## [0.23.0] - 2022-06-02
### Fixed
- Upgraded dependencies
- Added blank line at the end of generated files
- Added support for Node.js v12
### Added
- Added `request` property inside `ApiError`
- Added support for `@depricated` inside models and operations

## [0.22.0] - 2022-04-26
### Fixed
- Upgraded dependencies
- Fixed issue with `null` value inside comments for OpenAPI v2 enums
- Fixed issue with compatibility for latest version of Axios (0.27.x)
### Removed
- Removed deprecated enum model generation

## [0.21.0] - 2022-04-06
### Fixed
- Return `undefined` to match `noImplicitReturns` rule
- Made `BaseHttpRequest` class abstract
- Removed private fields using `#` inside `CancelablePromise`
- Removed unneeded import `AbortController` from `node-fetch` client
- Filter out wrong enum values

## [0.20.1] - 2022-02-25
### Fixed
- Support enums with single quotes in names for V2

## [0.20.0] - 2022-02-25
### Fixed
- Updated dependencies
- Support enums with single quotes in names for V3
- Generating better names when `operationId` is not given (breaking change)
- Fixed issue where `x-enum` flags where breaking due to non-string values

## [0.19.0] - 2022-02-02
### Added
- Support for Angular client with `--name` option
- Added test cases for Angular client

## [0.18.2] - 2022-02-02
### Fixed
- Updated dependencies
- Fixed type definition
### Added
- Added test cases for CLI commands
- Added test cases for query parsing

## [0.18.1] - 2022-01-31
### Fixed
- Escaping error description
- Made `Client.request` and `BaseHttpRequest.config` props public

_## [0.18.0] - 2022-01-28
### Added
- Angular client generation!
- Updated documentation with more examples and better descriptions

## [0.17.0] - 2022-01-26
### Fixed
- Shorthand notation for properties passed through constructor
- Simplified creation of headers
- Prepare codebase for Angular client

## [0.16.2] - 2022-01-26
### Fixed
- Removed dependency on `URLSearchParams` to support browser and node without any additional imports

## [0.16.1] - 2022-01-26
### Fixed
- Correct export inside `index.ts` when giving a custom name

## [0.16.0] - 2022-01-25
### Added
- Added option to set the indentation (spaces and tabs)
- Added option to export separate client file that allows usage for multiple backends
### Fixed
- Decoupled OpenAPI object from requests
- Updated dependencies

## [0.15.0] - 2022-01-24
### Added
- Added change log and releases on GitHub

## [0.14.0] - 2022-01-24
### Fixed
- Added missing `postfix` options to typedef
- Updated escaping of comments and descriptions
- Better handling of services without tags
- Updated dependencies
Loading

0 comments on commit 282ea25

Please sign in to comment.