Skip to content

Releases: kiwilan/typescriptable-laravel

v3.1.03

25 Jul 15:51
6fff240
Compare
Choose a tag to compare
  • Fix missing accessors with Eloquent parser engine

v3.1.02

25 Jul 15:21
0776a42
Compare
Choose a tag to compare
  • Fix isModel() detection, add Illuminate\Foundation\Auth\User for models with Authenticatable trait.
  • Add snakeCaseName property to relations to get count with snake case name.

v3.1.01

25 Jul 14:53
f001991
Compare
Choose a tag to compare
  • Fix RouteListCommand with JSON format
  • Fix } for Routes types

v3.1.0

25 Jul 11:08
061c97c
Compare
Choose a tag to compare
  • Remove options from typescriptable:eloquent, typescriptable:settings and typescriptable:routes because all parameters can be set from config
  • Add eloquent:list to show all Eloquent models
  • Routes are now generated from route:list command
  • Add more tests for routes and settings
  • Add config for routes
    • routes.print_list to print routes.ts file
    • routes.add_to_window to add routes into window to get it from window.Routes (SSR check), routes.print_list must be true
    • routes.use_path to replace routes types names to routes paths

v3.0.0

22 Jul 16:32
aef437d
Compare
Choose a tag to compare

Refactoring with Artisan command show:model

  • typescriptable:models command is now typescriptable:eloquent command (old command still works)
  • Add more tests to valid Eloquent parsing
  • Add mongodb support
  • Add new option into config to handle engine with two options artisan or parser
    • artisan will parse models with Artisan command show:model
    • parser will parse models with internal engine
'engine' => [
  /**
   * `artisan` will use the `php artisan model:show` command to parse the models.
   * `parser` will use internal engine to parse the models.
   */
  'eloquent' => 'artisan', // artisan / parser
],

BREAKING CHANGES

  • Remove database_prefix from config, now database prefix use only native config/database.php

BREAKING CHANGES

  • Change models entry into config to eloquent
- 'models => [
+ 'eloquent' => [
  // ...
],

v2.0.07

14 Jun 06:22
1e7447a
Compare
Choose a tag to compare
  • Fix EloquentPhp::class for \ duplicates
  • Fix EloquentCast::class with UnitEnum and public constants into enum classes

v2.0.06

15 Apr 15:27
411398b
Compare
Choose a tag to compare

Fix window.Routes from routes.ts auto-generated file

v2.0.05

15 Apr 15:13
dc53c25
Compare
Choose a tag to compare

Fix version

v2.0.04

15 Apr 15:11
1c22c61
Compare
Choose a tag to compare

Add filter on items() to keep only class with inheritance from Model class

v2.0.02

30 Mar 16:59
66a8989
Compare
Choose a tag to compare

Fix window.Routes = Routes for routes.ts