Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/antispam-encoded-names.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/api-fixes.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/browser-fixes.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dependency-version-from.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/dom-listeners-fixes.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/node-fixes.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/react-fixes.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/utils-fixes.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/utils-more-fixes.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/utils-root-exports.md

This file was deleted.

8 changes: 8 additions & 0 deletions packages/api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @knitkode/api

## 3.0.1

### Patch Changes

- [`113cd75`](https://github.com/knitkode/kit/commit/113cd754ba6cf9497752643541defcceebf34a95) Thanks [@kuus](https://github.com/kuus)! - Fix the requests URL, which got a double slash with an endpoint starting with `/` or a base URL ending with one, and let the headers passed to a request override the client ones (the client headers used to win).
- Updated dependencies [[`113cd75`](https://github.com/knitkode/kit/commit/113cd754ba6cf9497752643541defcceebf34a95), [`89e3ba6`](https://github.com/knitkode/kit/commit/89e3ba66f33f8b5c8b7ecc2350d5dadbfd6bc143), [`b131ad6`](https://github.com/knitkode/kit/commit/b131ad61ba1956a5efb1f2a0ad00c76870da8899)]:
- @knitkode/utils@3.0.1

## 3.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@knitkode/api",
"version": "3.0.0",
"version": "3.0.1",
"description": "Type-safe API client factory with optional SWR hooks and Next.js API response helpers.",
"keywords": [
"knitkode",
Expand Down
9 changes: 9 additions & 0 deletions packages/browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @knitkode/browser

## 3.0.1

### Patch Changes

- [`113cd75`](https://github.com/knitkode/kit/commit/113cd754ba6cf9497752643541defcceebf34a95) Thanks [@kuus](https://github.com/kuus)! - Fix `navigateToHash`, which doubled the `?` of the current query string (`/page??a=1#hash`), and make the storage helpers (`storageClient`, `storage`, `createStorage`) return stored falsy values (`0`, `false`, `""`) instead of `null` or the default, and apply falsy defaults in `getAll`.
- Updated dependencies [[`a04e3ff`](https://github.com/knitkode/kit/commit/a04e3ffbd88d6ee664b3e22546c2e6d66bdd851a), [`113cd75`](https://github.com/knitkode/kit/commit/113cd754ba6cf9497752643541defcceebf34a95), [`89e3ba6`](https://github.com/knitkode/kit/commit/89e3ba66f33f8b5c8b7ecc2350d5dadbfd6bc143), [`b131ad6`](https://github.com/knitkode/kit/commit/b131ad61ba1956a5efb1f2a0ad00c76870da8899)]:
- @knitkode/dom@3.0.1
- @knitkode/utils@3.0.1

## 3.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@knitkode/browser",
"version": "3.0.0",
"version": "3.0.1",
"description": "Browser helpers: URL search and hash navigation, storage clients, gtag, device detection, zoned dates.",
"keywords": [
"knitkode",
Expand Down
18 changes: 18 additions & 0 deletions packages/dom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @knitkode/dom

## 3.0.1

### Patch Changes

- [`a04e3ff`](https://github.com/knitkode/kit/commit/a04e3ffbd88d6ee664b3e22546c2e6d66bdd851a) Thanks [@kuus](https://github.com/kuus)! - Fix the event helpers and a few DOM utilities:

- The unbind functions returned by `on`, `listenScroll`, `listenScrollDebounced` and `listenScrollThrottled` remove listeners added with capture (they used to do nothing), and `once(el, type, fn, true)` fires only once.
- `unlisten` matches callbacks by reference instead of by their source code, removes only the matching listener (it used to drop every listener of a type that had just one), and can remove a `listenOnce` listener given its original callback. A new function with the same body as the registered one no longer removes it.
- Delegated listeners: a `listenOnce` callback no longer makes the next listener skip the event, and listeners with a selector no longer throw for events fired on `window` or `document`.
- `getListeners` returns copies, mutating them no longer changes the registry.
- `addClass` and `removeClass` called without a class name do nothing instead of throwing.
- `getScrollbarWidth(element)` returns the element's scrollbar width (`offsetWidth - clientWidth`).
- `isNodeList` returns `false` for array-like plain objects.
- `listenLoaded` called after the `DOMContentLoaded` event still runs its handler (asynchronously).
- `getOffset` no longer subtracts the element's own scroll position, only its offset parents'.
- Updated dependencies [[`113cd75`](https://github.com/knitkode/kit/commit/113cd754ba6cf9497752643541defcceebf34a95), [`89e3ba6`](https://github.com/knitkode/kit/commit/89e3ba66f33f8b5c8b7ecc2350d5dadbfd6bc143), [`b131ad6`](https://github.com/knitkode/kit/commit/b131ad61ba1956a5efb1f2a0ad00c76870da8899)]:
- @knitkode/utils@3.0.1

## 3.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/dom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@knitkode/dom",
"version": "3.0.0",
"version": "3.0.1",
"description": "Tiny, tree-shakeable DOM helpers: selectors, event delegation, scroll and resize listeners, measurements.",
"keywords": [
"knitkode",
Expand Down
15 changes: 15 additions & 0 deletions packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @knitkode/node

## 3.0.1

### Patch Changes

- [`1ad3640`](https://github.com/knitkode/kit/commit/1ad3640499d3efd829475f90409d56f19b503573) Thanks [@kuus](https://github.com/kuus)! - `getDependencyVersion` accepts a `{ from }` option with the directory to resolve the dependency from, e.g. `getDependencyVersion("next", { from: "./apps/web" })` or `getDependencyVersion("next", "major", { from })`. By default it now resolves from the current working directory instead of from where `@knitkode/node` is installed, so it finds the project's own dependencies with strict `node_modules` layouts such as pnpm's.

- [`113cd75`](https://github.com/knitkode/kit/commit/113cd754ba6cf9497752643541defcceebf34a95) Thanks [@kuus](https://github.com/kuus)! - Fix several helpers:

- `fsMoveAndRestoreTemporaryPaths` and `fsMoveAndRestoreTemporaryPathsSync` move the paths out of the destination while the callback runs (they used to copy them), always restore them, even when the callback throws or a path is missing, and run the callback once when there are no paths (it used to run twice).
- `fsFindUpSync` also searches the `stopAt` directory and the file system root.
- `fsWrite` and `fsWriteSync` only drop the leading blank lines, keeping the indentation of the first line.
- `swcCreateTransform` maps root imports of nested libraries without a double slash (`@org/ui/Button`, it used to give `@org/ui//Button`), and `swcTransformsKit` only rewrites root imports, the sub paths of the `@knitkode/*` packages being entry points already.
- Updated dependencies [[`113cd75`](https://github.com/knitkode/kit/commit/113cd754ba6cf9497752643541defcceebf34a95), [`89e3ba6`](https://github.com/knitkode/kit/commit/89e3ba66f33f8b5c8b7ecc2350d5dadbfd6bc143), [`b131ad6`](https://github.com/knitkode/kit/commit/b131ad61ba1956a5efb1f2a0ad00c76870da8899)]:
- @knitkode/utils@3.0.1

## 3.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@knitkode/node",
"version": "3.0.0",
"version": "3.0.1",
"description": "Node.js helpers: file system utilities, dependency version lookup and SWC modularize-imports transforms.",
"keywords": [
"knitkode",
Expand Down
22 changes: 22 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @knitkode/react

## 3.0.1

### Patch Changes

- [`113cd75`](https://github.com/knitkode/kit/commit/113cd754ba6cf9497752643541defcceebf34a95) Thanks [@kuus](https://github.com/kuus)! - `decodeForm` only reads the encoded input names and ignores the plain (honeypot) ones explicitly, instead of relying on `decode` mangling them. It keeps working with the `decode` of this release, which leaves non encoded text as it is.

- [`f1c0e3a`](https://github.com/knitkode/kit/commit/f1c0e3a7e23acc7af5f35e48b34b0554d07ac35e) Thanks [@kuus](https://github.com/kuus)! - Fix hooks, components and the calendar:

- `classed` keeps the text after the last interpolation, and its ref and event handlers are typed with the element type.
- `createUseMediaQueryWidth` supports the `"@md"` shorthand (same as `"@min-md"`).
- `extendComponent` applies its default props on React 19.
- `useMeasure` reports the size changes of every instance's element, `useFixedOffset` computes the offset with the given selector, and both work where `ResizeObserver` is missing.
- `useSmoothScroll` subtracts the fixed offset for numeric targets too, and never scrolls below 0.
- `NoJs` swaps `no-js` for `js` without breaking the other classes. Its inline script changed: update its hash if a Content-Security-Policy allows it by hash.
- `Meta` allows zooming when `zoom` is set.
- `useFocus` returns a tuple and accepts the element type, `useInterval` accepts a `null` delay.
- Calendar: hiding a calendar no longer hides the events of the other ones, the default components no longer pass `$` props to the DOM (no more React warnings), multi-day events keep free rows (no more overlaps and duplicate keys), timed events show on their last day, all-day Google events show on the right day in every timezone, events of calendars missing from `calendarsMap` are shown instead of crashing, and the default navigation title is visible.
- `useCalendar` merges the given `events` with the fetched ones, calls `onError` for failing calendars, shows the Google calendar names in `calendarsMap`, switches view from the displayed range, keeps the clicked event on "today" and no longer mutates the given calendars and dates.
- Updated dependencies [[`a04e3ff`](https://github.com/knitkode/kit/commit/a04e3ffbd88d6ee664b3e22546c2e6d66bdd851a), [`113cd75`](https://github.com/knitkode/kit/commit/113cd754ba6cf9497752643541defcceebf34a95), [`89e3ba6`](https://github.com/knitkode/kit/commit/89e3ba66f33f8b5c8b7ecc2350d5dadbfd6bc143), [`b131ad6`](https://github.com/knitkode/kit/commit/b131ad61ba1956a5efb1f2a0ad00c76870da8899)]:
- @knitkode/dom@3.0.1
- @knitkode/utils@3.0.1

## 3.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@knitkode/react",
"version": "3.0.0",
"version": "3.0.1",
"description": "React hooks and components: scroll, resize and measure hooks, polymorphic helpers, a headless calendar and form antispam.",
"keywords": [
"knitkode",
Expand Down
Loading