ac_bcp47 0.4.0 copy "ac_bcp47: ^0.4.0" to clipboard
ac_bcp47: ^0.4.0 copied to clipboard

BCP-47 related types with parsing, formatting, canonicalization and format validation.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.4.0 - 2026-04-05 #

Fixed #

  • Bcp47LanguageTag.parse now uses typed catch (e) { if (e is! ArgumentError) rethrow; } instead of catch (_) {}, preventing silent swallowing of genuine runtime errors.
  • kIrregularTags and kRegularTags replaced with explicit const <String>[...] list literals.

Changed #

  • Bcp47Subtags changed from Iterable<String> to List<String>.
  • Bcp47GrandfatheredTag.irregular changed from late final to final (computed inline).
  • Bcp47Lookup and Bcp47Validator members promoted to top-level functions; deprecated class wrappers retained for backward compatibility.

0.3.0 - 2026-03-28 #

Fixed #

  • Fix == and hashCode in Bcp47LanguageTagMixin to use structural, case-insensitive comparison (was identity-based, causing map/set lookups to fail).
  • Fix Bcp47BasicLanguageRange.parse to accept single-subtag ranges (e.g. 'en', 'de').

Changed #

  • Update IANA registry data (registry date 2025-08-25, latest record 2024-12-12).

Added #

  • Add Bcp47Lookup with basicFilter, extendedFilter, and lookup (RFC 4647 §3.3 and §3.4).
  • Add Bcp47LangTag.copyWith for type-safe field replacement.
  • Add /// doc comments to all public API members.

0.2.3 #

  • Upgrade ac_lints package to 0.4.0

0.2.2 #

  • Upgrade ac_lints package to 0.3.0

0.2.1 #

  • Update LICENSE's copyright to include contributors
  • Widen SDK environment requirement to include Dart 3 versions
  • Upgrade ac_essentials package to 0.2.1
  • Upgrade ac_lints package to 0.2.0

0.2.0 #

  • Minor changes

0.1.0 #

  • Initial release
1
likes
160
points
317
downloads

Documentation

API reference

Publisher

verified publisheranthonychampagne.fr

Weekly Downloads

BCP-47 related types with parsing, formatting, canonicalization and format validation.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

ac_dart_essentials, collection, meta

More

Packages that depend on ac_bcp47