Skip to content

chore: Update version for release #32

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 1 commit into from
Mar 6, 2025
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 25, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@obosbbl/validation@0.3.0

Minor Changes

  • 1dfc896: add method no/validateNationalIdentityNumber()

    Validates that the input is a valid Norwegian national identity number (either a fødselsnummer or a D-nummer).
    It validates the checksum and checks if the date of birth is valid.

    import { validateNationalIdentityNumber } from "@obosbbl/validation/no";
    
    // Fødselsnummer
    validatePersonalIdentityNumber('21075417753') // => true
    
    // D-nummer
    validatePersonalIdentityNumber('53097248016') // => true
    
  • 2491f32: add method se/validateNationalIdentityNumber()

    Validates that the input is a valid Swedish national identity number (either a personnummer or a samordningsnummer).
    It validates the checksum and checks if the date of birth is valid.

    It supports both short (10 digits) and long (12 digits) formats, with a separator if the allowFormatting option is set to true.

    import { validateNationalIdentityNumber } from "@obosbbl/validation/se";
    
    // short
    validatePersonalIdentityNumber('YYMMDDXXXX') // true
    
    // short with separator
    validatePersonalIdentityNumber('YYMMDD-XXXX', { allowFormatting: true }) // true
    
    // long
    validatePersonalIdentityNumber('YYYYMMDDXXXX') // true
    
    // long input, validate short format
    validatePersonalIdentityNumber('YYYYMMDDXXXX', { format: 'short' }) // false
    

Patch Changes

  • b1c13ed: add checksum validation of Swedish organization numbers. Previously we only checked the length of the number.

@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from 8fbac5c to 4a96ace Compare March 5, 2025 18:43
@github-actions github-actions bot force-pushed the changeset-release/main branch 2 times, most recently from f7d438c to 1926955 Compare March 6, 2025 07:05
@github-actions github-actions bot force-pushed the changeset-release/main branch from 1926955 to a840444 Compare March 6, 2025 07:29
@alexanbj alexanbj merged commit 904a69f into main Mar 6, 2025
@alexanbj alexanbj deleted the changeset-release/main branch March 6, 2025 11:26
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.

1 participant