Marketto / codice-fiscale-utils

Utility to handle Italian Codice Fiscale
MIT License
24 stars 10 forks source link

fix issue 103 #104

Closed carmelone closed 3 months ago

carmelone commented 8 months ago

Fixes https://github.com/Marketto/codice-fiscale-utils/issues/103.

carmelone commented 7 months ago

@Marketto, do you think it's possible to merge and release this ASAP?

carmelone commented 6 months ago

@Marketto, do you think it's possible to merge and release this ASAP?

carmelone commented 6 months ago

@Marketto, what's the problem that doesn't make you merge this?

Marketto commented 3 months ago

Those changes break the unit tests and make the lib not backward compatible with non-verbatim projects. A verbatim project doesn't need verbatim dependencies

Using VermatimModuleSyntax you just need to import as follows

import * as CodiceFiscaleUtils from '@marketto/codice-fiscale-utils';
import type {BelfiorePlace, DateDay, DateMonth, Genders, MultiFormatDate} from '@marketto/codice-fiscale-utils';

No Changes are needed to the source code I will add this import hint in the README.MD