Skip to content

Commit c895f3c

Browse files
committed
v0.3.1 changelog
1 parent c6a19aa commit c895f3c

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## v0.3.1 (2022-01-28)
4+
5+
### Added
6+
7+
- Exported the `platformModifier` string for direct use
8+
(e.g. in search trigger labels).
9+
10+
### Removed
11+
12+
- Removed `{{platformModifier}}` tag replacement.
13+
14+
### Fixed
15+
16+
- Depend on the more reliable `site.url(<string> page.data.url)`
17+
for detecting Lume page URLs.
18+
319
## v0.3.0 (2022-01-27)
420

521
### Added

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ site.use(psyche());
4747
```
4848

4949
The indexer can be configured by providing a `LumeConfig` object
50-
as the first argument of the `psyche()` call (see [types.d.ts](./types.d.ts#L133)).
50+
as the first argument of the `psyche()` call (see [types.d.ts](./types.d.ts#L131)).
5151

5252
By default:
5353

@@ -79,7 +79,7 @@ import psyche from 'https://deno.land/x/psyche/client/psyche.min.mjs';
7979

8080
The `psyche` default export is a function that when provided with
8181
a `ClientConfig` object (see [types.d.ts](./types.d.ts#L31)) will
82-
return a `ClientInstance` (see [types.d.ts](./types.d.ts#L109)).
82+
return a `ClientInstance` (see [types.d.ts](./types.d.ts#L107)).
8383

8484
Calling `.register()` on a client instance will insert the component
8585
into the document and listen for hotkey presses. The component can
@@ -100,19 +100,18 @@ searchInstance.open();
100100

101101
To add a hotkey to the list in the search modal,
102102
add it to the `hotkeys` array of psyche's `ClientConfig`
103-
object (see [types.d.ts](./types.d.ts#L31)). The special
104-
`{{platformModifier}}` can be used within the `kbd` property
105-
of a hotkey for platform-dependent hotkeys: equivalent
106-
to the <kbd>Command (⌘)</kbd> key on MacOS or the <kbd>CTRL</kbd>
103+
object (see [types.d.ts](./types.d.ts#L31)).
104+
105+
For platform-dependent hotkeys, the named export `platformModifier`
106+
will be equivalent to the <kbd></kbd> key on MacOS or the <kbd>CTRL</kbd>
107107
key on other platforms.
108108

109-
To handle hotkeys, provide a `ClientHotkey` object (see [types.d.ts](./types.d.ts#L126))
109+
To handle hotkeys, provide a `ClientHotkey` object (see [types.d.ts](./types.d.ts#L124))
110110
to the named export `registerHotkey`. This is a `KeyboardEvent` partial with a few
111111
additional properties:
112112

113113
- the `platformModifier` property is equivalent to `metaKey` on MacOS
114-
or `ctrlKey` on other platforms (for use with the `{{platformModifier}}`
115-
described above).
114+
or `ctrlKey` on other platforms.
116115
- the `onkeydown` property will be called when the key combination is pressed
117116
down, passed the triggered `KeyboardEvent` as its first argument.
118117
- the `onkeyup` property will be called when the key combination is released,

0 commit comments

Comments
 (0)