All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
0.14.1 - 2019-06-28
bin.js
was not included in the package. #17
0.14.0 - 2019-04-28
- Cli
- Shared styles were not applied correctly #16
- Updated dependencies
0.13.0 - 2019-02-26
- New property
sketch.colorAssets
that returns the palette of colors with names - New property
sketch.gradientAssets
that returns the palette of gradients with the names - New function
sketch.exportPreviews()
- New function
sketch.exportTextPreviews()
- The node
Attributes
was removed because starting from sketch 50 the attributes are not parsed anymore
- Update mocha to v6 #13
0.12.2 - 2019-01-27
- Removed some files included on publish the package in npm
0.12.1 - 2019-01-27
sketch.saveDir
can display a partially resolved promise warning
0.12.0 - 2019-01-15
sketch.load()
to load a sketch from the sources #12- Added a second argument in
FileReference.export()
to change the name of the exported file #11
- Added travis for ci testing
- Fixed null values evaluated as objects
0.11.0 - 2018-12-24
sketch.save()
andsketch.saveDir()
returns a promise insteadthis
.
- The provided plugins are removed to keep this library simpler
- Dropped
sketch.use()
node.get()
andnode.getAll()
does not return some recursive results- Some classes were not instantiated recursively
0.10.0 - 2018-07-18
- #7 New node
Attributes
to parse and return the attributes of text styles (read-only by now) - Added
sketch.foreignLayerStyles
- Added
sketch.foreignTextStyles
- Renamed
sketch.localSymbols
tosketch.symbols
- Renamed
sketch.sharedStyles
tosketch.layerStyles
0.9.0 - 2018-06-08
- New method
saveDir
to save the sketch as a directory, in order to inspect the json scheme
0.8.1 - 2017-11-22
- Infinite recursion bug resolved
0.8.0 - 2017-11-15
- New plugin
ImportArtboards
- API: new method
Node.set(key, Node)
- API: new method
Node.push(key, Node)
0.7.0 - 2017-11-13
- New plugin
LocalSymbolsToLibrarySymbols
- API: New function
Node.getSketch()
returning the sketch instance containing the node - API: New method
Node.toJson()
returning the node as json
Sketch.save
returnsthis
instead a prommise
- Fixed
Sketch.save
combined with plugins. SymbolInstance.symbolMaster
property now searches the symbolMaster in all pages instead only in Symbols page.
Added support for libraries, introduced in sketch 47.
- New properties added to
Sketch
instance:localSymbols
: Array with all local symbols (symbols stored in any page of the document)foreignSymbols
: Array with all symbols loaded from libraries
- Removed the docs directory from the repo (you can build using
yarn docs
ornpm run docs
)