Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
6df191c
Added scalarCDN to docs
jmcudd May 22, 2025
761b5d4
:tada: feat: use relative path for swagger when using prefix
SaltyAom Jun 17, 2025
eb790a2
:wrench: fix: relative path endpoint
SaltyAom Jun 27, 2025
63ad74a
Merge pull request #213 from jmcudd/scalarCDNdoc
marclave Aug 23, 2025
5e58a60
:tada: feat: refactor
SaltyAom Sep 2, 2025
c3c91bb
:tada: feat: refactor
SaltyAom Sep 2, 2025
598fea4
:tada: feat: operationId per possible path
SaltyAom Sep 2, 2025
d028a9d
:tada: feat: operationId per possible path
SaltyAom Sep 2, 2025
2f1df4f
:tada: feat: generator
SaltyAom Sep 2, 2025
f410e31
:tada: feat: export generator
SaltyAom Sep 2, 2025
a49b0f0
:blue_book: doc: update doc from swagger to OpenAPI
SaltyAom Sep 2, 2025
3df25f4
Merge branch 'main' into hana
SaltyAom Sep 2, 2025
fa956f4
Merge pull request #235 from elysiajs/hana
SaltyAom Sep 2, 2025
371c376
:blue_book: doc: update doc
SaltyAom Sep 2, 2025
79afbdc
:wrench: fix: Bug fix: type generator: collapse path when trying to a…
SaltyAom Sep 2, 2025
a1cef23
:wrench: fix(type-generator): exclude unknown type
SaltyAom Sep 2, 2025
29c5bc2
:wrench: fix(type-generator): exclude unknown type
SaltyAom Sep 2, 2025
e721283
:wrench: fix(type-generator): handle union type
SaltyAom Sep 2, 2025
0e21f06
:wrench: fix(type generator): add loose path type matching
SaltyAom Sep 2, 2025
30bcb88
:wrench: fix(type generator): try loose matching for schema type
SaltyAom Sep 2, 2025
a8455fe
:wrench: fix(type generator): clean up temp files after generation
SaltyAom Sep 2, 2025
6953d2b
:wrench: fix(type generator): imbalance bracket or something
SaltyAom Sep 2, 2025
593c78d
:wrench: fix(type generator): imbalance bracket or something
SaltyAom Sep 2, 2025
36de735
:wrench: fix(type generator): friendly error message, and better erro…
SaltyAom Sep 4, 2025
4f3e93e
:wrench: fix(type generator): overrideOutputPath can be string
SaltyAom Sep 4, 2025
2f149ff
:wrench: fix(type generator): loose path generated file mapping
SaltyAom Sep 4, 2025
f55cf5c
:tada: feat(type generator): accept `.d.ts` to prevent type generatio…
SaltyAom Sep 4, 2025
59a142b
:wrench: fix(type generator): convert Windows path to Unix for TypeSc…
SaltyAom Sep 6, 2025
5e54ce2
:tada: feat: use absolute path to generate declaration file
SaltyAom Sep 10, 2025
97683a4
:tada: feat: use absolute path to generate declaration file
SaltyAom Sep 10, 2025
9390b8a
:tada: feat: use absolute path to generate declaration file
SaltyAom Sep 10, 2025
005fbee
:tada: feat: standard schema
SaltyAom Sep 10, 2025
7c5f1af
:broom: chore: bump version
SaltyAom Sep 12, 2025
dfd4325
:wrench: fix: mapJsonSchema
SaltyAom Sep 13, 2025
170355f
:wrench: fix: remove xsschema from dependency
SaltyAom Sep 13, 2025
480f7f7
:wrench: fix: remove xsschema from dependency
SaltyAom Sep 13, 2025
031696d
:tada: feat: 1.4.3
SaltyAom Sep 18, 2025
0d9fa40
:tada: feat: 1.4.3
SaltyAom Sep 18, 2025
128cff3
:wrench: fix(type generator): handle non-intersect routes
SaltyAom Sep 19, 2025
ef764db
:wrench: fix: reference model
SaltyAom Sep 19, 2025
364ec57
:blue_book: doc: simplify doc
SaltyAom Sep 20, 2025
8169471
:wrench: fix(type-gen): handle inline 200 response schema assignment
SaltyAom Sep 20, 2025
c0b16e6
:broom: chore(type-gen): remove readonly from generated type to fix r…
SaltyAom Sep 20, 2025
b239366
:broom: chore(type-gen): handle array delimiter correctly
SaltyAom Sep 20, 2025
2340cbc
:broom: chore(type-gen): handle array delimiter correctly
SaltyAom Sep 20, 2025
ae3807a
:broom: chore(type-gen): handle array delimiter correctly
SaltyAom Sep 20, 2025
1350360
Fix Swagger UI link
ssarj Sep 21, 2025
01b4d6a
:wrench: fix(type-gen): match special, ad non-english character
SaltyAom Sep 21, 2025
01c237b
:sparkles: feat: add enum conversion
runyasak Sep 21, 2025
aa3bbdd
:wrench: fix: rename function to convertEnumToOpenApi
runyasak Sep 21, 2025
f372188
:sparkles: feat: add tests
runyasak Sep 21, 2025
3a318dd
Merge pull request #267 from runyasak/feat/type-enum
SaltyAom Sep 21, 2025
303be10
:broom: chore: refactor enumToOpenAPI
SaltyAom Sep 21, 2025
9d4138f
:broom: chore: refactor enumToOpenAPI
SaltyAom Sep 21, 2025
6d4efbb
:broom: chore: test case
SaltyAom Sep 21, 2025
8a775ca
:wrench: fix: #262 when failed to convert type to OpenAPI, log the er…
SaltyAom Sep 21, 2025
ebdf2f5
:wrench: fix: #256 export fromTypes from index
SaltyAom Sep 21, 2025
6726465
:wrench: fix: #230, #265 do not inline Response if is Cloudflare Worker
SaltyAom Sep 21, 2025
4d2d665
:wrench: fix: type error
SaltyAom Sep 21, 2025
460d159
:blue_book: doc: update release note for 1.4.10
SaltyAom Sep 21, 2025
ae8f8b1
:blue_book: doc: update release note for 1.4.10
SaltyAom Sep 21, 2025
8e7f979
:broom: chore: add test case for reference
SaltyAom Sep 21, 2025
b9198bf
Merge pull request #264 from ssarj/fix-swagger-ui-link
SaltyAom Sep 22, 2025
070919e
:tada: feat: add `data-configuration` for adding custom Scalar config…
SaltyAom Sep 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
module.exports = {
"env": {
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/ban-types": 'off',
'@typescript-eslint/no-explicit-any': 'off'
},
"ignorePatterns": ["example/*", "tests/**/*"]
}
module.exports = {
"env": {
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/ban-types": 'off',
'@typescript-eslint/no-explicit-any': 'off'
},
"ignorePatterns": ["example/*", "tests/**/*"]
}
22 changes: 11 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: './'
schedule:
interval: 'daily'

