Releases: adonisjs/lucid
Releases · adonisjs/lucid
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
Adding many to many and has many through relations
- test: fix failing tests bcaa619
- refactor: Abstract preloading logic to it's own class 61e6e04
- feat: implement has many through 4d0121f
- feat: add many to many relationship c59d90e
- fix: lazy boot relationships for circular dependencies to work fine 0e2116d
- test: add another use case test for hasMany 4e27cdf
- fix(belongsTo): set related many set correct relationships 45a60bb
Heck lot of features added
This is big release with handful of additions.
- Added
hasOne
,hasMany
andbelongsTo
relationships - Added support for defining dynamic connections in model queries.
- Added support for preloading relationships
- Added support for registering dynamic connections with Database manager
Commits
- chore: add healthCheck property in config template 348a547
- refactor: export relationship decorators from provider b6c5df2
- feat: implement belongsTo relationship 1df4d21
- feat: implement hasMany relationship 5371f88
- refactor: tighten up preloads api bad608c
- refactor: cleanup tests to avoid creating too many connections f6f0691
- feat: model insert,update and delete now allows using transactions 72dcabe
- refactor(transaction): use events instead of hooks 2b04b85
- feat(transaction): add support for before and after commit/rollback hooks ad65a1a
- test: fix breaking tests d32f9f0
- refactor: ask query builder to return the profiler action 43fe9f7
- feat: adding static find methods c7a62f8
- feat(baseModel): adding serialize to offload work from toJSON method be37cfb
- refactor: remove nullable from columns and add serialize property 8009256
- refactor: fix breaking test ec7b8f2
- feat: add healthchecks support 93b01dd
- feat(config): add support for optional config revisions a7a6e76
- refactor: marking certain properties readonly 0c9c632
- feat(manager): add support for patching connection config 3eb11ae
- refactor: manager.add now acts as a noop for existing connection 4650bc5
- fix: order of event arguments on the connection class 2e6c317
- refactor: change idle state to registered to be more accurate cd9d372
- refactor: restructure tests and fix typings reference path in source code 17ed065
- refactor: adding new static methods for querying on the model ee75a1d
- refactor: improving relationships API eb4de43
- feat: add support for nested preloads 1ea384c
- feat: restructure and implement hasOne 992f2fe
- refactor: export computed decorator 66d177e
- chore: update dependencies ecfb96c