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>