Releases: compasjs/compas
Releases · compasjs/compas
v0.5.4
Features
- feat(code-gen): add hook name to required variables check in the react-query generator
93c80e
- feat(eslint-plugin): disable warning on unsupported TS versions
18f909
Other
Dependency updates
v0.5.3
Features
- feat(cli): expose the test name via
t.name
in the test runner900de5
- feat(cli): pad the 'threadId' in test runner logs to align when a high number of workers / randomize rounds are used
024813
- feat(cli): add
t.jobs
to configure concurrent subtests3d0b9e
- feat(cli): add support for
.mjs
and.cjs
scripts incompas run
9632d8
Bug fixes
- fix(code-gen): correctly import & export dateOnly & timeOnly via OpenAPI
62f4d9
- fix(store): change error log to info log when trying to transform an already removed file
f8c6ff
Other
- chore(prettier): ignore
dist
directoriesd9967a
- chore(cli): refactor internal config of
compas test
d937d1
Dependency updates
- build(deps): bump eslint-plugin-jsdoc from 45.0.0 to 46.2.6 (#2643)
- Major version bump; enables the
jsdoc/no-defaults
rule by default. - Release notes
- Major version bump; enables the
- build(deps): bump @babel/eslint-parser from 7.21.8 to 7.22.5 (#2645)
- build(deps): bump @babel/core from 7.22.1 to 7.22.5 (#2646)
- build(deps): bump c8 from 7.14.0 to 8.0.0 (#2659)
- Major version bump
- Release notes
- build(deps): bump eslint from 8.42.0 to 8.43.0 (#2664)
- build(deps): bump @aws-sdk/client-s3 from 3.347.1 to 3.354.0 (#2665)
- build(deps): bump @aws-sdk/lib-storage from 3.347.1 to 3.354.0 (#2669)
v0.5.2
Features
- feat(cli): check if '.cache' is git ignored in
compas check-env
70573d
- feat(cli): remove 'graphviz' check from
compas check-env
91cf87
Bug fixes
- fix(code-gen): always generate the
Pretty
type even if global api clients is on550143
- fix(store): verify that the s3Client has a region before attempting to resolve the bucket
4d25a9
Other
- chore(examples): add .gitignore to all examples
d8a5eb
- chore(cli): update description of
compas check-env
3b246f
- examples(react-fetch): init example
82ec52
- chore(store): prefer
Object.keys
overObject.entries
99d996
- chore(code-gen): prefer
Object.keys
overObject.entries
63f71b
- chore: fix TS issues after bump to 5.1.3
55df94
Dependency updates
- build(deps): bump postgres from 3.3.4 to 3.3.5 (#2621)
- build(deps): bump file-type from 18.4.0 to 18.5.0 (#2633)
- build(deps): bump @aws-sdk/lib-storage from 3.341.0 to 3.347.1 (#2638)
- build(deps): bump eslint from 8.41.0 to 8.42.0 (#2629)
- build(deps): bump @aws-sdk/client-s3 from 3.341.0 to 3.347.1 (#2639)
v0.5.1
v0.5.0
Breaking changes
- feat(stdlib): condense logs for events
4e6983
- Changed the internal memory structure of events.
callStack
is nowspan
.parent
is removed and replaced by arootEvent
. Nested properties are affected as well. Usages likeevent.name
still work as expected. - Changed the logs produced by the events. The
type
is nowevent_span
instead ofevent_callstack
. In these logscallStack
is also replaced by span. Nested properties are affected as well to improve parsing and visualizing them. Please check the new logs and feel free to open an issue if you have trouble with migrating.
- Changed the internal memory structure of events.
Features
- feat(code-gen): pretty react-query hook types
7c644d
Dependency updates
- build(deps): bump eslint from 8.40.0 to 8.41.0 (#2599)
- build(deps): bump eslint-plugin-jsdoc from 44.2.4 to 45.0.0 (#2603, #2612)
- Major version bump
- Release notes
- build(deps): bump @babel/core from 7.21.8 to 7.22.1 (#2611)
- build(deps): bump @aws-sdk/lib-storage from 3.332.0 to 3.341.0 (#2610)
- build(deps): bump c8 from 7.13.0 to 7.14.0 (#2614)
- build(deps): bump @aws-sdk/client-s3 from 3.332.0 to 3.341.0 (#2613)
v0.4.0
Breaking changes
There are a few structure breaking changes to clean up compatibility with old code-gen. Make sure that the API is updated before any consumer is.
- feat(cli,store): align migration related functions
bacfe3
- Renamed
newMigrateContext
tomigrationsInitContext
. It also accepts an object withmigrationsDirectory
instead of a 'string' as the second argument. As before, if you don't provide amigrationsDirectory
it defaults to$cwd/migrations
. - Renamed
getMigrationsToBeApplied
tomigrationsGetInfo
. The result is wrapped in a promise. - Renamed
runMigrations
tomigrationsRun
. - All individual functions now acquire and release a Postgres lock instead of keeping the lock alive for the whole connection. This allows you to use these functions more easily in application code.
- Dropped
--keep-alive
and--without-lock
fromcompas migrate
. If you need this functionality, you are better off calling the migration functions on application startup.
- Renamed
- feat(code-gen): drop
T.any().raw()
andT.any().validator()
9d4f7a
T.any().raw()
andT.any().validator()
were not implemented in the new code-gen. UseT.any().implementations()
instead.
- feat(code-gen): drop
T.bool().convert()
,T.number().convert()
andT.string().convert()
d704a6
- The new code-gen automatically converts booleans, numbers and dates from their string representation.
- feat(code-gen): re-instantiate
T.array().convert()
d3aabb
- JS validators don't automatically convert single values to arrays anymore. Adding this as the default caused performance problems with the Typescript compiler and complex recursive types. It also caused a bad DX, where setting an empty array and trying to push later would result in a type error. Also not every planned target language has support to type this correctly anyway, so it should be used sparingly.
- feat(code-gen): drop
R.files()
569b2b
- Use
R.body()
instead ofR.files()
- When using the Koa router, change usages of
ctx.validatedFiles
withctx.validatedBody
- Auto-generated type names for files inputs like
PostSetHeaderImageFiles
will be renamed toPostSetHeaderImageBody
. - Executing this change on the server doesn't require immediate regeneration of api clients. The way they currently send files is compatible.
- Use
Features
- feat(code-gen): add expected patterns to docs if no docs exist on
T.uuid()
,T.date().{timeOnly,dateOnly}()
41e3e3
- feat(code-gen): add stricter validation on
R.params()
andR.query()
21c9b7
- feat(code-gen): improve react-query DX by accepting a partial object on
useQuery
hooks430449
- feat(code-gen): define behavior for
T.file()
inR.body()
(#2597)80429b
Bug fixes
- fix(code-gen): don't throw a 404 on no match in the router
077da8
Other
- chore(docs): add
T.array().convert()
to the docs9744e6
- chore: add a quick citgm command for testing unreleased Compas versions on local projects
4b7ba7
Dependency updates
v0.3.2
Features
- feat(store): add
deleteJobOnCompletion
to the queue workerc82034
Other
- chore(docs): generate sitemap
aab7d8
- chore(code-gen): rename internal code-gen group
4bf684
- chore(code-gen): cleanup RouteBuilder
internalSettings
1cd8f6
- chore(changelog): correct minor bumps in
0.x.y
ranges684e02
Dependency updates
v0.3.1
v0.3.0
Features
- feat(code-gen): add support for
transformContext
with custom readable types in CRUD65979a
Other
- chore(code-gen): cleanup 'NamedType' usages
8a8434
- chore(code-gen): cleanup experimental development test setup
85918b
- chore(code-gen): combine all internal utils
6a61e7
- chore(code-gen): speed up examples test by running them in parallel
69cfb6
- chore(test): increase timeout of examples test
4ecd95
Dependency updates
- build(deps): bump pino from 8.12.1 to 8.14.1 (#2567)
- build(deps): bump eslint-plugin-jsdoc from 43.2.0 to 44.0.1 (#2568)
- Major version bump
- Release notes