Skip to content

Tags: dhleong/spade

Tags

2.0.0

Toggle 2.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Optimize for the common case (#17)

* Generate a memoized function for computing a style's name

* Use the newly-generated naming fn; improve manual :key support

* Clean up

* Prepare to only conditionally compile CSS, update DOM

* Respect global :always-compile-css?

* Add support for :always-compile-css per-function escape hatch

* Clean up some TODOs

* Change StyleContainer to support skipping compile when mounted

Now for the common case of applying a style that's already in the DOM,
all we have to do is compute its name (which is memoized on the params!)
and lookup the info to handle any composed styles. We don't run the
style factory fn and we certainly don't compile any CSS!

* Invoke style-factory directly, without `apply`

* Update core-test to remove unnecessary apply params

* Fix: find-key-meta not working consistently

* Rename vars for consistency

1.1.2

Toggle 1.1.2's commit message
Use a separate repository name for CI snapshots

1.1.1

Toggle 1.1.1's commit message
Fix support for passing a list of composed styles

1.1.0

Toggle 1.1.0's commit message
Update release script to python3

1.0.4

Toggle 1.0.4's commit message
Fix missing style names when compiled under :simple optimizations

Fixes #7

1.0.3

Toggle 1.0.3's commit message
Don't make style names that start with -

Can happen under advanced compilation if the fn's name starts with _

1.0.2

Toggle 1.0.2's commit message
Update package-lock.json

1.0.1

Toggle 1.0.1's commit message
Don't generate cljdoc for the util namespace

Probably could hide the runtime namespace, too...

1.0.0

Toggle 1.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add parameters to defkeyframes (#5)

* Make defkeyframes accept a params vector

This is a breaking change! But it makes the API much more logically
consistent—why shouldn't you be able to parameterize keyframes?

This change also includes some heavy refactoring to simplify code
generation for the other cases, as well as an optimization that skips
the call to build-style-name if the function does not accept parameters.

* Update README to reflect params support on defkeyframes

0.2.0

Toggle 0.2.0's commit message
Add more print output to the version