Giter VIP home page Giter VIP logo

Comments (10)

mrkn avatar mrkn commented on May 23, 2024 6

bigdecimal doesn’t employ semantic versioning.

from bigdecimal.

mrkn avatar mrkn commented on May 23, 2024 1

@ioquatix

it shouldn't be removed until Ruby 3.0 because it's a backwards incompatible change?

No, I don't think so because bigdecimal is just a standard library, but not ruby's core.

I have a plan to release version 1.5.0 with removing BigDecimal.new.
I'll import the latest version of bigdecimal in Ruby 2.7.

Users can control what version of bigdecimal is used by calling gem method or writing the version contraint in Gemfile.

from bigdecimal.

ioquatix avatar ioquatix commented on May 23, 2024 1

If you are using semantic versioning you should not remove public interface in minor version bump. It should be 2.0.0 release to change or remove existing interface in backwards incompatible way.

from bigdecimal.

JonRowe avatar JonRowe commented on May 23, 2024 1

An awful lot of people will use ~> versioning as semantic versioning is the norm in Ruby. I urge you to reconsider making a breaking change like this in a minor release, after all whats a version number? Releasing a 2.0.0 for a change like this in a core library has little in the way of downside and enormous upsides for the community.

from bigdecimal.

ioquatix avatar ioquatix commented on May 23, 2024

Good idea. A lot of code depends on this. In theory, it shouldn't be removed until Ruby 3.0 because it's a backwards incompatible change?

from bigdecimal.

ioquatix avatar ioquatix commented on May 23, 2024

What kind of versioning does it use?

from bigdecimal.

ioquatix avatar ioquatix commented on May 23, 2024

All I can say, is that I agree that:

  • We should be using semantic versioning.
  • Removing a public method in a minor version bump is unexpected and broke stuff.
  • Some level of compatibility is required going forward.

from bigdecimal.

mrkn avatar mrkn commented on May 23, 2024

I think it is good idea that version 2.0.0 follows version 1.4.0 because I can release bigdecimal 3.0.0 when CRuby 3.0 is released.

So, these are my decision:

  • bigdecimal doesn't employ semantic versioning.
  • The version after 1.4.0 is 2.0.0, and it will be released soon after CRuby version 2.6.
  • The second digit of the version number is increased every year according to CRuby's version (e.g. bigdecimal 2.1.0 will be released with CRuby 2.7)
  • The version 3.0.0 will be released with CRuby version 3.0.

from bigdecimal.

mrkn avatar mrkn commented on May 23, 2024

This issue was closed and isn't about versioning topic.
I don't want to continue to talk about versioning here, so I lock this issue.

from bigdecimal.

ioquatix avatar ioquatix commented on May 23, 2024

I've created https://bugs.ruby-lang.org/issues/15456 for further discussion. I invite everyone to get involved.

from bigdecimal.

Related Issues (20)

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.