Change startupjs
and all @startupjs/*
dependencies in your package.json
to ^0.35
.
- use
checkRecaptcha
instead ofcheckToken
- use
checkDataRecaptcha
instead ofcheckDataToken
- callback
onVerify
returns an object instead of a string
- remove
default
variant from animateType prop - rename
slide
toopacity
in animateType prop
- remove paddings
- increase horizontal paddings to 16px
- increase horizontal paddings to 16px
- Now, the cancel button is always displayed along with the confirm button. If you want display one button use
onCancel
.
Default font family for Span
and H1-H6
components were changed from Cochin
to
system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif
If you want to use custom fonts read this.
-
Fix save password, hash, salt, unconfirmed in users collection
-
To remove unnecessary data use this code:
async function (model) {
const $users = model.query('users', {
$or: [
{ password: { $exists: true } },
{ confirm: { $exists: true } },
{ hash: { $exists: true } },
{ salt: { $exists: true } },
{ unconfirmed: { $exists: true } }
]
})
await $users.fetch()
for (const user of $users.get()) {
await Promise.all([
model.del(`users.${user.id}.password`),
await model.del(`users.${user.id}.confirm`),
await model.del(`users.${user.id}.hash`),
await model.del(`users.${user.id}.salt`),
await model.del(`users.${user.id}.unconfirmed`)
])
}
}