6.1.4 • Published 6 months ago

@travelport-czech/valid-objects-ts v6.1.4

Weekly downloads
64
License
MIT
Repository
github
Last release
6 months ago

Valid object helps to convert unknown data to type safe data.

Install

npm install @travelport-czech/valid-objects-ts

Usage

import { createEmailFromUnknown, ValidEmail } from '@travelport-czech/valid-objects-ts' import { ValidEmail } from './ValidEmail'

const unknownEmail: unknown = 'email@email.com'

const email: string = createEmailFromUnknown(unknownEmail).toString()
// or
const email: ValidEmail = createEmailFromUnknown(unknownEmail)

Version release workflow

Version is automatically changed if the master branch is changed

  • Based on the commit messages, increment the version from the lastest release. If the string "BREAKING CHANGE" is found anywhere in any of the commit messages or descriptions the major version will be incremented.
  • If a commit message begins with the string "feat" then the minor version will be increased. This works for most common commit metadata for feature additions: "feat: new API" and "feature: new API".
  • All other changes will increment the patch version.

Publish

npm publish --access public
6.1.2

6 months ago

6.1.1

6 months ago

6.1.4

6 months ago

6.1.3

6 months ago

6.1.0

2 years ago

6.0.7

3 years ago

6.0.6

3 years ago

6.0.3

3 years ago

6.0.2

3 years ago

6.0.5

3 years ago

6.0.4

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.0.4

3 years ago

5.0.2

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.0.30

4 years ago

4.0.32

4 years ago

4.0.26

4 years ago

4.0.28

4 years ago

4.0.24

4 years ago

4.0.2

4 years ago