Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Releases: kodepandai/lunox-framework

v1.7.1

25 Aug 03:15
Compare
Choose a tag to compare

What's Changed

Bug Fixed

  • router: dynamic route not working on windows

Full Changelog: v1.7.0...v1.7.1

v1.7.0

03 Aug 04:46
Compare
Choose a tag to compare

What's Changed

[v1.7.0] - 2022-08-03

Bug Fixes

  • database: model setter run accidentally when read from database
  • database: model cannot update timestamps if fillable array is set

Code Refactoring

  • auth: use Model.save method instead of patch when update remember token

Features

  • client: session helper without params will get all session
  • database: added eloquent model save method
  • database: expose knex transaction to DatabaseManager
  • kernel: added route method override via query
  • session: added flash method to flash data to view

Full Changelog: v1.6.0...v1.7.0

v1.6.0

05 Jul 15:10
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • helpers: get_class_methods cannot collect methods from multiple traits
  • middleware: make sure controller middlewares are excecuted after route middlewares
  • request: merge data to formRequest

Code Refactoring

  • model: rename append to appends

Features

  • build: serve method for serving application after rollup build finished
  • cli: dev command for build application for development without watch
  • model: added hidden attribute for hide attributes from json
  • model: added append attribute for appending custom attribute to external data
  • model: handle get and set attributes
  • model: added fillable and guarded attributes
  • request: introduce FormRequest
  • request: validate input using FormRequest
  • request: get routes data via request sing getRouter method
  • request: get nested input value via dot notation
  • router: support additional route context to 3rd params of addRoute method
  • validation: validate with custom attributes

Performance Improvements

  • view: avoid errors data exposed twice on window._ctx

Full Changelog: v1.5.0...v1.6.0

v1.5.0

14 Jun 12:49
Compare
Choose a tag to compare

What's Changed

Features

  • auth: login via remember token (#14)
  • cookies: introduce CookieJar in request instance to manage cookie
  • middleware: handleAfter method can access httpRequest instance on 2nd argument

Performance Improvements

  • cli: avoid run server before code is compiled

Full Changelog: v1.4.0...v1.5.0

v1.4.0

08 Jun 14:41
Compare
Choose a tag to compare

What Changes

[v1.4.0] - 2022-06-08

Bug Fixes

  • encryption: wrong Exception is thrown when Mac invalid
  • macro: avoid Symbol get called

Code Refactoring

  • controller: callAction method check for better macro support

Features

  • config: read config files from nested folder
  • helpers: added global get_class_methods helper
  • helpers: added Str.studly method
  • view: added method withContext to expose data to onServer context

Full Changelog: v1.3.0...v1.4.0

v1.3.0

03 Jun 03:45
Compare
Choose a tag to compare

What Changes

[v1.3.0] - 2022-06-03

Bug Fixes

  • exception: ViewException not sent errors detail
  • response: redirect response send wrong http status code
  • session: session not synchronized on redirect response
  • session: hide csrf_token from all and old method

Code Refactoring

  • view: server data now exported to window._ctx
  • view: separate entry-server per engine

Features

  • response: redirect response with input except some key
  • router: auto suggest controller method when using class based controller
  • validation: validate method now return only validated inputs
  • view: add csrf-token to html meta
  • view: added client helper to get old input, sessions, and errors validation
  • view: initialize client helpers

Full Changelog: v1.2.2...v1.3.0

v1.2.2

20 May 03:36
Compare
Choose a tag to compare

What Changes

Bug Fixes

  • view: render preload links fail on windows
  • view: cannot resolve react and react-dom on dev mode

Full Changelog: v1.2.0...v1.2.2

v1.2.0

19 May 17:40
Compare
Choose a tag to compare

What's Changed

  • feat(view): add react as template engine by @axmad386 in #13

How To Use

in lunox skeleten app, edit entry-client.ts

import { makeView } from "lunox/dist/entry-client-react.js";
const View = makeView(import.meta.glob("/app/resources/view/**/*.(jsx|tsx)"));
export default View


edit entry-server.ts

import { makeRender } from "lunox/dist/entry-server.js";
export const render = makeRender(
  import.meta.glob("/app/resources/view/**/*.(jsx|tsx)")
);

edit config/view.ts

export default {
  paths: ["/app/resources/view"],
  engine: "react",
};

install react, react-dom, and react-helmet as dependency

done.

Full Changelog: v1.1.1...v1.2.0

v1.1.1

17 May 05:11
Compare
Choose a tag to compare

What Changes

Bug Fixes

  • view: avoid circular dependency and simplify makeRender and makeView api

Full Changelog: v1.1.0...v1.1.1

v1.1.0

14 May 15:42
Compare
Choose a tag to compare

What Changes

Features

  • command: make:controller command has option --lite
  • command: support option with shortcut
  • exception: support render using view on exception handler

Full Changelog: v1.0.0...v1.1.0