Herby Vojčík
unread,Feb 23, 2021, 8:59:39 AM2/23/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Amber ML
Hello all!
================
ANNOUNCEMENT
================
New patch version release is out, the 0.23.0.
TL;DR:
npm -g install @ambers/cli
and your new projects will be created with new version.
For cases where npm think it knows better (and new project is still
based on older version, find out in package.json), try:
npm -g install @ambers/cli -f
and if even that does not help, this should:
npm -g uninstall @ambers/cli -f
npm cache clean -f
npm -g install @ambers/cli -f
===================
THE CHANGES
===================
From CHANGELOG:
* Move to use `globalThis`.
* Stop using `global`, so breaking, but just fix preamble of index.html.
* Removed old backward-compatibility code.
This release is breaking, in the sense that technically your old project
may stop loading if you have old browser; on the other hand, the fix
should be simple, just change this line in index.html:
var global = typeof global === "undefined" ? window : global || window;
to this line:
var globalThis = typeof globalThis === "undefined" ? window :
globalThis || window;
================
UPGRADE PROJ
================
To upgrade your not too old project, this should suffice:
npm install @ambers/lang@^0.30.0
grunt
The mechanical, though needing a bit of tools expertise, although
working, way to do the upgrade of older project is to create new project
with `amber init` with the same name as the old project, copy the files
over to old project, and go over the diffs (shown by git / IDE / both)
manually.
Herby