Skip to content

Releases: adonisjs/lucid

Publishing commands to npm

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

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

Adding support for migrations

26 Nov 19:07
Compare
Choose a tag to compare
Pre-release
  • 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

v7.1.7-0...v7.2.0-0

Lots of new additions to the models API

07 Oct 08:33
Compare
Choose a tag to compare
Pre-release
  • 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

v7.1.5-0...v7.1.6-0

Fixing FK issue with Belongs To relationship

03 Oct 07:25
Compare
Choose a tag to compare
  • fix(belongsTo): use correct FK for the query 0f55910

v7.1.4-0...v7.1.5-0

Adding many to many and has many through relations

03 Oct 06:17
Compare
Choose a tag to compare
  • 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

v7.1.3-0...v7.1.4-0

Heck lot of features added

01 Oct 16:13
Compare
Choose a tag to compare
Pre-release

This is big release with handful of additions.

  • Added hasOne, hasMany and belongsTo 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

v7.1.2-0...v7.1.3-0

Adding query builder to the orm

24 Sep 10:26
Compare
Choose a tag to compare
Pre-release
  • feat: adding support for defining query options and sideloaded properties 34bda89
  • ci: removing environment flag 15c0b72
  • test: update .env file 1d051a9
  • fix: wrap query results for sqlite driver as well 290ec66
  • refactor: model query builder subqueries can now access the parent model 9bc3bf1
  • feat: implement orm query builder a72283a

v7.1.1-0...v7.1.2-0

Fixing for the last release

23 Sep 09:51
Compare
Choose a tag to compare
Pre-release
  • fix: attach adapter to the base model 551a7db
  • fix: typings to use generics for returning concrete types 55bb5c5
  • chore: fix database template file ced86b4
  • fix: register typings inside package file 21638b9

v7.1.0-0...v7.1.1-0

Adding support for models

23 Sep 07:57
Compare
Choose a tag to compare
Pre-release

The release contains simplistic support for Active Record models

  • chore: update data-models dependency 13d6f94
  • test: fix failing test with sqlite driver coz of returning method nature ade15a9
  • chore: update dependencies c81a4c4
  • chore: using adonisjs block to define instructions and removing instructions file b6144bb
  • feat: implement basic functionality for the base model aca8ad5
  • refactor: set result same as record initially cd4206f
  • feat: initiate orm 41c4d13

v7.0.1-0...v7.1.0-0

Fixes for the last release

03 Sep 07:29
Compare
Choose a tag to compare
Pre-release

Some of the exports were broken in the last release

  • chore(releases): skip tests before publish 3ab09d1
  • chore: copy templates to build dir 3d43196
  • fix: export default instructions function e33a436
  • fix: default export provider 32fa2c8
  • fix: export public types & interfaces 73cb22c
  • fix: export Database const from typings 5d98712

v7.0.0-0...v7.0.1-0