ReviewOS

also looking at this

stacks/dynamodb-tooling

chore(deps): update dependency dynamodb-toolbox to v2

#21
Merged renovate[bot] wants to merge renovate/dynamodb-toolbox-2.x into main
2 files +1 -1
9 days ago

This PR contains the following updates:

PackageChangeAgeAdoptionPassingConfidence
dynamodb-toolbox (source)^1.14.5 -> ^2.0.0ageadoptionpassingconfidence

Release Notes

dynamodb-toolbox/dynamodb-toolbox (dynamodb-toolbox)

v2.0.0: 🌈

Compare Source

V2

The v2 introduces some big changes in the schema syntax, and enables opting out of the internal entity attribute 🙌 Which makes it easier to migrate to DynamoDB-Toolbox.

Check the migration guide: https://www.dynamodbtoolbox.com/docs/v1/migration-guide

v1.16.3: 🌈

Compare Source

Changes

v1.16.1: 🌈

Compare Source

Changes

v1.16.0: 🌈

Compare Source

Changes

⚠️ SMALL BREAKING CHANGE HERE ⚠️

You should now use the showEntityAttr option instead of the $entity symbol to distinguish items following queries and scans:

BEFORE:

import { $entity } from 'dynamodb-toolbox/table/actions/query'

const { Items = [] } = await queryCommand.send()

for (const item of Items) {
  switch (item[$entity]) {
    case "pokemon":
      // 🙌 Typed as Pokemon
      ...
    case "trainer":
      // 🙌 Typed as Trainer
      ...
  }
}

AFTER:

const { Items } = await PokeTable.build(QueryCommand)
  .entities(TrainerEntity, PokemonEntity)
  .query({ partition: 'ashKetchum' })
  .options({ showEntityAttr: true })
  .send()

for (const item of Items) {
  switch (item.entity) {
    case 'trainer':
      // 🙌 Typed as Trainer
      ...
    case 'pokemon':
      // 🙌 Typed as Pokemon
      ...
  }
}

v1.15.6: 🌈

Compare Source

Changes

v1.15.5: 🌈

Compare Source

Changes

v1.15.4: 🌈

Compare Source

Changes

v1.15.3: 🌈

Compare Source

Changes

v1.15.2: 🌈

Compare Source

Changes

v1.15.1: 🌈

Compare Source

Changes

v1.15.0: 🌈

Compare Source

Changes

v1.14.8: 🌈

Compare Source

Changes

v1.14.7: 🌈

Compare Source

Changes

v1.14.6: 🌈

Compare Source

Changes


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 this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

2 changed files on the files tab, with 0 review threads.

Sign in to comment on this pull request.