Coder Social home page Coder Social logo

semver breakage about geo HOT 9 CLOSED

georust avatar georust commented on May 16, 2024 4
semver breakage

from geo.

Comments (9)

frewsxcv avatar frewsxcv commented on May 16, 2024

You're right, good catch. Should I yank versions >= 0.4.7 and publish 0.5?

from geo.

KodrAus avatar KodrAus commented on May 16, 2024

We had a similar situation with chrono and serde. They yanked the patch that bumped serde's major version.

from geo.

TeXitoi avatar TeXitoi commented on May 16, 2024

I think so, yes.

from geo.

amandasaurus avatar amandasaurus commented on May 16, 2024

To be technically correct (the best kind of correct), semver says that if you're 0.x.y then you're allowed do whatever you want. 😉

  1. Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable.

And the bikeshed should be blue.

from geo.

frewsxcv avatar frewsxcv commented on May 16, 2024

Actually, before I make any versioning changes, how is this a breaking change? I understand that if I did a dependency upgrade, and that dependency was exposed through this crate, that could be a breaking change (e.g. upgrading serde 0.9 to 1.0 in a minor version release). But in this particular case, I'm just adding a dependency which no one relies on yet.

from geo.

KodrAus avatar KodrAus commented on May 16, 2024

Oh this is adding serde as a dependency when it wasn't there before? That shouldn't be a breaking change. If it was I would think our coherence rules weren't doing their job.

from geo.

TeXitoi avatar TeXitoi commented on May 16, 2024

Mmm, looks like your right, no breaking changes. I was cargo updateing and had problem with compilation. I thought it was because of geo, but maybe not, I see in the commit that I also specified versions on other crates.

from geo.

TeXitoi avatar TeXitoi commented on May 16, 2024

I confirm that upgrading to 0.4.9 using cargo update didn't break my build, the breaking was caused by a "*" on the crate geojson.

from geo.

frewsxcv avatar frewsxcv commented on May 16, 2024

If people are interested, we can make the serde stuff opt-in for the next major change release (since it'd be a breaking change).

from geo.

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.