All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
4.1.0 (2022-03-30)
4.0.2 (2022-01-12)
4.0.1 (2021-12-20)
4.0.0 (2021-12-15)
- The version file is always created, you must opt out now instead of opt in, see the README
The way to opt out of this behavior is to include a VERSION.txt in the app, otherwise the file will be created automatically. When a VERSION.txt file exists the treeForPublic build step won't overwrite it.
Co-authored-by: Ilya Radchenko knownasilya@gmail.com
- config options come from a new place, see the readme
- Always create the version file (da01a6f)
- Do configuration during build (2fe8486)
3.0.0 (2021-11-24)
-
Drop Node < 12
-
Drop Ember.js < 3.20 and CLI < 3.20
-
use GC for notifier
-
fix: update waitFor
-
fix: update deps
-
introduces a new version service. Some arguments from the components have been moved here and other moved to the configuration.
-
How the version check happens has also changed, see #94
-
Enable JS code checking
-
Extract new version fetching and checking from the NewVersionNotifier component in a service
The logic is now in a service so that it can be used independently of the action.
There are slight behaviour changes and new behaviours as well.
The service contains an observable isNewVersionAvailable
property.
This property is set to true when a new version is available.
The version checking is slightly different: before, the first check was ignored because the component was comparing the previously fetched version and the latest fetched version. Now, the version is always checked against the version provided in environment.js. This thus means the comparison is always done against the compiled version of the app.
The component had a way to ignore a version, by setting the next version to check to the latest fetched version. To keep the compatibility with this behaviour, there is now an explicit list of "ignore versions" in the service, populated when the user closes the NewVersionNotifier
. Note that this list is kept in memory only and when the user reloads the page, the list is empty again. This is the same behaviour as before.
I kept the code related to testing in the service to limit the changes, but this could be moved in the TestNewVersionService implementation so that the original NewVersionService is kept clean of testing behaviour.
The onNewVersion action still exists but is now in the service. If one needs this callback, he/she can overload the NewVersionService and override onNewVersion. Same thing for onError.
Some properties that were arguments of the component have been moved to the configuration.
- Fix dependencies declaration
Some addon dependencies were declared in devDependencies while they are needed by the addon to run.
- Make MAX_COUNT_IN_TESTING a configuration variable
This let tests override this option as needed.
- fix: keep the initial slash for fetching VERSION.txt
Before this commit, the fetch of VERSION.txt with a default configuration would result to calling "VERSION.txt", which means "fetch the file relative to the current page URL".
This may lead to issue in production, but leads to issues in some tests situation when using ember test
where the full path to VERSION.txt is resolved to /VERSION.txt
when declaring it in tests, while it is resolved to http://localhost:7357/some-random-numbers/tests/VERSION.txt
when fetching the file.
This commit fixes the issue by not removing the /
in front of VERSION.txt.
This fixes the isse for my scenarios; but I am not sure why there was this check and removal of the /
in the first place, this thus may lead to breaking changes for some.
Co-authored-by: Ilya Radchenko knownasilya@gmail.com
-
introduces a new version service. Some arguments from the components have been moved here and other moved to the configuration.
-
How the version check happens has also changed, see #94
-
Enable JS code checking
-
Extract new version fetching and checking from the NewVersionNotifier component in a service
The logic is now in a service so that it can be used independently of the action.
There are slight behaviour changes and new behaviours as well.
The service contains an observable isNewVersionAvailable
property.
This property is set to true when a new version is available.
The version checking is slightly different: before, the first check was ignored because the component was comparing the previously fetched version and the latest fetched version. Now, the version is always checked against the version provided in environment.js. This thus means the comparison is always done against the compiled version of the app.
The component had a way to ignore a version, by setting the next version to check to the latest fetched version. To keep the compatibility with this behaviour, there is now an explicit list of "ignore versions" in the service, populated when the user closes the NewVersionNotifier
. Note that this list is kept in memory only and when the user reloads the page, the list is empty again. This is the same behaviour as before.
I kept the code related to testing in the service to limit the changes, but this could be moved in the TestNewVersionService implementation so that the original NewVersionService is kept clean of testing behaviour.
The onNewVersion action still exists but is now in the service. If one needs this callback, he/she can overload the NewVersionService and override onNewVersion. Same thing for onError.
Some properties that were arguments of the component have been moved to the configuration.
- Fix dependencies declaration
Some addon dependencies were declared in devDependencies while they are needed by the addon to run.
- use GC for notifier
- Drop ember-concurrency < v1, update Ember deps.
- Drop Ember < 3.16 (might still work, but untested going forward)
- Drop Node < 10
- Extract new version fetching and checking from the NewVersionNotifier component in a service (#94) (83c3528)
- Make MAX_COUNT_IN_TESTING a configuration variable (#95) (ba20169)
- allow ec v1 as well (32d086d)
- Ember v3.22.0...v3.26.1 (e27600c)
- Fix tests & Upgrade ember concurrency to 2.0 (#81) (5e111b1)
- keep the initial slash for fetching VERSION.txt (#99) (1daf826), closes #94
- regenerator v1 (22bde5d)
- update dep path and lockfile (f446068)
- update deps (0fa7890)
- update to glimmer component (9b2abb7)
- update waitFor (244011e)
- Upgrade v3.11.0...v3.22.0 (3ecab5c)
- use https version of import regen dep for ci (1b8adc3)
- use node 14 in tests and pin volta (43d98f0)
- v3.26.1...v3.28.4 (9722fdf)
2.0.2 (2020-11-11)
2.0.1 (2019-09-30)
- security update for deps (e7bf1af)
- Update ember-concurrency for Ember 3.13+ (#62) (c22a6f5)
- update more deps (f79e6c2)
2.0.0 (2019-08-06)
- add v1 to concurrency dep (27511bb), closes #60
- don't use double curlies for version updateMessage vars (1269833)
- drop node 6 and test Ember 3.4+ (7253281)
@updateMessage
now takes{oldVersion}
and{newVersion}
instead of{{oldVersion}}
to{{newVersion}}
since curlies can be used in strings in hbs and with angle bracket syntax you are far more likely to write strings like that.- Drop node 6 support and Ember < 3.4
Might still work on <3.4 but untested
1.6.0 (2019-08-06)
- security: fix audit vulnerabilities (65d2821)
1.5.0 (2019-05-03)
1.4.4 (2019-03-26)
1.4.3 (2019-01-09)
1.4.2 (2019-01-05)
- lint: quotes in template (8dc5c94)
- concurrency updated to fix machty/ember-concurrency#261 (ede4be3)
- run codemods, update tests (b076032)
- update using ember-cli-update (0ca640e)
1.4.1 (2019-01-04)
- replace ember-ajax with ember-fetch (#54) (5e1c79c)
- update deps and move ember-fetch to dep (99c1c6e)
1.4.0 (2018-09-28)
- Add an 'onError' handler that can be used to do something in response to a server error (#51) (1a491c9)