Skip to content

Releases: adonisjs/lucid

Bug fixes for the adapter and updating dependencies

31 Jan 08:45
Compare
Choose a tag to compare
  • chore: use fake logger during tests b9dd36f
  • chore: update node version inside dockerfile 94c0139
  • chore: update ace version 9c29621
  • fix: adapter use resolveCastKey instead of resolveColumnName ca4b0ff
  • chore: update dependencies 9e330ff

v7.4.2...v7.4.3

Bunch of improvements to the ORM

18 Jan 14:45
Compare
Choose a tag to compare
  • refactor(manyToMany): only select related FK when syncing array of ids fcdd35c
  • feat: adding support for keys resolver in database query builder cde9535
  • feat: add support to cherrypick fields during serilization b476454
  • feat: add individual methods to serialize attributes, relations and compute properties a1382e8
  • refactor: remove $refs in favor of $columns and rename $columns to $columnDefinitions 71ee4c8
  • feat: define relation as a public property on relation query client a8f1383
  • refactor: drop readonly flag from certain static properties 2252ef4
  • feat: accept generics on relationships query 8e8df45
  • chore: update dependencies 4e74c95

v7.4.1...v7.4.2

Exporting OrmConfigContract

13 Jan 04:42
Compare
Choose a tag to compare
  • fix: export OrmConfigContract 5ac5063
  • chore: update dependencies 5e1816c
  • chore: update publish tag 97590bf

v7.4.0...v7.4.1

Re-write in Typescript

12 Jan 07:31
Compare
Choose a tag to compare

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
    ...
Read more

Fixes for v7.3.1

30 Dec 14:16
Compare
Choose a tag to compare
  • fix: constructor injection parameters 12b75bb

v7.3.1...v7.3.2

Fixes for v7.3.0

30 Dec 13:49
Compare
Choose a tag to compare
  • fix: commands to use correct constructor arguments for ace base command e0e48bf

v7.3.0...v7.3.1

Cleaning up internals

30 Dec 10:21
Compare
Choose a tag to compare
  • 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

v7.2.1...v7.3.0

Implementing migrations

22 Oct 09:02
Compare
Choose a tag to compare
Pre-release
  • 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

v7.1.6-0...v7.1.7-0

Bug fixes after the last release

27 Nov 05:53
Compare
Choose a tag to compare
  • fix(migrator): use the correct batch number when no batch is defined during rollback aa3b50b
  • refactor: improve visual outlook of migration:status command 84b7447
  • fix(MigrationSource): use appRoot for reading migrations 0b9e0b0
  • fix: register correct paths to ace commands e016fdc

v7.2.1-0...v7.2.1

Publishing commands to npm

26 Nov 19:09
Compare
Choose a tag to compare
Pre-release

v7.2.0-0...v7.2.1-0