Release 0.18.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Release 0.18.1

Herby Vojčík
Hi there!

I released version 0.18.1.

Some inside structural changes in Compiler code.

Fixes typos with new syntax of inline JS method bodies:

   foo
   <inlineJS: 'return 'foo ' + self._foo()'>

Is mistyped, should be either

   foo
   <inlineJS: 'return ''foo '' + self._foo()'>

or

   foo
   <inlineJS: 'return "foo " + self._foo()'>

In 0.18.0, it was treated as backward-compatible inline JS form, so it
interpreted the whole

   inlineJS: 'return 'foo ' + self._foo()'

as a JavaScript code (which would compile fine and fail in runtime with
"ReferenceError: foo not defined"). Now, it detects that it is probably
a typoed new form, and fails fast in parser.

Do

   npm -g install amber-cli

to be able to create new projects with `amber init` that use new version.

More on the changes in:

   https://lolg.it/amber/amber/src/0.18.1/CHANGELOG
   https://lolg.it/amber/amber/src/0.18.1/API-CHANGES.txt

As for upgrade of existing project, it's always the pain point. I'd like
to have functionality similar to `react-native upgrade`. In the
meantime, you can simulate in general way by doing `amber init` in
separate directory, supply same values as in old project, then copy
files back and use diff to sort things out.

Herby

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.