- package-ecosystem: 'github-actions'
directory: './'
schedule:
interval: 'daily'
version: 2
updates:
- package-ecosystem: 'npm'
directory: './'
schedule:
interval: 'daily'
- package-ecosystem: 'github-actions'
directory: './'
schedule:
interval: 'daily'
56 changes: 28 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: Code CI

on:
push:
pull_request:

jobs:
build:
name: Build and test code
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install packages
run: bun install

- name: Build code
run: bun run build

- name: Test
run: bun run test
name: Code CI
on:
push:
pull_request:
jobs:
build:
name: Build and test code
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install packages
run: bun install
- name: Build code
run: bun run build
- name: Test
run: bun run test
100 changes: 50 additions & 50 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
name: Publish

on:
release:
types: [published]

defaults:
run:
shell: bash

permissions:
id-token: write

env:
# Enable debug logging for actions
ACTIONS_RUNNER_DEBUG: true

jobs:
publish-npm:
name: 'Publish: npm Registry'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4

- name: 'Setup Bun'
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
registry-url: "https://registry.npmjs.org"

- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Install packages
run: bun install

- name: Build code
run: bun run build

- name: Test
run: bun run test

- name: 'Publish'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm publish --provenance --access=public
name: Publish
on:
release:
types: [published]
defaults:
run:
shell: bash
permissions:
id-token: write
env:
# Enable debug logging for actions
ACTIONS_RUNNER_DEBUG: true
jobs:
publish-npm:
name: 'Publish: npm Registry'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Setup Bun'
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
registry-url: "https://registry.npmjs.org"
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install packages
run: bun install
- name: Build code
run: bun run build
- name: Test
run: bun run test
- name: 'Publish'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm publish --provenance --access=public
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store

node_modules
.pnpm-debug.log
dist

.DS_Store
node_modules
.pnpm-debug.log
dist
build
52 changes: 26 additions & 26 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
.git
.github
.gitignore
.prettierrc
.cjs.swcrc
.es.swcrc
bun.lockb

node_modules
tsconfig.json
pnpm-lock.yaml
jest.config.js
nodemon.json

example
src
tests
test
CHANGELOG.md
.eslintrc.js
tsconfig.cjs.json
tsconfig.esm.json
tsconfig.dts.json

src
build.ts
.git
.github
.gitignore
.prettierrc
.cjs.swcrc
.es.swcrc
bun.lockb
node_modules
tsconfig.json
pnpm-lock.yaml
jest.config.js
nodemon.json
example
src
tests
test
CHANGELOG.md
.eslintrc.js
tsconfig.cjs.json
tsconfig.esm.json
tsconfig.dts.json
src
build.ts
14 changes: 7 additions & 7 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"useTabs": true,
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"trailingComma": "none"
}
{
"useTabs": true,
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"trailingComma": "none"
}
Loading