Giter Club home page Giter Club logo

personnummer.js's People

Contributors

dependabot[bot] avatar kelszo avatar torandersson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

personnummer.js's Issues

2.2.0 has breaking changes

The 2.2.0 version includes breaking changes compared to 2.1.0 which is unexpected if it's supposed to adhere to semantic versioning.

As an example, look at the normalise function. In 2.1.0 it returns an empty string if passed invalid input. In 2.2.0 it returns undefined. This means that consuming code that assumes the returned value will always be a string will now suddenly break if the input has not been validated before calling the function.

The changelog does not mention this change at all. It does mention other changes that sound breaking, like changing default options.

When a library does not follow semantic versioning it complicates things for consumers who want to keep their dependencies up to date. It is much easier if library authors try to be strict about breaking changes - then non-major version bumps can mostly be merged right away.

Arrow function not compatible with IE11

It seems like you are using an arrow function in one place in the code.
In the getBirthplace function: personalNumber/parse.js@156

I tried to replace it with a normal function and then your code works in IE11. I would be nice if you could fix that or maybe run it through babel before publish it on npm?

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.