Release 0.29.2

83 views
Skip to first unread message

Herby Vojčík

unread,
May 20, 2020, 10:46:30 AM5/20/20
to Amber ML

Hello all!

================
ANNOUNCEMENT
================

New patch version release is out, the 0.29.2.

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:

* Change to JS format, not breaking
* Move to 3-arg addClass plus setSlots was planned in 2019, but
forgotten.
* Thus, it is loadable in older Amber versions for more than a year.
* The move to 3-arg addClass plus setSlots was made now.
* API renames / additions moving further from ivars to slots.
* Fixes for some old issues.

The change in JS format is purely formal. Structure to allow loading of
the new format was added more than a year ago, but actual move to the
new format was only partly implemented (for metaclasses, but not for
classes). So, it is made now.

Those of you who like rigor in git history
(https://blog.herby.sk/post/commits), should upgrade your projects and
then just commit every package of your project in the Helios IDE.
Packages will be saved in new format and you can make the "move to 3-arg
addClass format commit.

Lots of low hanging fruits that were just pushed forward without
tackling them are fixed as well. Most of them are UX-related (correct
dirtying of packages, refreshing of Helios panes etc.). Some of them add
new API (pairsDo:, pairsCollect:, perform:with:).

Thus, this version should be fairly pleasant to work with. Happy coding!

================
UPGRADE PROJ
================

To upgrade your not too old project, this should suffice:

npm install @ambers/lang@^0.29.2
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

Herby Vojčík

unread,
May 21, 2020, 4:42:12 AM5/21/20
to Amber ML
Small addendum to "upgrading your existing project" below.

On 20. 5. 2020 16:46, Herby Vojčík wrote:
> ================
>   UPGRADE PROJ
> ================
>
> To upgrade your not too old project, this should suffice:
>
>   npm install @ambers/lang@^0.29.2

For some of the UX improvements you also need:

npm install @ambers/helios@^0.13.0

(in newly created projects, it is there already, of course)
Reply all
Reply to author
Forward
0 new messages