Releases: adonisjs/lucid
Releases · adonisjs/lucid
Re-write in Typescript
Commits:
- chore: remove doctoc and it's pre commit hook fdcf022
- docs(README): update readme file aeb3873
- refactor: update grouping of tests d637f79
- chore: update dependencies 123a1d4
- refactor: remove unwanted
difference
utility method db67faf - feat(manytomany): add persistance methods 10b3af1
- fix: await trx.rollback call 9c80036
- refactor: improve model and relationships persistance layer 72b26e7
- feat(commands): introduce force flag and prompt in production 5e1db48
- feat: add support for transforming values when persisting them to the db 231af82
- refactor: cleanup codebase 27a9155
- refactor: cleanup API and make it consistent 6a67a23
- refactor: remove executable trait in favor of executeQuery helper cb8067c
- chore: update dependencies aa38b6e
- refactor(model): update column decorator properties name and behavior a607abb
- refactor: rename config getCastKey method to getCastAsKey 8cca1d4
- refactor: update exception message occurred during Model.refresh d050ecc
- refactor: pass relationship data to profiler 84761e6
- refactor: remove _ prefix from all private properties c925b45
- fix: export relations type definition 2785397
- chore: update dependencies 98907df
- chore(release): 7.3.2 f0b5469
- fix: constructor injection parameters 3e4d27e
- chore(release): 7.3.1 279d7a5
- fix: commands to use correct constructor arguments for ace base command b92fb8e
- chore(release): 7.3.0 fd04708
- chore(package): update dependencies 4880dde
- docs: add roadmap file a91563f
- feat: add save, attach and detach methods to manyToMany relationship b3e628e
- feat: add query client to all relationships 392951d
- refactor: rewrite preloader to be more reliable 8ad50e7
- refactor: re-arraging arguments position of relations query builder fcc5fb5
- feat: pass application logger to knex c0e6c9e
- refactor: cleanup for making relationships and their types more consistent e3aaaee
- feat: add updateOrCreate to hasOne and hasMany 83cffd3
- refactor: rename firstOrSave to firstOrCreate 6ec9c2d
- feat(BaseModel): add updateOrCreateMany to avoid creating duplicate rows 7c24bdc
- refactor: consistently reflect query options on the model instances 45ea50e
- feat(BaseModel): add fetchOrNewUpMany and fetchOrCreateMany methods 7e2cb19
- test: fix failing tests e1e38b6
- test: add more assertions to cover edge cases ce286dc
- feat(relationships): add create and createMany methods e2a662c
- feat: add support for extending query builders 1fb858d
- chore: ignore tmp directory 329e961
- feat(relations): push relationships preloads using model instance 82c4cfb
- fix: define relationship type on hasManyThrough relationship b9b4b40
- feat: add method 2096de6
- fix(manyToMany): attach method now updates pivot rows when attributes are defined 209dff3
- fix: always resolve adapter key from static methods 08954b2
- fix(schema): schema.now must return knex query builder instance 439902c
- style: use eslint and remove tslint beac752
- chore: update dependencies ede5fad
- refactor: nested columnify options inside config key bc01d4a
- fix(BaseModel): ensure we are saving when creating (#504) b22bd21
- fix(MigrationSource): skip sourcemap files (#503) c670cc3
- chore(release): 7.2.1 67814b4
- fix(migrator): use the correct batch number when no batch is defined during rollback 7e8532a
- refactor: improve visual outlook of
migration:status
command 85755bb - fix(MigrationSource): use appRoot for reading migrations 15c81ec
- fix: register correct paths to ace commands 3c28b83
- chore(release): 7.2.1-0 37b2dc0
- chore: publish commands 081a613
- chore(release): 7.2.0-0 7a7afc3
- refactor: accept custom return types for model and relation query builders 06c7110
- fix(types): QueryBuilder.with accepts sub query builder instances as well 5323b2d
- fix(adapter): use adapter key when consuming insert returning results fe12d66
- chore: remove linter await promise rule 8d8c697
- chore: update dependencies e995dcb
- chore: setup providers and commands instructions inside package file f902bc2
- feat: add status command c808258
- feat: add rollback command 82a8d53
- feat: add migrate command a0c49d3
- refactor(Migrator): Include a complete trace of migrated files and their respective status 6ffacc9
- feat: add make migration command 56efe6e
- chore: update dependencies 26d1e4c
- refactor: add option to close all db connections from the migrator 67d9b22
- fix: handle esm exports when requiring migrations f7a30af
- test: fixing tests helpers to make tests pass 124044c
- refactor: remove primaryAdapterKey in favor of using $refs for looking up cast keys a899390
- feat: add refresh method to refresh model instances 351abc8
- fix: pass transaction client from query builder to model instance 312e8b3
- chore(release): 7.1.7-0 42adc45
- fix: use correct query constructs for truncating table 748a678
- fix: use primaryAdapterKey when adding where or returning constraints 7b6f9bb
- chore: update dependencies 3338229
- feat: export schema from the provider 31ae9eb
- refactor: removing debug flag from test config 9f24298
- feat: implement sync and detach methods on many to many query builder f09286c
- feat(migrator): add getList method to get list of migrated files eac2405
- test: fix failing tests 06f9fa6
- chore: update dependencies 0fcb36e
- chore: update dependencies 7723c11
- feat: implement migrator to execute schema files 0d05dc0
- feat: add schema class to create/modify tables under migrations f872397
- feat: add support for getting advisory locks with pg, mysql and mariadb e424d1f
- feat: implement updateOrCreate b957c6e
- chore(release): 7.1.6-0 28c20bf
- feat: add support for model hooks f6c7f71
- test: fix failing tests 0f6fea6
- feat: export Refs type to generate a key/value pair of model properties and adapter keys 046e5c2
- feat(basemodel): compute refs from the added columns d462a1a
- feat: add support for updating/deleting related rows using query builder f801e38
- feat(model): implement update,delete and counter methods to model query builder 912f7e1
- refactor: moving aggregate functions to chainable query builder 9b48d5f
- refactor: ignore mysql dialect returning warning 7ab7f17
- refactor: do not have defaults for relationships, let the end user define them eac50c7
- feat(belongsTo): implement dissociate dddcb4d
- refactor: supress returning warning for mysql dialect a34563f
- refactor: get rid of lodash 768f704
- refactor: simplify types c0ef456
- chore: update dependencies 8b7c824
- feat: adding support to save related models f2f385c
- test: add tests for relation query builder fetched using related method a7aa2d0
- feat: pass sideloaded values to preloaded relationships 5b8d935
- refactor: simply API to get-set model $options 29c3d6e
- feat: creating dedicated query builders for all relationships 156073a
- refactor: use wherePivot methods 2f5f588
- feat: add pivot where clauses to many to many relationship query builder 752e88e
- chore: remove tmp dir ae331c3
- feat: add support for preloading using model instance 8d8cfd1
- chore: update dependencies f8b4147
- refactor: making improvements to has many through decorator function 4bb4ff5
- chore(release): 7.1.5-0 42b08ec
- fix(belongsTo): use correct FK for the query 416d7b2
- chore(release): 7.1.4-0 48f2cd2
- test: fix failing tests bb9276a
- refactor: Abstract preloading logic to it's own class ae6a4e2
- feat: implement has many through 374c0b2
- feat: add many to many relationship 25ce9c7
- fix: lazy boot relationships for circular dependencies to work fine 6593b38
- test: add another use case test for hasMany 91e969c
- fix(belongsTo): set related many set correct relationships d3db798
- chore(release): 7.1.3-0 aa87408
- chore: add healthCheck property in config template 34f6f92
- refactor: export relationship decorators from provider 5240745
- feat: implement belongsTo relationship 3c541db
- feat: implement hasMany relationship ff24e55
- refactor: tighten up preloads api 0171d0b
- refactor: cleanup tests to avoid creating too many connections 1332b97
- feat: model insert,update and delete now allows using transactions 17916e0
- refactor(transaction): use events instead of hooks a3510f8
- feat(transaction): add support for before and after commit/rollback hooks b6f2b3e
- test: fix breaking tests b05aeea
- refactor: ask query builder to return the profiler action 8a2129e
- feat: adding static find methods ec146ad
- feat(baseModel): adding serialize to offload work from toJSON method 9035661
- refactor: remove nullable from columns and add serialize property 6259c52
- refactor: fix breaking test 1029bb2
- feat: add healthchecks support b604001
- feat(config): add support for optional config revisions 1acd888
- refactor: marking certain properties readonly d99d1ea
- feat(manager): add support for patching connection config a832f15
- refactor: manager.add now acts as a noop for existing connection cf4f1f8
- fix: order of event arguments on the connection class 9613b62
- refactor: change idle state to registered to be more accurate 69c4ef3
- refactor: restructure tests and fix typings reference path in source code 0b93d2d
- refactor: adding new static methods for querying on the model 4f04995
- refactor: improving relationships API 9b881c7
- feat: add support for nested preloads 6e19421
- feat: restructure and implement hasOne f0ac782
- refactor: export computed decorator d6da327
- chore: update dependencies b70b7a5
- chore(release): 7.1.2-0 a9b60fb
- feat: adding support for defining query options and sideloaded properties fcf4365
- ci: removing environment flag f144b3b
- test: update .env file a9e1fbf
- fix: wrap query results for sqlite driver as well 4dd6ed2
...
Fixes for v7.3.1
- fix: constructor injection parameters 12b75bb
Fixes for v7.3.0
- fix: commands to use correct constructor arguments for ace base command e0e48bf
Cleaning up internals
- chore(package): update dependencies c58d691
- docs: add roadmap file 3eac2ff
- feat: add save, attach and detach methods to manyToMany relationship 55690e6
- feat: add query client to all relationships 13e03c8
- refactor: rewrite preloader to be more reliable 6da25dd
- refactor: re-arraging arguments position of relations query builder bf8a44c
- feat: pass application logger to knex 693f911
- refactor: cleanup for making relationships and their types more consistent fb3795e
- feat: add updateOrCreate to hasOne and hasMany 61e7d7c
- refactor: rename firstOrSave to firstOrCreate 90e6e02
- feat(BaseModel): add updateOrCreateMany to avoid creating duplicate rows d5a2cba
- refactor: consistently reflect query options on the model instances 631cb01
- feat(BaseModel): add fetchOrNewUpMany and fetchOrCreateMany methods daac9b7
- test: fix failing tests 2c7ecab
- test: add more assertions to cover edge cases b6e455e
- feat(relationships): add create and createMany methods 0b8f13d
- feat: add support for extending query builders 33f4eb2
- chore: ignore tmp directory 91c60e7
- feat(relations): push relationships preloads using model instance 39375fd
- fix: define relationship type on hasManyThrough relationship c841331
- feat: add method ab9cec4
- fix(manyToMany): attach method now updates pivot rows when attributes are defined 43c129e
- fix: always resolve adapter key from static methods ee94a39
- fix(schema): schema.now must return knex query builder instance 22b7fed
- style: use eslint and remove tslint 49fd215
- chore: update dependencies ddca098
- refactor: nested columnify options inside config key ea7039f
- fix(BaseModel): ensure we are saving when creating (#504) 48351eb
- fix(MigrationSource): skip sourcemap files (#503) 1d0ba18
Implementing migrations
- fix: use correct query constructs for truncating table 8be74bc
- fix: use primaryAdapterKey when adding where or returning constraints 7c544c5
- chore: update dependencies 19b21f3
- feat: export schema from the provider 4675bc2
- refactor: removing debug flag from test config adc5c8e
- feat: implement sync and detach methods on many to many query builder 0a4f4fc
- feat(migrator): add getList method to get list of migrated files b73b4c1
- test: fix failing tests 1cc797b
- chore: update dependencies 45be272
- chore: update dependencies 27da4dd
- feat: implement migrator to execute schema files 1c95b65
- feat: add schema class to create/modify tables under migrations ba751e6
- feat: add support for getting advisory locks with pg, mysql and mariadb 3c3b8ca
- feat: implement updateOrCreate e154891
Bug fixes after the last release
Publishing commands to npm
- chore: publish commands cbad436
Adding support for migrations
- refactor: accept custom return types for model and relation query builders 51be91a
- fix(types): QueryBuilder.with accepts sub query builder instances as well f02df80
- fix(adapter): use adapter key when consuming insert returning results 24634ae
- chore: remove linter await promise rule 5e25aa7
- chore: update dependencies 8cefeba
- chore: setup providers and commands instructions inside package file f5e7fbd
- feat: add status command 471b44d
- feat: add rollback command 8d1c946
- feat: add migrate command 1cb0491
- refactor(Migrator): Include a complete trace of migrated files and their respective status b3af184
- feat: add make migration command 0bfd8e0
- chore: update dependencies d865453
- refactor: add option to close all db connections from the migrator 34eba39
- fix: handle esm exports when requiring migrations 6349508
- test: fixing tests helpers to make tests pass 2751527
- refactor: remove primaryAdapterKey in favor of using $refs for looking up cast keys 3334888
- feat: add refresh method to refresh model instances aaf7d38
- fix: pass transaction client from query builder to model instance 2851a21
Lots of new additions to the models API
- feat: add support for model hooks fee7c50
- test: fix failing tests cad26ca
- feat: export Refs type to generate a key/value pair of model properties and adapter keys 7567c3a
- feat(basemodel): compute refs from the added columns dc79df7
- feat: add support for updating/deleting related rows using query builder 212b5e9
- feat(model): implement update,delete and counter methods to model query builder 632ea1d
- refactor: moving aggregate functions to chainable query builder ebf6807
- refactor: ignore mysql dialect returning warning dbd179f
- refactor: do not have defaults for relationships, let the end user define them 6496e70
- feat(belongsTo): implement dissociate 2e18430
- refactor: supress returning warning for mysql dialect b51d0af
- refactor: get rid of lodash a4501ee
- refactor: simplify types 118391e
- chore: update dependencies bac1467
- feat: adding support to save related models 1d5814e
- test: add tests for relation query builder fetched using related method a945937
- feat: pass sideloaded values to preloaded relationships 92c10de
- refactor: simply API to get-set model $options 4fcc600
- feat: creating dedicated query builders for all relationships 564432a
- refactor: use wherePivot methods 84d7928
- feat: add pivot where clauses to many to many relationship query builder dfe1b28
- chore: remove tmp dir 4cc757e
- feat: add support for preloading using model instance c6e2f31
- chore: update dependencies 726762d
- refactor: making improvements to has many through decorator function d79b7ea
Fixing FK issue with Belongs To relationship
- fix(belongsTo): use correct FK for the query 0f55910