r/webdev • • Oct 18 '18

Angular 7.0.0 released

/r/Angular2/comments/9pbn4f/angular_700_released/
223 Upvotes

148 comments sorted by

View all comments

96

u/thatgibbyguy Oct 19 '18

Why is everyone downvoting people who are questioning Angular's upgrade/versioning strategy?

  • React is currently at 16.5 and the inital "major" release of this version (16.0) was back in September of 2017. So it's been over a year at a single "major" version.

  • Vue 2.0 was released September of 2016 and is currently at 2.15.17. So it's been over two years since a "major" version.

  • Angular 6.0 was released in May of 2018 and is now at 7.0 in October of 2018. So.... five months before a new "major" version?

Considering the debacle of "ng 1" to Angular and that incompatibility, it should be fairly easy to understand why people are side eyeing the release strategy of the Angular team. I mean, generally "major" would mean something pretty majorly different, and that just doesn't seem to be the case here.

78

u/DerpsMcGeeOnDowns Oct 19 '18

It’s just proper semver man. Nothing crazy. If there’s a major breaking change, it’s bumped. Simple.

16

u/WHO_WANTS_DOGS Oct 19 '18

When they announced Angular 2, they said they would be doing a major release every 6 months. I wonder if they are consistently introducing breaking changes every release.

25

u/APimpNamedAPimpNamed Oct 19 '18

Fine for devs scary for managers

4

u/itsmoirob Oct 19 '18

Is there a breaking change in this?

12

u/E2Ehh Oct 19 '18

Yes, technically upgrading TypeScript to 3.1 is a breaking change. For most applications, it will not cause any side effects or require any fixing, but in some obscure cases it will need some fixes applied (e.g. as TypeScript has got better / more strict at detecting type anomalies). I upgraded our codebase today after the release was announced: >10k TS files, took me a couple of hours to read the release notes, upgrade packages and test everything out and get it deployed - hit no issues at all this time!

3

u/itsmoirob Oct 19 '18

10k files? I salute you. Good effort

1

u/E2Ehh Oct 19 '18

To be fair a lot of the files are pretty empty... small barrel files, ngmodules etc

→ More replies (5)

21

u/[deleted] Oct 19 '18

Because it’s the same over the top reaction every time.

It’s like everyone is learning for the first time that different pieces of software take different approaches to versioning!

I guarantee that when Angular 8/9/10 is released you will have to read through all of the same stupid comments again.

0

u/[deleted] Oct 19 '18

[deleted]

6

u/PalomSage Oct 19 '18

That is one approach. Not the only one. For example, when I worked with Southwest Airlines their commerce site used this structure X.Y.Z. where X are the last two digits of the year. Y is the number of the year's sprint which usually matched the month, and Z was the number of post activation hotfixes deployments that had to be done.

5

u/[deleted] Oct 19 '18

Ok, but it's been over 2 years now since Angular2 was released, and they made the versioning strategy clear back then!

Reading the same tired comments with each new major version is getting really old!

5

u/DerpsMcGeeOnDowns Oct 20 '18

People are still on React vs Angular??? 😂😂😂

0

u/[deleted] Oct 19 '18

[deleted]

27

u/DerpsMcGeeOnDowns Oct 19 '18

5 to 6 required no changes??? Brah... I love Angular but this is factually, demonstrably, and unmistakably false.

0

u/[deleted] Oct 19 '18

[deleted]

2

u/barrybario Oct 19 '18

yep the rxjs changes were breaking for sure

1

u/DerpsMcGeeOnDowns Oct 20 '18

That and completely retooling the CLI, enabling multiple apps in a single workspace via architect, RxJS, the list goes on.

14

u/[deleted] Oct 19 '18

Angular 5 to 6 required no changes.

So they just aren't using semantic versioning? Major version upgrades should be breaking. If the changes don't break the API then it should just be a minor version upgrade.

12

u/Imposter1 Oct 19 '18

Angular 5 to 6 required no changes.

5 to 6 was a nightmare but that was mostly due to rxjs going from 5 to 6 and the auto update too not working very well on our codebase. We also didn't want to leave the rxjs compat lib in there.

Besides that, yeah I agree, it's been pretty smooth upgrades the whole way through.

2

u/A-Grey-World Software Developer Oct 19 '18

Depends if you're using the feature that breaks. 5 - 6 was a massive breaking change for me because I used a load of the RX stuff. I think the poster must have had some changes because RX is pretty integral into Angular - but if he didn't, then he might have had no refactoring. Maybe the auto update tool worked for him and he's forgotten!

It's still a breaking change to the API though, he's just not using that particular change.

Hell, updating to the latest version of TypeScript will be technically a breaking change, but very unlikely to actually impact anyone.

The animation system was changed, a breaking change. I'm guessing a lot of people's applications don't use Animations and they never needed to care. Still a breaking change.

→ More replies (1)

1

u/itsmoirob Oct 19 '18

5 I think it was is the only really upgrade that broke my work (when they changed to their new .JSON file, plus the httpClientModule stuff)

→ More replies (3)

2

u/uplink42 Oct 19 '18 edited Oct 19 '18

There hasn't been many breaking changes since v.2, and ever since 4.x most updates are quite trivial and ever since v6 you can run a CLI command that automatically fixes/warns you about deprecated features. v5 to v6 had major changes to rxjs imports but this could be remedied by importing a compatibility library.

I haven't experienced any major pains ever since the early days of 2.x and RC versions breaking things every month.

→ More replies (10)