Skip to content

Develop - #15

Merged
8tentaculos merged 6 commits into
masterfrom
develop
Oct 5, 2026
Merged

8tentaculos merged 6 commits into
masterfrom
develop

Conversation

@8tentaculos

Copy link
Copy Markdown
Owner

No description provided.

`Resolvable<T>` pinned `this` to `StyleSheet<any>`, so assigning a
`function` to `attributes` in a subclass failed with TS2339 although the
runtime calls it with that subclass. The alias drops `this` on the
instance, where TypeScript infers it from the assignment target, and a new
`ResolvableOption` keeps it for the options, which have nothing to infer
it from.
…n render

A subclass can now set its own default prefix with a static, and
`prefix`, `attributes` and `renderers` can be getters. Renderers are
resolved on every render call, and `getAttributes` is renamed to
`getDecoratedAttributes`.

BREAKING CHANGE: `prefix` no longer accepts a function. Pass a string,
or use a getter.
attach and destroy use the registry of the instance's class, and the static
toString, toCSS and destroy use this.registry, so a subclass can declare its own.
@8tentaculos
8tentaculos deployed to npm-publish October 3, 2026 23:48 — with GitHub Actions Active
@8tentaculos
8tentaculos merged commit 4c0f527 into master Oct 5, 2026
3 checks passed
@8tentaculos
8tentaculos deleted the develop branch October 5, 2026 18:14

This branch was successfully deployed

1 active deployment
npm-publish — a3a98616 Deployed Oct 3, 2026 by 8tentaculos via publish #11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant