Skip to content

Releases: adonisjs/lucid

Remove columnify and use cli table 3

01 Mar 08:42
Compare
Choose a tag to compare

We are using cli-table3 in place of columnify, since it is used by other AdonisJS packages

  • chore: upgrade @adonisjs/core 07d67a4
  • chore: update @adonisjs/core and tweak health check report d89e2a6
  • refactor: remove columnify in favor of cli-table3 dceebb6

v7.5.4...v7.5.5

Fix formatting for some log messages

29 Feb 07:38
Compare
Choose a tag to compare
  • style: remove unwanted style from log statements 7375ae4
  • chore: update dependencies c3b915e
  • docs(readme): update badges a16306f
  • docs(readme): update description c27799a

v7.5.3...v7.5.4

Improve truncate method and rename .raw to .rawQuery

28 Feb 04:42
Compare
Choose a tag to compare
  • feat: add truncate method to base model 8bdb7d4
  • feat: add cascade support to truncate methods 5c678af
  • refactor: config stub enable debugging when log level is trace 6a22a17
  • style: remove _ from private properties 084345e
  • feat(commands): print preview message when running migrations commands 687c145
  • refactor: rename raw to rawQuery, preserving .raw for future 27184fd
  • fix(QueryClient): columnsInfo method must use knexQuery.table method 57c56b7
  • chore(package): update dependencies ccc2e46

v7.5.2...v7.5.3

Fix aggregate queries for relationships

18 Feb 14:26
Compare
Choose a tag to compare
  • fix(relations): generate correct sql queries for related aggregate queries 3ee025a

v7.5.1...v7.5.2

Remove timezone option from per column settings and handful of bug fixes

17 Feb 15:05
Compare
Choose a tag to compare
  • refactor: remove timezone configuration from individual fields fd91b32
  • feat(BaseModel): merge and fill ignore undefineds by default, with an option to disable behavior 2a4ea4b
  • fix(query builder): where clause check for undefined values when decided which arguments to use 60f2600
  • chore: update dependencies 7c68ec9

v7.5.0...v7.5.1

Adding support for date times

09 Feb 16:24
Compare
Choose a tag to compare
  • fix: breaking tests across dialects 53c4ec2
  • feat: add option to disable migration rollback in production 5239d9f
  • feat: add support for defining date and datetime columns 28a26ca
  • feat: add support for transforming the value when consuming it from db defbb8f
  • refactor: allow meta object in column and computed definitions b93626e
  • refactor: export required interfaces c03d965
  • refactor: cleanup scattered methods to resolve keys in favor of proper keys mapping 385ffe7
  • refactor: add returning clause to insert,update queries regardless of increments boolean f13ada3
  • fix: types for related create/createMany calls fd2451b
  • refactor: do not accept arguments in toJSON method 24334a2
  • fix(preloader): do not run whereIn query when parent rows are empty e4b1cc5
  • fix: do not wrap aggregates result into model instances b7dbf6b
  • fix: ignore fk key null values when preloading belongsTo 81e7972

v7.4.3...v7.5.0

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