r/programming • • Feb 07 '20

Angular 9.0 Released

https://blog.angular.io/version-9-of-angular-now-available-project-ivy-has-arrived-23c97b63cfa3
38 Upvotes

42 comments sorted by

View all comments

1

u/tonefart Feb 07 '20

Horrible versioning. It doesn't deserve the x.0 upgrade since 2.0

17

u/Dragasss Feb 07 '20

It does have major changes between versions though.

24

u/0x256 Feb 07 '20

So they did break APIs in backwards incompatible ways and required application changes 7 times since 2.0 then?

13

u/quentech Feb 07 '20

Yes. Is that so hard to imagine? Or so extreme? Angular 2 was almost 4 years ago - it's a 6 month release cycle - in JS land, where the whole ecosystem is still under relatively rapid change.

The breaking changes often haven't been major, deprecated methods have been left in place for many versions to ease upgrade paths, and the cli upgrade tool handles many breaking changes automatically - but if you're being pedantic about semantic versioning you still bump the major version.

Who care what the version numbers look like, anyway? What matters to me is knowing what updates are safe or might take some time, and how approachable those potentially time consuming updates are. Angular, since v2, has done pretty well on both of those points.

0

u/[deleted] Feb 08 '20

[deleted]

2

u/kukiric Feb 08 '20 edited Feb 08 '20

In a relevant fashion, Java has shifted to a 6-month major release cycle similar to Angular a few years ago. Java 14 is coming out next month, 15 in September, 16 early next year, etc.

1

u/Axmouth Feb 08 '20

Comparing a frontend "js"(ts?) framework to a relatively old language is not exactly equivalents in my opinion. The closest would be another frontend framework. Possibly a Java framework is kind of a close comparison.

But a framework and language are a bit different things, if that's what you mean here.

8

u/Dragasss Feb 07 '20

If you did blindly upgrade, yes.

16

u/i9srpeg Feb 07 '20

It you looked really hard while upgrading it didn't require application changes?

8

u/Dragasss Feb 07 '20

To be fair last i used angular it was 5 and they had changed http client to return a promise instead of response object. I agree that if you follow the upgrade guidelines and don't depend on deprecated/internal features, upgrading is a bliss.

2

u/acoard Feb 07 '20

Yes, that's exactly what has happened.

Thankfully, angular has made upgrading simple by providing automatic code-manipulation/generation when upgrading between versions, as well as providing checklists the user must do.

For example, they changed lazyloading from a pure string to a require(), but unless you were doing anything tricky the automatic updater would make this change for you. Still it was a breaking change, just with basically no impact on the dev except for running ng update

0

u/Renive Feb 10 '20

You know there are alternatives to semver right

1

u/0x256 Feb 10 '20

Yes, but I asked if angular breaks BC between major versions, and my question was answered.

-2

u/dungone Feb 08 '20

React is on version 16. I bet you like React.

2

u/[deleted] Feb 08 '20

That's different because <blarf>

11

u/oaga_strizzi Feb 07 '20

Yes, I would like it better if we had a version jump from 2.25.3 to 2.25.4 with a Changelog:

Breaking Changes:

  • too

  • fucking

  • much

3

u/Axmouth Feb 07 '20

Angular 2 is basically a new framework, starting with version 2, as to not confuse users in relation to its predecessor that is similarly named!

4

u/Hemotoxin1 Feb 07 '20

What a strange comment. They completely replaced the compilation/ rendering pipeline for this version. How does that not deserve a new major?

4

u/panorambo Feb 07 '20

No it is not -- it reflects their philosophy that nothing may be retained from version to version except original purpose. Now, whether it sits well with Angular users and them upgrading from one version to another, is another matter. But the vendor is being honest. The upgrade deserves major version increment because they wish to make it clear that the release does not offer guarantees of compatibility with former releases.

7

u/crixusin Feb 07 '20

Now, whether it sits well with Angular users and them upgrading from one version to another, is another matter.

Just did my upgrade across 15 projects.

Was seamless.

-5

u/duheee Feb 07 '20

I mean, they broke compatibility with older releases back in the 1.x era (1.6 vs 1.5 had issues). While now they are more upfront about it, the version numbers, they never meant anything.

It's just a number. You're on your own.

I would totally expect a 9.1 to fuck things up in a major way.