Skip to content

Commit

Permalink
chore: sealed_currencies v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tsinis committed Jan 24, 2025
1 parent 7c44f71 commit 4790c40
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: backup

on:
push:
branches: [main]
branches: [TODO]
paths:
- "packages/**"

Expand Down
14 changes: 13 additions & 1 deletion packages/sealed_currencies/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
## 2.0.1

REFACTOR

- Improved generics handling in localization methods.
- Update and use stable L10N package.

DOCUMENTATION

- Improved documentation and example.
- Fixed typos in the README.

## 2.0.0

🎉 Second anniversary and new major release!

NEW FEATURES

- Introduced new methods for working with common names and common name maps: `commonNamesMap` on ISO collections and `commonNameFor`/`maybeCommonNameFor` on ISO objects. These methods are significantly faster than the old `translations` - related methods because they work directly with locale-specific maps instead of iterating through all translations of each ISO object.
- The `translations` getter is now a computed field. This means it will only generate the translations when they are requested, rather than storing them all in memory. It's recommended to cache the results of the getter to avoid redundant calculations. Because of that - `translation` and `maybeTranslation` methods are no longer recommended for retriving localization data.
- The `translations` getter is now a computed field. This means it will only generate the translations when they are requested, rather than storing them all in memory. It's recommended to cache the results of the getter to avoid redundant calculations. Because of that - `translation` and `maybeTranslation` methods are no longer recommended for retrieving localization data.
- The `commonNamesCacheMap` is deprecated because it relies on the memory-intensive `translations` getter.
- New localization delegates on `IsoTranslated` objects simplify complex queries for object localizations.
- Bool getters on `IsoStandardized` objects can now be applied to null values. For example, `maybeIso.isRub` will return `false` if `maybeIso` is null, without the need for additional null-checks.
Expand Down
1 change: 1 addition & 0 deletions packages/sealed_currencies/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ For more usage examples, please see the `/example` folder.
- **Type-safe**: The contracts and types in this package are exceptionally strong, ensuring that your code is strongly typed and well-defined.
- **High code coverage**: The code in this package has 100% code coverage, with more than 583 (+1534 in underlying packages) tests, providing confidence in its reliability and stability.
- **Comprehensive documentation**: This package provides full documentation for every non-code generated public member, usually with examples, ensuring clarity and ease of use.
- **Lightweight**: This package keeps under 500 KB, ensuring it fits within the pub cache limit. This leads to quick, low-bandwidth downloads and faster caching, minimizing resource impact.
- **Industry adopted**: This package is actively used in production by numerous European companies, ensuring its efficacy and robustness in real-world scenarios.
- **MIT license**: This package and sources are released under the MIT license, which is a permissive license that allows users to use, modify, and distribute the code with minimal restrictions. The MIT license is considered better than most other open-source licenses because it provides flexibility and allows users to incorporate the code into their projects without worrying about legal implications.

Expand Down
6 changes: 3 additions & 3 deletions packages/sealed_currencies/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.0.0
version: 2.0.1
name: sealed_currencies
description: Provides data for world currencies in the form of sealed classes.
maintainer: Roman Cinis
Expand All @@ -23,8 +23,8 @@ environment:
sdk: ^3.6.0

dependencies:
l10n_currencies: ^0.1.0
sealed_languages: ^2.0.0
l10n_currencies: ^1.0.0
sealed_languages: ^2.0.1

dev_dependencies:
_sealed_world_tests:
Expand Down

0 comments on commit 4790c40

Please sign in to comment.