Weekly Update (June 10-June 16)

  • Mutating transformations — transformations that change existing code. Supports things like “Add Action to Reducer” for Redux
  • Multi transformation — transform one kind of code into multiple other types of code. Supports transformations that need to write to multiple files.
  • Insert locations — allows you to create new files as part of a transformation.
  • Parser proxies — enables lenses to be created with otherwise invalid source code. For instance putting a Case statement in the top level of a code snippet won’t parse. Parser proxies allow parser authors to define a wrapper on a per AST Type basis to overcome this limitation. End users won’t have to think about these but they are important.
  • Multi Node Lenses — allows you to create a lens composed of n number of AST Nodes. User cases include creating a lens for Redux Containers. Each with a Component, PropTypes, MapStateToProps, Connect and Export node. Multi Node lenses behave like any other lens and can be synced.
  • Sublime support added. Ajay Patel from Plasticity finished the plugin. We’ll be packaging this in the next version of the installer.

What’s Next

This next release is already very big and contained a lot of risky features. It’s nearly ready to go but we’re going to delay it a little longer.

Thanks for supporting Optic! We hope you’re ready for the big release.

--

--

Building Tony Stark’s workshop one company at a time. Founder useoptic.com (YC S18)

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aidan Cunniffe

Aidan Cunniffe

238 Followers

Building Tony Stark’s workshop one company at a time. Founder useoptic.com (YC S18)