It's Going to Be Angular 4.0, or Simply Angular
Igor Minar, lead dev on Angular, announced that the successor to Angular 2 is going to be Angular...4? What the heck is going on?
Join the DZone community and get the full member experience.Join For Free
at the 8th and 9th of december 2016 was ng-be, belgium’s first angular conference . igor minar (angular lead dev) attended as the keynote speaker with some interesting announcements regarding angular’s release schedule. please read the entire post , there are a couple of important things.
this article has been cross-posted on the official angular blog .
thanks to igor, brad, stephen and the whole angular team for the in depth review of this article. this once more shows how much their care about community work.
igor was extremely open and transparent about the announcement and even about the way of presenting it. he basically created the presentation openly the day before the conference:
i'll be conducting a major open source experiment at @ngbeconf tonight at 10pm downstairs in the main room. come if you want to participate.— igor minar (@igorminar) december 8, 2016
so here it is:
why angular 4?? why even angular 3?? what is going on?
angular uses semver
as the name already explains, semantic versioning is all about adding meaning to version numbers . this allows developers to not only reason about any upgrade we do, but we can even let tools such as npm do it in a automatic and safe manner for us.
a semantic version consists of three numbers :
whenever you fix a bug and release it, you increase the last number, if a new feature is added, you increase the second number and whenever you release a breaking change you increase the first number.
"a breaking change happens whenever you as a developer and consumer of a library, have to step in and adjust your code after a version upgrade."
so what does this mean for the angular team? as with every evolving piece of software, breaking changes will occur at some point. for example, giving a compiler error for existing application bugs that went unnoticed with the previous compiler version, anything, that will break an existing application when upgrading angular, requires the team to bump the major version number .
just to be clear, as igor mentioned in his talk , even just upgrading angular’s typescript dependency from v1.8 to v2.1 or v2.2 and compile angular with it, would technically cause a breaking change. so they’re taking semver very, very seriously.
breaking changes don’t have to be painful!
people that have been following the angular community for a while, definitely know what i’m talking about. we went from angular 1 to angular 2, and it was a total breaking change, with new apis and new patterns. that was obvious: ultimately angular 2 was a complete rewrite, even though there are upgrade options for you available .
changing from version 2 to version 4, 5 won’t be like changing from angular 1. it won’t be a complete rewrite , it will simply be a change in some core libraries that demand a major semver version change. also, there will be proper deprecation phases to allow developers to adjust their code.
internally at google, the angular team uses a tool for handling automatic upgrades, even of breaking changes. this is still something that has to be planned in more detail, but the team is working hard on making this tool generally available, most probably in 2017 in time for angular 5.
it’s just “angular”
as you might have already guessed, the term “angular 2” is also kind of deprecated once we get to version 4, 5 etc. that said, we should start naming it simply “angular” without the version suffix.
it's just #angular
also, we should start avoiding github/npm libraries prefixed with
basically from now on, name all versions of angular simply “angular”. try to avoid using the version number, unless it is really necessary to disambiguate.
- use “angular” by default (“i’m an angular developer”, “this is an angular meetup”, “the angular ecosystem is growing quickly”)
- “angular 1”, “angular 2”, “angular 4” when talking about a specific release train (e.g. when talking about a newly introduced feature - “this is an introduction to feature x, introduced in angular 4”, “we are upgrading from angular 1 to angular 2”, “i’m proposing this change for angular 5”)
- use full semver version when reporting a bug (“this issue is present as of angular 2.3.1”)
all the docs — even for angular 1 — will be aligned to this in the coming weeks. yes, they’ll be dropping “js” from angularjs where possible. also in blog articles, courses, books or whenever you are targeting a very specific version of angular, consider adding a header line which states that "this articles uses angular v2.3.1 ."
that helps avoid confusion for your readers, especially when you are writing about specific apis. (i’ll update here accordingly)
why not version 3 then?
the core angular libraries live in one single github repository at github.com/angular/angular . all of them are versioned the same way, but distributed as different npm packages:
current misalignment of versions with angular router
due to this misalignment of the router package’s version , the team decided to go straight for angular v4. in this way again, all the core packages are aligned which will be easier to maintain and help avoid confusion in the future.
why was the router even at version 3 already? here is the official announcement of the angular team when they released v3 of the router.
also it is important to understand how angular is being used and integrated inside google (igor speaks about this here in his keynote ). all google applications use angular version equal to the current github’s master branch of the angular repository. whenever a new commit lands in master, it will be integrated into google’s single, giant mono-repo, where also other products such as maps, adsense etc. live. as a consequence all of the projects using angular internally at google will run their extensive test suites against this new version. this makes the team very confident to cut a new release, since it will contain the exact combination of versions of angular packages that have been already battle tested inside google. thus, having aligned versions totally makes sense and makes it easier to maintain them over time, which in turn helps the team be more productive in releasing new features.
tentative release schedule
the fact that breaking changes will arrive, doesn’t mean they will arrive every other week. the angular team committed to time based releases that occur in three cycles :
- patch releases every week,
- 3 monthly minor release after each major release, and
- a major release with easy-to-migrate-over breaking changes every 6 months.
the next 3 months will be dedicated to finalizing angular 4.0.0.
after angular 4.0.0, this will be the tentative schedule for further releases:
so you can see that major versions will be released approximately every 6 months .
video: see the announcement yourself
there are two main important messages here:
- don’t worry about version numbers
- we do need to evolve angular in order to avoid another angular 1 to angular 2 change, but we should do it together as a community in a transparent, predictable, and incremental way .
also, i’d like to thank igor for being so open at presenting this data, especially since he knows what a sensitive topic breaking changes are and have been in the past. this means a lot and i hope that the community will realize why all these changes are good for everyone involved.
thanks to igor, brad, stepehn, and the whole angular team for reviewing this blog post. this once more shows how much their care about community work.
Published at DZone with permission of Juri Strumpflohner. See the original article here.
Opinions expressed by DZone contributors are their own.