Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump kong-lapis from 1.14.0.3 to 1.16.0.1 #12064

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

bungle
Copy link
Member

@bungle bungle commented Nov 20, 2023

Summary

v1.16.0 – November 2 2023

Additions
  • lapis.validate.types — Add types.params_map validation type, the params compatible variant of types.map_of
Changes
  • model:update will now only assign the update object to the model instnance if the update completes successfully
  • model:update support the returns option to control the RETURNING clause of the generated query
  • model:update when timestamps are enabled, the generated updated_at value is assigned to the model instance
Fixes
  • lapis.validate.types — Fix bug where types.params_shape would not return the state object
  • model:update will avoid storing db.raw values on passed as update object to the model instance if the update does not complmete successfully

v1.15.0 – October 6 2023

Additions
  • Model:include_in can now use computed keys to dynamically calculate a foreign key value by applying a function to each passed in object to load. This can be done by specifying a function instead of a field name when defining the column mapping table
  • Relations can use compured keys where appropriate by passing a function instead of a field name when defining the column mapping table
  • lapis.validate.types — add types.params_array for validating an array of objects with a common shape
  • lapis.validate.types — add types.flatten_errors for error output compatibility with tableshape
  • lapis.validate.types — types.params_shape can now accept numerical names for fields for validating array like objects with a fixed number of entries
  • lapis generate — Rockspec generator can now specify --moonscript and --cqueues to automatically append dependencies
  • lapis migrate — Add the --dry-run flag to to run all pending migrations in a transaction that is never commited. (Note: in some databases, there are queries that can not be rolled back)
Misc
  • Various updates to documentation
  • Fix error message for types.truncated_text

Checklist

- [ ] The Pull Request has tests

### Summary

#### v1.16.0 – November 2 2023

##### Additions

- lapis.validate.types — Add types.params_map validation type, the params compatible variant of types.map_of

##### Changes

- model:update will now only assign the update object to the model instnance if the update completes successfully
- model:update support the returns option to control the RETURNING clause of the generated query
- model:update when timestamps are enabled, the generated updated_at value is assigned to the model instance

##### Fixes

- lapis.validate.types — Fix bug where types.params_shape would not return the state object
- model:update will avoid storing db.raw values on passed as update object to the model instance if the update does not complmete successfully

#### v1.15.0 – October 6 2023

##### Additions

- Model:include_in can now use computed keys to dynamically calculate a foreign key value by applying a function to each passed in object to load. This can be done by specifying a function instead of a field name when defining the column mapping table
- Relations can use compured keys where appropriate by passing a function instead of a field name when defining the column mapping table
- lapis.validate.types — add types.params_array for validating an array of objects with a common shape
- lapis.validate.types — add types.flatten_errors for error output compatibility with tableshape
- lapis.validate.types — types.params_shape can now accept numerical names for fields for validating array like objects with a fixed number of entries
- lapis generate — Rockspec generator can now specify --moonscript and --cqueues to automatically append dependencies
- lapis migrate — Add the --dry-run flag to to run all pending migrations in a transaction that is never commited. (Note: in some databases, there are queries that can not be rolled back)

##### Misc

- Various updates to documentation
- Fix error message for types.truncated_text

Signed-off-by: Aapo Talvensaari <[email protected]>
@bungle bungle marked this pull request as ready for review November 20, 2023 18:57
@bungle bungle merged commit 25e0ee7 into master Nov 21, 2023
33 checks passed
@bungle bungle deleted the chore/bump-kong-lapis-1.16.0.1 branch November 21, 2023 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants