react-dockable-desktop 7.7.2 → 7.7.3
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 +47 -1
- package/README.md +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,51 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [7.7.3] — 2026-10-06
|
|
10
|
+
|
|
11
|
+
Code-health release: the lint gate checks the library again, dead code is checked too, and the
|
|
12
|
+
library is at zero ESLint warnings. No API change and no intended behaviour change; the published
|
|
13
|
+
type declarations are byte-identical to 7.7.2.
|
|
14
|
+
|
|
15
|
+
### Internal
|
|
16
|
+
|
|
17
|
+
- **`npm run lint` checks something again.** It ran `tsc --noEmit` against a `tsconfig.json` that
|
|
18
|
+
lists no files, so it passed whatever the code contained; that is how a 7.7.2 type error reached
|
|
19
|
+
`main`. It now type-checks the library source (`tsconfig.lib.json`: `src` without its tests) and
|
|
20
|
+
runs ESLint on `src`, tests included, and fails on any error. CI already ran `npm run lint`.
|
|
21
|
+
- **ESLint config for a library.** `react-refresh/only-export-components` is off for `src` (a
|
|
22
|
+
Vite dev-server rule for apps); a leading `_` marks a deliberately unused name; tests may use
|
|
23
|
+
`any`, `@ts-ignore` and module-level counters. `no-explicit-any` and the React Compiler rules
|
|
24
|
+
(`react-hooks/refs`, `globals`, `immutability`, `set-state-in-effect`) are warnings for now: 59
|
|
25
|
+
remain in library code. The 17 errors left were fixed, among them 13 unused imports and
|
|
26
|
+
variables in tests.
|
|
27
|
+
- **CI installs with `npm ci` on Node 24.** `npm ci` failed on Node 20's npm 10, which resolves this
|
|
28
|
+
lockfile's peer dependencies differently; npm 11 and 12 accept it unchanged. Node 20 is past its
|
|
29
|
+
end of life.
|
|
30
|
+
- `recycle_bin/` deleted (7 files, unused since August).
|
|
31
|
+
- **Dead code is checked too.** `npm run lint` also runs [knip](https://knip.dev) (`knip.json`), which
|
|
32
|
+
reports unused files, exports and dependencies across the library, the demos, the tests and the
|
|
33
|
+
scripts. Its first run found little dead code in the library: three default exports nothing
|
|
34
|
+
imports (`DockableDesktopProvider`, `PanelRegistry`, `Sidebar`; the named exports remain) and
|
|
35
|
+
the unused `copyfiles` dev dependency, all removed. The published type declarations are
|
|
36
|
+
byte-identical.
|
|
37
|
+
- **ESLint: zero warnings, and warnings now fail the lint too** (`--max-warnings 0`).
|
|
38
|
+
`no-explicit-any` and the React Compiler rules are errors again. The published type
|
|
39
|
+
declarations are byte-identical.
|
|
40
|
+
- **`any`:** the internal ones got real types (the event bus, the layout parser, the taskbar
|
|
41
|
+
preview, overlay and registry casts). The public ones stay `any` with a reason beside each,
|
|
42
|
+
because `unknown` would break users' code: event payloads, `ComponentType<any>` in the panel
|
|
43
|
+
and overlay registries, overlay `props`, and the dialogs' message `values` (narrowed with the
|
|
44
|
+
title type in 8.0.0).
|
|
45
|
+
- **Refs written during render** (the "latest value" pattern, 16 places) now go through
|
|
46
|
+
`useLatestRef`, which updates the ref in an insertion effect. That runs before every layout
|
|
47
|
+
effect of the commit, so a child's effect never reads the previous value; a test pins it,
|
|
48
|
+
and fails with a layout effect. `panelMount` captures the initial container type with
|
|
49
|
+
`useState` instead of a ref read during render.
|
|
50
|
+
- **Four deliberate patterns** keep a disable comment that gives the reason: two effects that
|
|
51
|
+
must set state (the drawer closing when its tab disappears notifies a controlling parent),
|
|
52
|
+
an unmount cleanup that reads the pending timer, and the panel handle's `[id]` dependency.
|
|
53
|
+
|
|
9
54
|
## [7.7.2] — 2026-10-05
|
|
10
55
|
|
|
11
56
|
Panels re-render only when something about them changes. Before, focusing one panel or moving a
|
|
@@ -973,7 +1018,8 @@ All of the above is additive and backward-compatible: every new field is optiona
|
|
|
973
1018
|
|
|
974
1019
|
---
|
|
975
1020
|
|
|
976
|
-
[Unreleased]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.7.
|
|
1021
|
+
[Unreleased]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.7.3...HEAD
|
|
1022
|
+
[7.7.3]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.7.2...v7.7.3
|
|
977
1023
|
[7.7.2]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.7.1...v7.7.2
|
|
978
1024
|
[7.7.1]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.7.0...v7.7.1
|
|
979
1025
|
[7.7.0]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.6.2...v7.7.0
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# React Dockable Desktop
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/react-dockable-desktop)
|
|
4
4
|
[](https://www.typescriptlang.org/)
|
|
5
5
|
[](#touch--mobile)
|
|
6
6
|
[](#license)
|