fix(deps): update rust crate loco-rs to 0.9.0 #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.1.8
->0.9.0
0.1.8
->0.9.0
Release Notes
loco-rs/loco (loco-rs)
v0.9.0
Compare Source
--html
,--htmx
and--api
flags to scaffold CLI command. #749v0.8.1
Compare Source
v0.8.0
Compare Source
loco new
) now receives options from CLI and/or interactively asks for configuration options such as which asset pipeline, background worker type, or database provider to use.remote_ip
middleware for resolving client remote IP when under a proxy or loadbalancer, similar to the Railsremote_ip
middleware.secure_headers
middleware for setting secure headers by default, similar to how https://github.com/github/secure_headers works. This is now ON by default to promote security-by-default.money
,blob
types to entitie generator.v0.7.0
Compare Source
sqlite
andpostgres
with minimal or no entities code changes (resolved this long standing issue). TZ aware timestamps also aligns us with how Rails works today (initially Rails had a no-tz timestamps, and today the default is to use timestamps). If not specified the TZ is the server TZ, which is usually UTC, therefore semantically this is almost like a no-tz timestamp.A few highlights:
Generated entities will now always use
DateTimeWithTimeZone
for the default timestamp fields:For better cross database provider compatibility, from now on prefer the
tstz
type instead of justts
when using generators (i.e.cargo loco generate model movie released:tstz
)Breaking Changes:
Modify examples/playground.rs
You need to apply two changes here:
a. Update the Function Signature
Before:
After:
b. Adjust the Context Handling
Before:
After:
Note,
If you are using eyre in your project, you can continue to do so. We have only removed this crate from our base code dependencies.
v0.6.2
Compare Source
v0.6.1
Compare Source
v0.6.0
Compare Source
async fn run(&self, app_context: &AppContext, vars: &BTreeMap<String, String>)
toasync fn run(&self, _app_context: &AppContext, _vars: &task::Vars) -> Result<()>
v0.5.0
rc1
->rc4
. #585layer
method. #554Option<serde_json::Value>
to theUserClaims
struct (type changed). #578model::query::dsl::
withmodel::query
.model::query::exec::paginate
withmodel::query::paginate
.PaginatedResponse
struct. Refer to its usage example here.redis
, change toqueue
. #590v0.4.0
loco::prelude
for a smoother import story. IntroducingValidatable
:Refactored type field mapping to be centralized. Now model, scaffold share the same field mapping, so no more gaps like #513 (e.g. when calling
loco generate model title:string
the ability to mapstring
into something useful in the code generation side)NOTE the
_integer
class of types are now just_int
, e.g.big_int
, so that it correlate with theint
field name in a better wayAdding to to quiery dsl
is_in
andis_not_in
. #507Added: in your configuration you can now use an
initializers:
section for initializer specific settingsv0.3.2
v0.3.1
Needs to update
sea-orm
crate to usev1.0.0-rc.1
version.loco_extra
crate to share common basic implementations. #425SqlxMySqlPoolConnection
in db.rs. #411ViewEngine
infrastructure andTera
server-side templates: #389generate model --migration-only
#400cargo loco start
.#402v0.2.3
v0.2.2
v0.2.1
v0.2.0
init_logger
hook insrc/app.rs
for those who want to take ownership of their logging and tracing stack.AppContext
toroutes
Hook. Migration steps insrc/app.rs
:&str
to&Environment
insrc/app.rs
v0.1.9
Added support for compression middleware.
usage:
cargo loco db entities
and show a better error to the user. #212saas and
rest-api` starters a redis and DB in GitHub action workflow to allow users work with github action out of the box. #215created_at
orupdate_at
fields. #214format::render
which allows a builder-like formatting, including setting etag and ad-hoc headers304
if needed. To enable etag in your existing project:usage:
Authentication: Added API Token Authentication!
See #217
Now when you generate a
saas starter
orrest api
starter you will get additional authentication methods for free:Added: authentication added -- api authentication where each user has an API token in the schema, and you can authenticate with
Bearer
against that user.Added: authentication added --
JWTWithUser
extractor, which is a convenience for resolving the authenticated JWT claims into a current user from databasemigrating an existing codebase
Add the following to your generated
src/models/user.rs
:Update imports in this file to include
model::Authenticable
:Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.