Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
82d672abc2 | |||
387b415de9 | |||
74229cb226 | |||
2e64489e9b |
17
changelog.md
17
changelog.md
@ -1,5 +1,22 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-06-20 - 2.0.43 - fix(dependencies)
|
||||||
|
Bump build and runtime dependencies to newer versions for improved tooling and compatibility.
|
||||||
|
|
||||||
|
- Bumped @git.zone/tsbuild from ^2.3.2 to ^2.6.4
|
||||||
|
- Bumped @git.zone/tsbundle from ^2.2.5 to ^2.4.0
|
||||||
|
- Bumped @git.zone/tstest from ^1.0.96 to ^2.3.1
|
||||||
|
- Bumped @push.rocks/tapbundle from ^5.6.3 to ^6.0.3
|
||||||
|
- Bumped @design.estate/dees-domtools from ^2.3.2 to ^2.3.3
|
||||||
|
- Bumped @push.rocks/smartrx from ^3.0.7 to ^3.0.10
|
||||||
|
|
||||||
|
## 2025-04-18 - 2.0.42 - fix(directives)
|
||||||
|
Add explicit type annotations to subscribeWithTemplate directive export
|
||||||
|
|
||||||
|
- Imported DirectiveResult type for better typing
|
||||||
|
- Defined SubscribeWithTemplateFn signature to ensure proper type inference
|
||||||
|
- Used type assertion with 'as SubscribeWithTemplateFn' to improve type safety
|
||||||
|
|
||||||
## 2025-04-18 - 2.0.41 - fix(directives)
|
## 2025-04-18 - 2.0.41 - fix(directives)
|
||||||
Refactor export statements in directives index for consistency
|
Refactor export statements in directives index for consistency
|
||||||
|
|
||||||
|
14
package.json
14
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@design.estate/dees-element",
|
"name": "@design.estate/dees-element",
|
||||||
"version": "2.0.41",
|
"version": "2.0.43",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A library for creating custom elements extending the lit element class with additional functionalities.",
|
"description": "A library for creating custom elements extending the lit element class with additional functionalities.",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@ -14,16 +14,16 @@
|
|||||||
"buildDocs": "tsdoc"
|
"buildDocs": "tsdoc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^2.3.2",
|
"@git.zone/tsbuild": "^2.6.4",
|
||||||
"@git.zone/tsbundle": "^2.2.5",
|
"@git.zone/tsbundle": "^2.4.0",
|
||||||
"@git.zone/tstest": "^1.0.96",
|
"@git.zone/tstest": "^2.3.1",
|
||||||
"@push.rocks/tapbundle": "^5.6.3",
|
"@push.rocks/tapbundle": "^6.0.3",
|
||||||
"@types/node": "^22.14.1"
|
"@types/node": "^22.14.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@design.estate/dees-domtools": "^2.3.2",
|
"@design.estate/dees-domtools": "^2.3.3",
|
||||||
"@push.rocks/isounique": "^1.0.5",
|
"@push.rocks/isounique": "^1.0.5",
|
||||||
"@push.rocks/smartrx": "^3.0.7",
|
"@push.rocks/smartrx": "^3.0.10",
|
||||||
"lit": "^3.3.0"
|
"lit": "^3.3.0"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
|
2893
pnpm-lock.yaml
generated
2893
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@design.estate/dees-element',
|
name: '@design.estate/dees-element',
|
||||||
version: '2.0.41',
|
version: '2.0.43',
|
||||||
description: 'A library for creating custom elements extending the lit element class with additional functionalities.'
|
description: 'A library for creating custom elements extending the lit element class with additional functionalities.'
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { type TemplateResult, noChange } from 'lit';
|
import { type TemplateResult, noChange } from 'lit';
|
||||||
|
import type { DirectiveResult } from 'lit/directive.js';
|
||||||
import { AsyncDirective, directive } from 'lit/async-directive.js';
|
import { AsyncDirective, directive } from 'lit/async-directive.js';
|
||||||
import { rxjs } from '@push.rocks/smartrx';
|
import { rxjs } from '@push.rocks/smartrx';
|
||||||
|
|
||||||
@ -48,4 +49,13 @@ class SubscribeWithTemplateDirective extends AsyncDirective {
|
|||||||
* Directive that renders templates for each emission of an Observable.
|
* Directive that renders templates for each emission of an Observable.
|
||||||
* Usage: html`${subscribeWithTemplate(myObservable, v => html`<span>${v}</span>`)}`
|
* Usage: html`${subscribeWithTemplate(myObservable, v => html`<span>${v}</span>`)}`
|
||||||
*/
|
*/
|
||||||
export const subscribeWithTemplate = directive(SubscribeWithTemplateDirective);
|
/**
|
||||||
|
* Typed directive function signature: returns a Lit DirectiveResult.
|
||||||
|
*/
|
||||||
|
type SubscribeWithTemplateFn = <T>(
|
||||||
|
observable: rxjs.Observable<T>,
|
||||||
|
templateFn: (value: T) => TemplateResult | unknown
|
||||||
|
) => DirectiveResult;
|
||||||
|
export const subscribeWithTemplate = directive(
|
||||||
|
SubscribeWithTemplateDirective
|
||||||
|
) as SubscribeWithTemplateFn;
|
Reference in New Issue
Block a user