fix(package): distinguish transaction-capable TP

This commit is contained in:
Kinneyzhang 2026-09-01 05:57:28 +08:00
parent 9ac8c7a133
commit 2e2d9edc84
3 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,7 @@
All notable changes to the tp library are documented here. All notable changes to the tp library are documented here.
## 1.0.0 (Unreleased) ## 1.0.1 (Unreleased)
### Added ### Added
@ -18,6 +18,9 @@ All notable changes to the tp library are documented here.
### Changed ### Changed
- Package metadata now distinguishes builds that include
`tp-transaction.el`; consumers can require TP 1.0.1 without an older 1.0.0
development snapshot being accepted as a complete transaction runtime.
- `define-tp` and `define-tps` now define static or parameterized direct declaration recipes. Applying a recipe produces ordinary properties and never publishes runtime identity metadata. - `define-tp` and `define-tps` now define static or parameterized direct declaration recipes. Applying a recipe produces ordinary properties and never publishes runtime identity metadata.
- TP is no longer a CSS engine. Selector, stylesheet, specificity, origin/importance, cascade layer, CSS-wide value, custom property, winner, and provenance behavior belongs to the independent ECSS package. - TP is no longer a CSS engine. Selector, stylesheet, specificity, origin/importance, cascade layer, CSS-wide value, custom property, winner, and provenance behavior belongs to the independent ECSS package.
- Function-valued properties are always literal. Only values wrapped by `tp-computed` execute and participate in dependency collection. - Function-valued properties are always literal. Only values wrapped by `tp-computed` execute and participate in dependency collection.

View File

@ -1371,7 +1371,7 @@
(should (eq tp-transaction-protocol (should (eq tp-transaction-protocol
'tp-transaction-protocol-v1+v2)) 'tp-transaction-protocol-v1+v2))
(let ((manifest (tp-runtime-manifest))) (let ((manifest (tp-runtime-manifest)))
(should (equal (plist-get manifest :version) "1.0.0")) (should (equal (plist-get manifest :version) "1.0.1"))
(should (eq (plist-get manifest :transaction-protocol) (should (eq (plist-get manifest :transaction-protocol)
'tp-transaction-protocol-v1+v2)) 'tp-transaction-protocol-v1+v2))
(should (plist-get manifest :batch-artifacts)) (should (plist-get manifest :batch-artifacts))

4
tp.el
View File

@ -2,7 +2,7 @@
;; Copyright (C) 2024-2026 Geekinney ;; Copyright (C) 2024-2026 Geekinney
;; Version: 1.0.0 ;; Version: 1.0.1
;; Keywords: convenience text-properties ;; Keywords: convenience text-properties
;; Author: Geekinney (kinneyzhang666@gmail.com) ;; Author: Geekinney (kinneyzhang666@gmail.com)
;; Package-Requires: ((emacs "28.1")) ;; Package-Requires: ((emacs "28.1"))
@ -66,7 +66,7 @@
(require 'tp-builtins) (require 'tp-builtins)
(defconst tp--runtime-manifest (defconst tp--runtime-manifest
`(:package tp :version "1.0.0" `(:package tp :version "1.0.1"
:transaction-protocol ,tp-transaction-protocol :transaction-protocol ,tp-transaction-protocol
:batch-artifacts t :batch-artifacts t
:batch-execution v1-bridge :batch-execution v1-bridge