@contrail/documents 1.15.0-alpha.4626e64 → 1.15.0-alpha.567dcf0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/lib/sort-order-errors.d.ts +1 -1
- package/lib/sort-order-errors.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,10 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
11
11
|
|
|
12
12
|
- `isValidSortIndex` — whether a value is a usable fractional-indexing key. `fractional-indexing` keeps its own `validateOrderKey` private, so callers that need to check a key before storing it had no way to do so beyond a non-empty-string test. A key that passes that test but breaks the grammar still sorts, so ordering looks fine; the failure surfaces later, when the next insert beside it calls `generateKeyBetween` and throws. One point is stricter than the library: every character must be in the base-62 digit set, since a key holding anything else can sort below the integer part it claims.
|
|
13
13
|
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- `SortOrderErrorMessage.SORT_INDEX_NOT_USABLE` now reads "sortIndex must be a valid fractional-indexing key". The code is unchanged; the old text described only the non-empty-string half of the condition a caller can now check with `isValidSortIndex`.
|
|
17
|
+
|
|
14
18
|
## [1.14.0] - 2026-07-29
|
|
15
19
|
|
|
16
20
|
### Added
|
|
@@ -6,5 +6,5 @@ export declare enum SortOrderErrorCode {
|
|
|
6
6
|
export declare enum SortOrderErrorMessage {
|
|
7
7
|
SORT_MIGRATION_IN_PROGRESS = "Sort order is being migrated for this document; editing is briefly locked",
|
|
8
8
|
SORT_MODE_MISMATCH = "Ordering write does not match the document's sort mode",
|
|
9
|
-
SORT_INDEX_NOT_USABLE = "sortIndex must be a
|
|
9
|
+
SORT_INDEX_NOT_USABLE = "sortIndex must be a valid fractional-indexing key"
|
|
10
10
|
}
|
package/lib/sort-order-errors.js
CHANGED
|
@@ -11,5 +11,5 @@ var SortOrderErrorMessage;
|
|
|
11
11
|
(function (SortOrderErrorMessage) {
|
|
12
12
|
SortOrderErrorMessage["SORT_MIGRATION_IN_PROGRESS"] = "Sort order is being migrated for this document; editing is briefly locked";
|
|
13
13
|
SortOrderErrorMessage["SORT_MODE_MISMATCH"] = "Ordering write does not match the document's sort mode";
|
|
14
|
-
SortOrderErrorMessage["SORT_INDEX_NOT_USABLE"] = "sortIndex must be a
|
|
14
|
+
SortOrderErrorMessage["SORT_INDEX_NOT_USABLE"] = "sortIndex must be a valid fractional-indexing key";
|
|
15
15
|
})(SortOrderErrorMessage || (exports.SortOrderErrorMessage = SortOrderErrorMessage = {}));
|