Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 1.78 KB

0.35.md

File metadata and controls

69 lines (50 loc) · 1.78 KB

Upgrade 0.34 to 0.35

Change startupjs and all @startupjs/* dependencies in your package.json to ^0.35.

BREAKING CHANGES

@startupjs/recaptcha

  • use checkRecaptcha instead of checkToken
  • use checkDataRecaptcha instead of checkDataToken
  • callback onVerify returns an object instead of a string

startupjs/ui/Popover

  • remove default variant from animateType prop
  • rename slide to opacity in animateType prop

startupjs/ui/Tr

  • remove paddings

startupjs/ui/Th

  • increase horizontal paddings to 16px

startupjs/ui/Td

  • increase horizontal paddings to 16px

@startupjs/ui/Modal

  • Now, the cancel button is always displayed along with the confirm button. If you want display one button use onCancel.

Fonts

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.

@startupjs/auth

  • 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`)
    ])
  }
}