Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 6, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
dynamodb-toolbox (source) ^1.14.5 -> ^2.0.0 age adoption passing confidence

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.

@chrisbbreuer chrisbbreuer merged commit c7b51a1 into main Mar 17, 2025
2 of 3 checks passed
@renovate renovate bot deleted the renovate/dynamodb-toolbox-2.x branch March 17, 2025 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants