Skip to content

Releases: PrinsFrank/standards

v3.8.6 "Laukika" and "Vaidika" are now deprecated Language Tag Variants

16 Jun 19:06
efd849d
Compare
Choose a tag to compare

What's Changed

  • Automatic language-subtag spec update by @github-actions in #227

Full Changelog: v3.8.5...v3.8.6

v3.8.5 TLD 'natura' has been unassigned

13 Jun 18:07
d82ef48
Compare
Choose a tag to compare

What's Changed

  • Automatic tld spec update by @github-actions in #226

Full Changelog: v3.8.4...v3.8.5

v3.8.4 Add missing @throw annotations for InvalidArgumentException

12 Jun 22:19
Compare
Choose a tag to compare

This minor release adds missing @throws annotations for InvalidArgumentExceptions

Full Changelog: v3.8.3...v3.8.4

v3.8.3 New Interslavic alpha3-extensive Language, Avianca TLD unassigned

23 Apr 11:40
9f89884
Compare
Choose a tag to compare

What's Changed

  • TLD Avianca is now unassigned by @github-actions in #219
  • Set up PHP in reusable-update-spec by @szepeviktor in #222
  • Fix PHP version constraints by @szepeviktor in #224
  • Click cookie button in CountryMapping by @szepeviktor in #221
  • Automatic language-extensive spec update by @github-actions in #225

Full Changelog: v3.8.2...v3.8.3

v3.8.2 TLD guardian unassigned and new language tag variants

07 Mar 20:57
0fa1a80
Compare
Choose a tag to compare

What's Changed

"guardian" TLD domain got unassigned

  • Automatic tld spec update by @github-actions in #217

New language tag variants: "anpezo", "fascia", "fodom", "gherd", "pehoeji", "tailo" and "valbadia".

  • Automatic language-subtag spec update by @github-actions in #218

Other changes

Full Changelog: v3.8.1...v3.8.2

v3.8.1

08 Feb 12:01
3971c09
Compare
Choose a tag to compare

What's Changed

.comcast and .xfinity Top Level Domains are now not assigned;

  • Automatic tld spec update by @github-actions in #211

Fixes

Full Changelog: v3.8.0...v3.8.1

v3.8.0 Top Level Domain, Script detection for strings and a lot of fixes and improvements!

02 Feb 17:06
f1178f2
Compare
Choose a tag to compare

What's Changed

Introduction of Top Level Domains

There are 6 categories of Top Level Domains, and all of them have been introduced as seperate enums:

CountryCodeTLD::from('nl');                      // CountryCodeTLD::nl
CountryCodeTLD::nl;                              // CountryCodeTLD::nl
CountryCodeTLD::from('nl')->value;               // 'nl'
CountryCodeTLD::from('nl')->name;                // 'nl'
CountryCodeTLD::from('nl')->isAssigned();        // true
CountryCodeTLD::from('nl')->getCountryAlpha2();  // CountryAlpha2::Netherlands
CountryCodeTLD::from('nl')->getCountryAlpha3();  // CountryAlpha3::Netherlands
CountryCodeTLD::from('nl')->getCountryNumeric(); // CountryNumeric::Netherlands

GenericRestrictedTLD::from('name');                // GenericRestrictedTLD::name
GenericRestrictedTLD::name;                        // GenericRestrictedTLD::name
GenericRestrictedTLD::from('name')->value;         // 'name'
GenericRestrictedTLD::from('name')->name;          // 'name'
GenericRestrictedTLD::from('name')->isAssigned();  // true

GenericTLD::from('aaa');                // GenericTLD::aaa
GenericTLD::aaa;                        // GenericTLD::aaa
GenericTLD::from('aaa')->value;         // 'aaa'
GenericTLD::from('aaa')->name;          // 'aaa'
GenericTLD::from('aaa')->isAssigned();  // true

InfrastructureTLD::from('arpa');                // InfrastructureTLD::arpa
InfrastructureTLD::arpa;                        // InfrastructureTLD::arpa
InfrastructureTLD::from('arpa')->value;         // 'arpa'
InfrastructureTLD::from('arpa')->name;          // 'arpa'
InfrastructureTLD::from('arpa')->isAssigned();  // true

SponsoredTLD::from('aero');                // SponsoredTLD::aero
SponsoredTLD::arpa;                        // SponsoredTLD::aero
SponsoredTLD::from('aero')->value;         // 'aero'
SponsoredTLD::from('aero')->name;          // 'aero'
SponsoredTLD::from('aero')->isAssigned();  // true

TestTLD::from('テスト');              // TestTLD::tesuto_katakana
TestTLD::tesuto_katakana;            // TestTLD::tesuto_katakana
TestTLD::from('テスト')->value;       // 'テスト'
TestTLD::from('テスト')->name;        // 'tesuto_katakana'
TestTLD::from('テスト')->isAssigned() // false

Retrieving scripts for strings

It is now possible to retrieve the script(s) for a string:

ScriptAlias::allForString('еюeuеюευ');         // [ScriptAlias::Cyrillic, ScriptAlias::Greek, ScriptAlias::Latin]
ScriptAlias::hasMultipleForString('еюeuеюευ'); // true
ScriptAlias::mostCommonInString('еюeuеюευ');   // ScriptAlias::Cyrillic

ScriptCode::allForString('еюeuеюευ');         // [ScriptCode::Cyrillic, ScriptCode::Greek, ScriptCode::Latin]
ScriptCode::hasMultipleForString('еюeuеюευ'); // true
ScriptCode::mostCommonInString('еюeuеюευ');   // ScriptCode::Cyrillic

ScriptNumber::allForString('еюeuеюευ');         // [ScriptNumber::Cyrillic, ScriptAlias::Greek, ScriptAlias::Latin]
ScriptNumber::hasMultipleForString('еюeuеюευ'); // true
ScriptNumber::mostCommonInString('еюeuеюευ');   // ScriptNumber::Cyrillic

LanguageExtensive has received some updates

  • Automatic language-extensive spec update by @github-actions in #145, #167 and #202

Fixes and Improvements

New Contributors

Full Changelog: v3.7.0...v...

Read more

v3.7.0 Sierra Leone has finished currency transition: Sierra_Leone_Old is now deprecated and not returned by currencyForCountry

01 Jan 13:47
bd6945e
Compare
Choose a tag to compare

What's Changed

  • Sierra Leone has finished currency transition: Sierra_Leone_Old is now deprecated and not returned by currencyForCountry by @github-actions in #130

Other

Full Changelog: v3.6.0...v3.7.0

v3.6.0 Allow configurable subtag separator for LanguageTags/Locales when parsing from string or casting to string

27 Dec 14:38
aff7c5b
Compare
Choose a tag to compare

What's Changed

  • Allow configurable subtag separator when parsing from string or casting to string by @PrinsFrank in #125

Full Changelog: v3.5.0...v3.6.0

v3.5.0 Added '__toString' method to LanguageTag

26 Dec 21:23
06e615c
Compare
Choose a tag to compare

What's Changed

  • Add Stringable/__toString() to LanguageTags (Locales) by @PrinsFrank in #124

Full Changelog: v3.4.0...v3.5.0