Skip to content

Releases: adonisjs/lucid

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

Releasing with Database query builder

02 Sep 14:09
Compare
Choose a tag to compare
Pre-release
  • refactor: add missing dependency for tests to pass 73e021e
  • chore: add np for releases 1cac9bd
  • feat: add instructions file 9ed0bcd
  • chore(package): update dependencies e094a0a
  • chore(package): update dependencies 40d1e23
  • refactor: cleaning up and using traits to keep the code DRY 7465792
  • refactor: scope database class inside it's own directory c83f0be
  • refactor: use unscoped profiler by default 536e83e
  • ci: removing appveyor 4b0272a
  • chore(package): upgrade for knex latest version 25fba81
  • feat: allowing defining mode and profiler for a query client 0896fe2
  • feat: add support for profiling queries c6621ff
  • feat: add database to be the primary API for making queries 2443ce9
  • feat: add support for modes in query clients 069c5aa
  • feat(connection manager): proxy error event 5919bd3
  • refactor: abstract queryclient to it's own class from connection d5a52c0
  • feat: finish query builder with read/write support 80cb80b
  • feat: add support for aggregates in query builder b80da39
  • feat: implement insert query builder 447fda7
  • chore(package): update dependencies e99b202
  • ci: using circleci machine executor for tests e8eac51
  • chore: setup tests using docker compose 4c8df5e
  • refactor: running tests for mysql,pg and sqlite drivers 3542934
  • feat: completing the chainable query builder eab6840
  • feat: add connection manager to manage database connections 7a962a6
  • feat: implement connection class to manage and monitor pool resources 69b366a
  • feat: setup initial typings for database and querybuilder c8713e9
  • feat: setup new project a967c9d
  • refactor: remove old files 9d003db
  • test(mysql): fix failing tests 6cd666d
  • chore(docker): add docker file for local testing 92c5834
  • fix(relations): apply pivotModel scopes on belongsToMany sub queries 6cc7012
  • chore(package): update dependencies 73c1071
  • feat(model): add support for pre-defining timestamp values 5c2b180
  • chore(dependency): update knex (#421) fe5fa00
  • doc(readme): fix typo 7ed4138
  • doc(instructions.md): fix typo 974845e
  • Fix typo in JSDoc (#403) 2646b0c

v6.1.3...v7.0.0-0

Release 3.0.4

14 Aug 21:24
Compare
Choose a tag to compare

Bug Fixes

  • lucid:relations: keep relation output consistent (c74e081), closes #45

Features

  • lucid: add fresh method to grab fresh instance (4d72794)
  • lucid: add static truncate (87f16a2)
  • lucid: add support for fill method (fee8e31)
  • lucid: add support for findByOrFail (2ec6a52)
  • lucid: add support for transactions (59cfa02), closes #43