-
Notifications
You must be signed in to change notification settings - Fork 129
[2.4.0 stack 18/18] Review rounds 3 to 5: holidays, date-fns business days, capitalize defaults, currency, words, CEP typed errors, subpath types, citations #520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
99 commits
Select commit
Hold shift + click to select a range
09408b1
feat(cnae,ncm): add the pad option to formatCnae and formatNcm
hyanmandian 4645f54
fix(holidays): add the GO and DF state entries, end PB 26/07 in 2015 …
hyanmandian 7cb4fed
test(runtime): honour the vitest mockClear semantics and rethrow matc…
hyanmandian 688359f
feat(business-days): follow the date-fns signatures and add subBusine…
hyanmandian 898186f
fix(registro-profissional): read T and S as transfer suffixes after t…
hyanmandian 3710dfa
test(ie): pin the 38 SINTEGRA worked examples and the prototype-key s…
hyanmandian e9e8eba
refactor(municipality): keep collapsing whitespace runs in name looku…
hyanmandian b6cb522
feat(capitalize): keep company designations, roman numerals and state…
hyanmandian c9f5a5e
fix(currency): coerce a non-string value without throwing and read th…
hyanmandian e10f878
refactor(words): always return lower case, drop the case option
hyanmandian 6f2b2e8
feat(types): export the public types from the subpath entries
hyanmandian 40563db
ci(tree-shaking): fail the job when the base measurement fails
hyanmandian 01b7d32
docs: cite the annexes, decrees and manuals behind the identifiers an…
hyanmandian 033d6bd
fix(municipality): return a fresh pair and overload the return type o…
hyanmandian f0abf92
ci(datasets): validate both bank outputs before writing either file
hyanmandian 89cb3d5
fix(holidays): move the Santa Catarina state holidays to Sunday per t…
hyanmandian e935499
docs: describe the acervo codes of art. 473, the arrecadação result a…
hyanmandian 03e5c11
fix(business-days): return false from isBusinessDay for a non-string …
hyanmandian edf4577
fix(types): re-export the option and state types from the calendar an…
hyanmandian 02bd64f
fix(cep): reject with the typed errors for a bad providers list, a mi…
hyanmandian aeef62c
fix(email): cap the final domain label at 63 letters
hyanmandian ee2f02b
fix(boleto): keep the fator de vencimento inside the first cycle for …
hyanmandian cfc5ed0
fix(service-phone): drop 112 and 911 and add 141 per the Anatel Ato 4…
hyanmandian 7d23f3a
fix(nfe-key): return an empty string from formatNfeKey for a value th…
hyanmandian 40bc6a8
fix(cst): accept a separator only after the origin digit
hyanmandian c16f096
fix(pix): reject a dynamic payload that carries a Pix Saque facilitator
hyanmandian f7eb3bb
fix(caepf): reject a repeated base like CEI and CNO do
hyanmandian fac0769
fix(cns,cei): accept a run of separators like the other document formats
hyanmandian 95f1958
refactor(format): read the obfuscate option truthily like pad
hyanmandian af8a8bd
ci(datasets): reject a zero bank code and parse the NCM dates strictly
hyanmandian 75f875d
ci(release): hide the CI and build sections from the changelog
hyanmandian b86b153
test: pin the published worked examples and the boleto moeda leniency
hyanmandian 1d3aeb0
docs: cite the acts and ajustes behind the fiscal and calendar utilities
hyanmandian 4d44ec4
fix(types): re-export the bank and state types from the eight subpath…
hyanmandian 1a27003
fix(package): resolve the subpath declarations under moduleResolution…
hyanmandian da567b5
ci(tree-shaking): treat any unexpected exit code as a comparison failure
hyanmandian 811cb10
feat(cep): declare the unidade, estado and regiao fields of the ViaCE…
hyanmandian eee5e88
test(business-days): pin the non-string state code rejection for an a…
hyanmandian e35bc22
docs: describe every option used in the examples and correct the rema…
hyanmandian ddf63fc
ci(tree-shaking): mark a missing build as a comparison failure and de…
hyanmandian 68bc902
docs: put every cited URL on its own citation line and fill the thin …
hyanmandian 1397171
ci(datasets): decode entities and require a complete CFOP annex befor…
hyanmandian 1882ed8
test(cep): skip the live Widenet check while the service is offline
hyanmandian 882cf95
docs(cep): say a CEP that starts with 0 has to be a string when given…
hyanmandian 6d47c14
fix(words): write the groups the way the official texts do, without c…
hyanmandian 214da0d
fix(csosn): read only the bare 3 digits, the code has no printed grou…
hyanmandian 3600310
docs(business-days): name the includeOptional and stateCode options i…
hyanmandian 33e27be
feat(cnpj): accept a branch number in generateCnpj
hyanmandian e46aa21
feat(renavam): add generateRenavam
hyanmandian defbdf8
feat(legal-nature): expose the CONCLA category and add getLegalNature…
hyanmandian af21b77
feat(phone): accept 7 and 8 as mobile first digits under version 2
hyanmandian 77cf05b
ci: reference the setup action with the self-repository syntax
hyanmandian e879cb4
docs: state the measured isValidCpf size and fix two comments in the …
hyanmandian b928819
fix(format): never throw on a value without a string conversion
hyanmandian e676688
feat(format): mask the new formatters progressively like formatCpf an…
hyanmandian 5ef48fd
fix(lookups): read a code the same way whether it comes as a string o…
hyanmandian 0e38f5e
fix(validators): accept the CPF mask separators at the printed groups…
hyanmandian 58d561b
fix(api): align the new utils with the library conventions
hyanmandian 2bc3a09
refactor(api): name the structured readers get*Info, as getBoletoInfo…
hyanmandian 72856eb
fix(area-codes): return regionName and regionCode from getAreaCodeInf…
hyanmandian c2dfcfa
feat(parse): add the mask-stripping parse function of every new family
hyanmandian 6d3bd15
refactor(format): drop the nullish guards the safe sanitizer made red…
hyanmandian d892765
refactor(caepf): read the value through the safe sanitizer instead of…
hyanmandian d313bcc
docs(municipalities): deprecate getCities and getMunicipality in favo…
hyanmandian a941076
test(business-days): keep the never-throw walk of differenceInBusines…
hyanmandian 154644b
feat(capitalize): break words at apostrophes and touching punctuation…
hyanmandian 110bc12
fix(processo-juridico): check the órgão and tribunal codes against Re…
hyanmandian 7565d3d
fix(capitalize): keep the English possessive, single-letter designato…
hyanmandian ca8d37d
fix(generate): never throw on a prototype key or an object without to…
hyanmandian 5c8a9d4
docs(words): cite the articles of Lei 14.822/2024 that carry each spe…
hyanmandian 8cb0a29
fix(types): keep the @deprecated tag of the 2.3.0 aliases in the decl…
hyanmandian 0ed0edb
build(api): commit the API Extractor baseline so check:api fails on a…
hyanmandian 8368612
build(data): make an unchanged Bacen list a no-op and format before t…
hyanmandian 4e087c9
build(package): ship CHANGELOG.md in the tarball
hyanmandian 6a33dea
docs: final pass before the release
hyanmandian d37ffb5
build(deps): update the toolchain to TypeScript 7 and the latest devD…
hyanmandian 5b39a10
refactor: replace the three recursions with loops
hyanmandian d048c01
fix(holidays): cite each state holiday's law and name the Consciência…
hyanmandian b96ef0e
refactor(types): name the sole-argument object types Params and accep…
hyanmandian bb52cda
feat(legal-nature): mark the eight retired codes as legacy with their…
hyanmandian 85d7a2e
fix(license-plate): fall back to the default format instead of using …
hyanmandian f7922c7
feat(banks): keep the codes that left the Bacen list as legacy banks
hyanmandian f77c7ad
refactor: simplify the internals and drop the dead code, output uncha…
hyanmandian 4613b6d
fix(lookups): read includeLegacy for truthiness in getBanks and getLe…
hyanmandian 8170689
docs: final pass on the docs, README, package metadata and GitHub files
hyanmandian 27581f2
fix(capitalize): write ME as the pronoun after a hyphen and before a …
hyanmandian 8a2a38e
fix(scripts): keep a retired bank code legacy when the dataset falls …
hyanmandian b5742b6
refactor(banks): list only what the Bacen STR participants list publi…
hyanmandian 6804088
docs: align the README, migration guide, changelog header and release…
hyanmandian 4013eb3
fix(capitalize): read a designation written around a slash as the des…
hyanmandian 2433f90
fix(fetch): reject a retries count that is not an integer
hyanmandian bb7c578
test: run the Deno shim hooks and deep equality without recursion, ad…
hyanmandian 6d0dce2
refactor: share the check digit arithmetic and drop the guards the sa…
hyanmandian aec89a6
fix(municipalities): keep a state code that is not a string out of th…
hyanmandian bb91be4
docs(readme): state the Node.js 24 development requirement, apart fro…
hyanmandian dab9da7
test(deno): compare cyclic values once in the shim's deep equality
hyanmandian 5dd2a97
docs(site): move the docsify site to v5
hyanmandian bffdcd2
docs: group the utilities reference by family
hyanmandian edbc98e
docs: bring the v1 to v2 migration guide up to 2.4.0
hyanmandian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Code owners for this repository. | ||
| # | ||
| # @hyanmandian is the sole maintainer, so one catch-all rule covers everything. | ||
| # GitHub requests a review from the owner on every pull request that touches a | ||
| # matching path; combined with "Require review from Code Owners" in the branch | ||
| # protection rules for `main`, it makes that review mandatory. | ||
|
|
||
| * @hyanmandian |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # actionlint 1.7.12 does not know GitHub's self-repository `uses: $/...` syntax yet | ||
| # (https://github.com/rhysd/actionlint/issues/711); zizmor's self-repository audit and the GitHub | ||
| # docs recommend it over the workspace-relative `./...` form. Drop this once actionlint supports it. | ||
| paths: | ||
| .github/workflows/**/*.yml: | ||
| ignore: | ||
| - 'specifying action "\$/\.github/actions/setup" in invalid format because ref is missing' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.