Skip to content

Commit

Permalink
chore: release main (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Dec 6, 2023
1 parent 3aa1fca commit c621d4b
Show file tree
Hide file tree
Showing 18 changed files with 484 additions and 18 deletions.
16 changes: 8 additions & 8 deletions .release-please-manifest.json
@@ -1,10 +1,10 @@
{
"packages/cli": "0.0.3",
"packages/express": "0.0.3",
"packages/next-auth": "0.0.3",
"packages/next": "0.0.3",
"packages/prisma": "0.0.3",
"packages/react-query": "0.0.3",
"packages/stainless": "0.0.3",
"packages/ts-to-zod": "0.0.3"
"packages/cli": "0.1.0",
"packages/express": "0.1.0",
"packages/next-auth": "0.1.0",
"packages/next": "0.1.0",
"packages/prisma": "0.1.0",
"packages/react-query": "0.0.4",
"packages/stainless": "0.1.0",
"packages/ts-to-zod": "0.0.4"
}
49 changes: 49 additions & 0 deletions packages/cli/CHANGELOG.md
@@ -0,0 +1,49 @@
# Changelog

## [0.1.0](https://github.com/stainless-api/stl-api/compare/cli-v0.0.3...cli-v0.1.0) (2023-12-06)


### ⚠ BREAKING CHANGES

* **cli:** renamed package

### Features

* **cli:** allow custom generation directory ([f4178d0](https://github.com/stainless-api/stl-api/commit/f4178d09af423574bdac46c6004ec1edffd0acf7))
* complex value schema generation within user folder ([b2beb37](https://github.com/stainless-api/stl-api/commit/b2beb376b335dc395db6c09434be4d0524c73382))
* complex value schema generation within user folder ([a85c704](https://github.com/stainless-api/stl-api/commit/a85c7049fe6596da11250caf2424b84a39156b11))
* generate prettified code, ignore generated code in watch mode ([7887d5d](https://github.com/stainless-api/stl-api/commit/7887d5dbb8cc3027d87d19b95ba1564af655054f))
* implement include and select magic schema generation ([1eace8f](https://github.com/stainless-api/stl-api/commit/1eace8f14d9d56638e0061e7d081dbbc08710115))
* implement include and select magic schema generation ([61cda64](https://github.com/stainless-api/stl-api/commit/61cda64bac99dd9a42a5957f8a61afa951b2eb02))
* rename magic to codegenSchema ([90eb489](https://github.com/stainless-api/stl-api/commit/90eb4893dd3afd1faf4188702ab1e33a00a3248b))
* support inlining Zod schemas into magic schemas ([c7f179a](https://github.com/stainless-api/stl-api/commit/c7f179a74475ade23efefa63ac08f251cbef7a90))
* support inlining Zod schemas into magic schemas ([bd9911a](https://github.com/stainless-api/stl-api/commit/bd9911ab7a970d4443fa839dae8882cbf6ac5f23))
* use all caps instead of lowercased HTTP methods in endpoints ([6c25c78](https://github.com/stainless-api/stl-api/commit/6c25c78e54dd4e0b3008bed22ef235e441d56dca))


### Bug Fixes

* **cli:** don't rewrite when any files are dirty ([e08657e](https://github.com/stainless-api/stl-api/commit/e08657edcb950383434b14e648f59d9e62e204c9))
* **cli:** fix bug with gitignored paths not getting ignored ([b0cd963](https://github.com/stainless-api/stl-api/commit/b0cd963eef83c1dd8d46af9d1b947d3c5a373487))
* **cli:** fix potential issues with using prettier ([5275f47](https://github.com/stainless-api/stl-api/commit/5275f4738519b00e56a8feb19dbf45b88d45c81f))
* **cli:** import handling improvements ([6f3aa66](https://github.com/stainless-api/stl-api/commit/6f3aa661ce795389118f5fef207e2cbb2f0b0d67))
* **cli:** improve watch mode ([f8c0e6e](https://github.com/stainless-api/stl-api/commit/f8c0e6ec87e7ceb6b5ef9cf7b5b302985f90d015))
* **cli:** module generation fixes ([bef0ebb](https://github.com/stainless-api/stl-api/commit/bef0ebbba7e6a06c16655754d8fb7e160d1912d3))
* **cli:** preserve import positions for already imported codegen modules ([cbd9d04](https://github.com/stainless-api/stl-api/commit/cbd9d04d438776f556491bb127993c214fe08632))
* **cli:** recover if prettier formatting fails ([da838d0](https://github.com/stainless-api/stl-api/commit/da838d01d1400ee59e82887b14f45e60292bbbc6))
* **cli:** tweak formatting a bit more ([60557c5](https://github.com/stainless-api/stl-api/commit/60557c52f857b9b7756fdee816e1cda91a78406b))
* emit error when encountering Zod schema type ([cc53600](https://github.com/stainless-api/stl-api/commit/cc536009cb522a08109defaefd4fb773e796909e))
* emit error when encountering Zod schema type ([6991dad](https://github.com/stainless-api/stl-api/commit/6991dad03d22172f515280f6cfabcecabb7dd61b))
* endpoint ident mangling, index generation ([827c75b](https://github.com/stainless-api/stl-api/commit/827c75b9d1391e8a6e1506a17cb8ec38b08a1613))


### Code Refactoring

* **cli:** rename from @stl-api/gen to @stl-api/cli ([1640ecd](https://github.com/stainless-api/stl-api/commit/1640ecd6897e01b9d1d473d865d3cf9b59cc0a36))


### Dependencies

* The following workspace dependencies were updated
* dependencies
* ts-to-zod bumped to 0.0.4
2 changes: 1 addition & 1 deletion packages/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@stl-api/cli",
"version": "0.0.3",
"version": "0.1.0",
"description": "Bundle-time utilities implementing ergonomic stl-api helpers.\"",
"author": "dev@stainlessapi.com",
"repository": {
Expand Down
29 changes: 29 additions & 0 deletions packages/express/CHANGELOG.md
@@ -0,0 +1,29 @@
# Changelog

## [0.1.0](https://github.com/stainless-api/stl-api/compare/express-v0.0.3...express-v0.1.0) (2023-12-06)


### ⚠ BREAKING CHANGES

* **express:** removed functions that create Express Applications and unexported functions that add endpoints to Express Applications/Routers

### Features

* **express:** add parseParams, rename/remove other function ([511adb2](https://github.com/stainless-api/stl-api/commit/511adb2e3d56a5c2a8c7845bdc13550eaaffe45b))
* **express:** add stlExecuteExpressRequest ([7ed038a](https://github.com/stainless-api/stl-api/commit/7ed038a5fff13d664dd1d3e7acc498451735c74b))
* **express:** add stlPrepareExpressRequest function ([d96c71e](https://github.com/stainless-api/stl-api/commit/d96c71e1e91d7d902ccebcd7433b6e250d1e3677))
* **express:** create @stl-api/express ([#22](https://github.com/stainless-api/stl-api/issues/22)) ([0b5b3bd](https://github.com/stainless-api/stl-api/commit/0b5b3bd802b16e2aafd922e382fe93172ce82ec7))
* use all caps instead of lowercased HTTP methods in endpoints ([6c25c78](https://github.com/stainless-api/stl-api/commit/6c25c78e54dd4e0b3008bed22ef235e441d56dca))


### Bug Fixes

* express Jest types ([fa824a7](https://github.com/stainless-api/stl-api/commit/fa824a76266557bb57f58b14901eb4dbbc2bb6a5))
* **express:** add middleware to created routers ([d5c4164](https://github.com/stainless-api/stl-api/commit/d5c41649e13dc124b1d3d0feba4634540dc7b662))


### Dependencies

* The following workspace dependencies were updated
* dependencies
* stainless bumped to 0.1.0
2 changes: 1 addition & 1 deletion packages/express/package.json
@@ -1,6 +1,6 @@
{
"name": "@stl-api/express",
"version": "0.0.3",
"version": "0.1.0",
"license": "ISC",
"description": "express integration for stainless api",
"author": "dev@stainlessapi.com",
Expand Down
42 changes: 42 additions & 0 deletions packages/next-auth/CHANGELOG.md
@@ -0,0 +1,42 @@
# Changelog

## [0.1.0](https://github.com/stainless-api/stl-api/compare/next-auth-v0.0.3...next-auth-v0.1.0) (2023-12-06)


### ⚠ BREAKING CHANGES

* removed UserContext type parameter in favor of using declaration merging to add custom props to StlContext. Also removed PartialStlContext type.
* create `stl` instance with `new Stl(...)` instead of `makeStl(...)`
* the following functions have been moved:
- `stl.next.plugins.appRoute` -> `stlNextAppRoute`
- `stl.next.plugins.pageRoute` -> `stlNextPageRoute`
- `stl.next.plugins.appCatchAllRouter` -> `stlNextAppCatchAllRouter`
- `stl.next.plugins.pageCatchAllRouter` -> `stlNextPageCatchAllRouter`
All of these functions can be imported from `@stl-api/next`.
* rename the `@stl-api/stl` package to `stainless`

### Features

* support authenticated: true config ([7f6112a](https://github.com/stainless-api/stl-api/commit/7f6112a17f79fcf651db23fb39dcb35b46f33ad3))


### Bug Fixes

* make Endpoint type non-recursive ([c676b52](https://github.com/stainless-api/stl-api/commit/c676b52b62357843d1d98a7f0a737f9528793daa))
* **react-query:** fix ESM/CJS issue ([ffc6c52](https://github.com/stainless-api/stl-api/commit/ffc6c526f017e892100a7de4370af2134d83d514))


### Code Refactoring

* allow extend context via declaration merging instead of generic ([afba2e7](https://github.com/stainless-api/stl-api/commit/afba2e7156013bdccfb887c6a9f5281b3db9e54d))
* convert Stl instance to a class ([9604c4e](https://github.com/stainless-api/stl-api/commit/9604c4ed9fad41e885ab08c3c5108a5ea227458e))
* rename @stl-api/stl to stainless ([bb60f65](https://github.com/stainless-api/stl-api/commit/bb60f6508fa6e1bc4e8acd141a818ee797948a82))
* use standalone next route adapter functions ([#6](https://github.com/stainless-api/stl-api/issues/6)) ([cb26747](https://github.com/stainless-api/stl-api/commit/cb26747850ec6dd93e78377b5bf61fc5433d69f7))


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @stl-api/next bumped to 0.1.0
* stainless bumped to 0.1.0
2 changes: 1 addition & 1 deletion packages/next-auth/package.json
@@ -1,6 +1,6 @@
{
"name": "@stl-api/next-auth",
"version": "0.0.3",
"version": "0.1.0",
"description": "next-auth plugin for stainless api",
"author": "dev@stainlessapi.com",
"repository": {
Expand Down
41 changes: 41 additions & 0 deletions packages/next/CHANGELOG.md
@@ -0,0 +1,41 @@
# Changelog

## [0.1.0](https://github.com/stainless-api/stl-api/compare/next-v0.0.3...next-v0.1.0) (2023-12-06)


### ⚠ BREAKING CHANGES

* removed UserContext type parameter in favor of using declaration merging to add custom props to StlContext. Also removed PartialStlContext type.
* create `stl` instance with `new Stl(...)` instead of `makeStl(...)`
* the following functions have been moved:
- `stl.next.plugins.appRoute` -> `stlNextAppRoute`
- `stl.next.plugins.pageRoute` -> `stlNextPageRoute`
- `stl.next.plugins.appCatchAllRouter` -> `stlNextAppCatchAllRouter`
- `stl.next.plugins.pageCatchAllRouter` -> `stlNextPageCatchAllRouter`
All of these functions can be imported from `@stl-api/next`.
* rename the `@stl-api/stl` package to `stainless`

### Features

* use all caps instead of lowercased HTTP methods in endpoints ([6c25c78](https://github.com/stainless-api/stl-api/commit/6c25c78e54dd4e0b3008bed22ef235e441d56dca))


### Bug Fixes

* make Endpoint type non-recursive ([c676b52](https://github.com/stainless-api/stl-api/commit/c676b52b62357843d1d98a7f0a737f9528793daa))
* **react-query:** fix ESM/CJS issue ([ffc6c52](https://github.com/stainless-api/stl-api/commit/ffc6c526f017e892100a7de4370af2134d83d514))


### Code Refactoring

* allow extend context via declaration merging instead of generic ([afba2e7](https://github.com/stainless-api/stl-api/commit/afba2e7156013bdccfb887c6a9f5281b3db9e54d))
* convert Stl instance to a class ([9604c4e](https://github.com/stainless-api/stl-api/commit/9604c4ed9fad41e885ab08c3c5108a5ea227458e))
* rename @stl-api/stl to stainless ([bb60f65](https://github.com/stainless-api/stl-api/commit/bb60f6508fa6e1bc4e8acd141a818ee797948a82))
* use standalone next route adapter functions ([#6](https://github.com/stainless-api/stl-api/issues/6)) ([cb26747](https://github.com/stainless-api/stl-api/commit/cb26747850ec6dd93e78377b5bf61fc5433d69f7))


### Dependencies

* The following workspace dependencies were updated
* dependencies
* stainless bumped to 0.1.0
2 changes: 1 addition & 1 deletion packages/next/package.json
@@ -1,6 +1,6 @@
{
"name": "@stl-api/next",
"version": "0.0.3",
"version": "0.1.0",
"license": "ISC",
"description": "next.js plugin for stainless api",
"author": "dev@stainlessapi.com",
Expand Down
79 changes: 79 additions & 0 deletions packages/prisma/CHANGELOG.md
@@ -0,0 +1,79 @@
# Changelog

## [0.1.0](https://github.com/stainless-api/stl-api/compare/prisma-v0.0.3...prisma-v0.1.0) (2023-12-06)


### ⚠ BREAKING CHANGES

* **t:** use type parameters more
* the following have been renamed:
- `z.expands` -> `z.includes`
- `z.(...).expandable()` -> `z.(...).includable()`
- `z.ExpandableInput` -> `z.IncludableInput`
- `z.ExpandableOutput` -> `z.IncludableOutput`
- `z.ExpandableZodType` -> `z.IncludableZodType`
- `z.isExpandable` -> `z.isIncludable`
- `z.expandableSymbol` -> `z.includableSymbol`
* removed UserContext type parameter in favor of using declaration merging to add custom props to StlContext. Also removed PartialStlContext type.
* `.stlMetadata` has been replaced with `.withMetadata`, `z.WithStlMetadata` has been replaced with `z.ZodMetadata`, and `z.ExtractStlMetadata` has been replaced with `z.extractMetadata`/ `z.extractDeepMetadata`.
* create `stl` instance with `new Stl(...)` instead of `makeStl(...)`
* the following functions have been moved:
- `stl.next.plugins.appRoute` -> `stlNextAppRoute`
- `stl.next.plugins.pageRoute` -> `stlNextPageRoute`
- `stl.next.plugins.appCatchAllRouter` -> `stlNextAppCatchAllRouter`
- `stl.next.plugins.pageCatchAllRouter` -> `stlNextPageCatchAllRouter`
All of these functions can be imported from `@stl-api/next`.
* *StainlessMetadata has been renamed to *StlMetadata:
- WithStainlessMetadata -> WithStlMetadata
- ExtractStainlessMetadata -> ExtractStlMetadata
- extractStainlessMetadata -> extractStlMetadata
* the following have been moved from the `stl` instance to `import { z } from 'stainless'`:
- `stl.expands` -> `z.expands`
- `stl.selects` -> `z.selects`
- `stl.PaginationParams` -> `z.PaginationParams`
- `stl.pageResponse` -> `z.pageResponse`
* remove stl.response; use z.response instead (from `import { z } from 'stainless'`)
* rename the `@stl-api/stl` package to `stainless`
* stl.expandParam has been renamed to stl.expands, stl.selectParam has been renamed to stl.selects

### Features

* add z.path, z.query, z.body, z.response ([b67ab2e](https://github.com/stainless-api/stl-api/commit/b67ab2e23f14cc308ebde9c1fb95d2098f4a5f8d))
* use all caps instead of lowercased HTTP methods in endpoints ([6c25c78](https://github.com/stainless-api/stl-api/commit/6c25c78e54dd4e0b3008bed22ef235e441d56dca))


### Bug Fixes

* a bunch of issues with include/select ([66fdf7e](https://github.com/stainless-api/stl-api/commit/66fdf7e7c220f61518f1fdac28f00183e3b82aec))
* error messages and expansion/selection docs ([fd135d8](https://github.com/stainless-api/stl-api/commit/fd135d851f923bc299adeb46abd4d49eb2f5cdf2))
* make Endpoint type non-recursive ([c676b52](https://github.com/stainless-api/stl-api/commit/c676b52b62357843d1d98a7f0a737f9528793daa))
* pagination bugs ([0be9aa1](https://github.com/stainless-api/stl-api/commit/0be9aa16e735c2ec9d4e61a54b5a993e380717cb))
* **prisma:** fix TS error ([8fa5f68](https://github.com/stainless-api/stl-api/commit/8fa5f688db68fe21f7690e4000147c9398873a20))
* **prisma:** fix typo in includeFromQuery ([02bfac1](https://github.com/stainless-api/stl-api/commit/02bfac16e665262493f04223b5cbe584fc673c47))
* **prismaPlugin:** include top-level fields even if select is given ([6ab0a9c](https://github.com/stainless-api/stl-api/commit/6ab0a9cd4011f8204f0ff2db510912d2298cb254))
* **react-query:** fix ESM/CJS issue ([ffc6c52](https://github.com/stainless-api/stl-api/commit/ffc6c526f017e892100a7de4370af2134d83d514))
* remove debugger/print statements ([0f555cc](https://github.com/stainless-api/stl-api/commit/0f555cc9420e74dacd1e0b38820f79cf44c94481))
* remove stray debugger and console.log statements ([0d35c5b](https://github.com/stainless-api/stl-api/commit/0d35c5b141d909f0826924a13be154ed9300e081))
* things that are breaking openapi generation ([91e40be](https://github.com/stainless-api/stl-api/commit/91e40be6ced0f680d27ca9ef06b72acc0745d3e3))
* use `import { z } from "stainless"` ([85520c1](https://github.com/stainless-api/stl-api/commit/85520c1859edba2618bc0b89e3627bdd1b58c959))


### Code Refactoring

* allow extend context via declaration merging instead of generic ([afba2e7](https://github.com/stainless-api/stl-api/commit/afba2e7156013bdccfb887c6a9f5281b3db9e54d))
* convert Stl instance to a class ([9604c4e](https://github.com/stainless-api/stl-api/commit/9604c4ed9fad41e885ab08c3c5108a5ea227458e))
* improve code organization, rename StainlessMetadata -&gt; StlMetadata ([f423e33](https://github.com/stainless-api/stl-api/commit/f423e337b9ed99529647fc86ffd6da510dec2eab))
* move expand, select and pagination types to extended z ([bd4cb04](https://github.com/stainless-api/stl-api/commit/bd4cb04bfee81b640ccf32c9f9a2af9f75097f4d))
* rename @stl-api/stl to stainless ([bb60f65](https://github.com/stainless-api/stl-api/commit/bb60f6508fa6e1bc4e8acd141a818ee797948a82))
* rename expand to include ([7b35e50](https://github.com/stainless-api/stl-api/commit/7b35e50d36407fde4c128056c9f57bc16fa88022))
* rename expandParam -&gt; expands, selectParam -> selects ([8613965](https://github.com/stainless-api/stl-api/commit/8613965c91e64b29dcadc448a901e9bcc2c42f6c))
* stainless schema metadata ([0e93a50](https://github.com/stainless-api/stl-api/commit/0e93a5002c716f5d232f52e5637c00a7a2c83360))
* **t:** use type parameters more ([a3a84a4](https://github.com/stainless-api/stl-api/commit/a3a84a4363b2e7e0645017ba3ddde252eaa5e396))
* use standalone next route adapter functions ([#6](https://github.com/stainless-api/stl-api/issues/6)) ([cb26747](https://github.com/stainless-api/stl-api/commit/cb26747850ec6dd93e78377b5bf61fc5433d69f7))


### Dependencies

* The following workspace dependencies were updated
* dependencies
* stainless bumped to 0.1.0
2 changes: 1 addition & 1 deletion packages/prisma/package.json
@@ -1,6 +1,6 @@
{
"name": "@stl-api/prisma",
"version": "0.0.3",
"version": "0.1.0",
"description": "prisma plugin for stainless api",
"author": "dev@stainlessapi.com",
"repository": {
Expand Down
30 changes: 30 additions & 0 deletions packages/react-query/CHANGELOG.md
@@ -0,0 +1,30 @@
# Changelog

## [0.0.4](https://github.com/stainless-api/stl-api/compare/react-query-v0.0.3...react-query-v0.0.4) (2023-12-06)


### Features

* **react-query:** add invalidate methods to client ([72bf533](https://github.com/stainless-api/stl-api/commit/72bf53387d7d14e2325af41569c5ca1cb2d2fce0))
* **react-query:** fix types for get method hooks ([cba47e2](https://github.com/stainless-api/stl-api/commit/cba47e2ec4a8f04cda4083617b9e9e786e9435bc))
* **react-query:** implement useMutation and getQueryKey, add more documentation ([#21](https://github.com/stainless-api/stl-api/issues/21)) ([9663cd8](https://github.com/stainless-api/stl-api/commit/9663cd83e65793ad2dad9c97bd278d2123ec415e))
* use all caps instead of lowercased HTTP methods in endpoints ([6c25c78](https://github.com/stainless-api/stl-api/commit/6c25c78e54dd4e0b3008bed22ef235e441d56dca))


### Bug Fixes

* client query issues and make react-query client wrap base client ([2458151](https://github.com/stainless-api/stl-api/commit/24581512a42101128bb0435768f6232bf617a192))
* **react-query:** add path param to query key ([f22a6b3](https://github.com/stainless-api/stl-api/commit/f22a6b3e8b4fd26ade94602da14956d4e480f60f))
* **react-query:** detect useQueryOptions ([aed31cb](https://github.com/stainless-api/stl-api/commit/aed31cbb709cb5659e9c279b9a0a881ad1e6e3b5))
* **react-query:** fix another bug with queryKey ([7802434](https://github.com/stainless-api/stl-api/commit/7802434106838686cc98ba2bfeadd07c6971c171))
* **react-query:** fix client method return types ([f49c674](https://github.com/stainless-api/stl-api/commit/f49c6746d9dad3f96c20952b7acf5cbfe59a6fd3))
* **react-query:** fix esm build ([f1bbe28](https://github.com/stainless-api/stl-api/commit/f1bbe288145d9ed713cd4abe1a2e2d2c5a74b763))
* **react-query:** fix ESM/CJS issue ([ffc6c52](https://github.com/stainless-api/stl-api/commit/ffc6c526f017e892100a7de4370af2134d83d514))
* **react-query:** use safeParseAsync instead of safeParse ([0c6b5f7](https://github.com/stainless-api/stl-api/commit/0c6b5f7b3cca92fd52b2f97a736322a24196edea))


### Dependencies

* The following workspace dependencies were updated
* dependencies
* stainless bumped to 0.1.0
2 changes: 1 addition & 1 deletion packages/react-query/package.json
@@ -1,6 +1,6 @@
{
"name": "@stl-api/react-query",
"version": "0.0.3",
"version": "0.0.4",
"description": "react-query client for stainless api",
"author": "dev@stainlessapi.com",
"repository": {
Expand Down

0 comments on commit c621d4b

Please sign in to comment.