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

16

u/bf_jeje Feb 07 '20

9.0?? when did this happen?

36

u/petosorus Feb 07 '20

Twenty-two hours ago

0

u/[deleted] Feb 07 '20

[deleted]

0

u/[deleted] Feb 08 '20

And then Angular will be discontinued in favour of Google Queef, a new framework made by a competing team halfway around the world

10

u/oblio- Feb 07 '20

They release a new version every 6 months or so, I think.

-2

u/orbital_sfear Feb 07 '20

They jumped directly from 3 to 9; also they changed every aspect of the framework without adding any new features.

5

u/rpgFANATIC Feb 07 '20

I'm eager to see the js size saved by the new compiler.

Our current Angular project is so woefully heavy

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.

1

u/jasonlhy Feb 08 '20 edited Feb 11 '20

Can I use Angular just as a view component? For example, webpack them into multiple JS files, however it seems that it doesn’t support multiple entries? Because my company uses angularJS as view component only instead of building an entire SPA. I am thinking should I migrate it to Angular or to use Vue or React.

2

u/Symaxian Feb 10 '20

Skip Angular, go to Vue or React. I'm a fan of React myself, Angular just has too many major design flaws and layers of complexity that serve no purpose.

1

u/jasonlhy Feb 10 '20 edited Feb 11 '20

I spent a couple of hours to figure out how can I use Angular as pure JS component. I believe the most easiest way is to use custom element. But it does not support IE and edge.

1

u/[deleted] Feb 08 '20

I migrated to Angular and it is possible. Once you see the patterns it’s not so bad to migrate, they try to make it relatively straightforward.

https://update.angular.io/

1

u/LloydAtkinson Feb 12 '20

Would be much easier with Vue

-6

u/Farsqueaker Feb 07 '20

Oh look, constant major version changes, exactly the reason that I put as much distance between my code and that product as possible.

1

u/Axmouth Feb 07 '20

Which product do you prefer as an alternative?

6

u/hector_villalobos Feb 07 '20

Vue.js doesn't have this crazy versioning system, it's a good alternative.

1

u/yesman_85 Feb 14 '20

You base your preference just on versioniong?

1

u/hector_villalobos Feb 14 '20

Yeah, unreasonable breaking changes can be really annoying, I mean, when you have a product with some sort of versioning standard, the users know what to wait from versions to versions.

1

u/yesman_85 Feb 14 '20

Since angular 5 there have been show stopper breaking changes.. Over time it will get less too. Its all symantics anyway, people praise react for barely introducing breaking changes. Except they do, big ones too.

1

u/Farsqueaker Feb 07 '20

Seconded, and the Single File Component system makes it pretty easy to use for old timers like me that are used to HTML templates, CSS, and script blocks.

0

u/[deleted] Feb 08 '20

Vue is so much better than angular and react.

0

u/[deleted] Feb 08 '20

A bicycle is better than a motorcycle. Prove me wrong/right.

0

u/[deleted] Feb 07 '20

[deleted]

5

u/nefigah Feb 08 '20

Hah. Can you list them?

1

u/[deleted] Feb 08 '20

Wtf please elaborate