Skip to content

Commit

Permalink
Version Packages (#14)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored May 6, 2022
1 parent 00c39e3 commit c15ec16
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
27 changes: 0 additions & 27 deletions .changeset/green-rivers-rest.md

This file was deleted.

28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @divriots/style-dictionary-to-figma

## 0.2.0

### Minor Changes

- 00c39e3: BREAKING: no longer using default export, this is considered an anti-pattern for JS libraries. [Re-export wildstars with default exports in ESM](https://twitter.com/DasSurma/status/1509835337295609865) is one example quirk, another example is [CommonJS not supporting default exports next to named exports in a single file](https://github.com/divriots/style-dictionary-to-figma/issues/7). Now, the main export is a named export called "transform" and you have to import it as such.

Before:

```js
// ESM
import styleDictionaryToFigma from '@divriots/style-dictionary-to-figma';
// CommonJS
const styleDictionaryToFigma = require('@divriots/style-dictionary-to-figma');

styleDictionaryToFigma({...}) // figma object
```

After:

```js
// ESM
import { transform } from '@divriots/style-dictionary-to-figma';
// CommonJS
const { transform } = require('@divriots/style-dictionary-to-figma');

transform({...}) // figma object
```

## 0.1.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@divriots/style-dictionary-to-figma",
"version": "0.1.3",
"version": "0.2.0",
"description": "A utility that transforms a style-dictionary object into something Figma Tokens plugin understands",
"license": "MIT",
"author": "divRiots <[email protected]>",
Expand Down

0 comments on commit c15ec16

Please sign in to comment.