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
18 changes: 18 additions & 0 deletions .changeset/deprecate-browser-hooks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'react-simplikit': patch
---

Deprecate hooks that depend on browser-specific APIs

The following hooks are now marked as deprecated:

- `useDoubleClick`
- `useGeolocation`
- `useImpressionRef`
- `useIntersectionObserver`
- `useLongPress`
- `useOutsideClickEffect`
- `useStorageState`
- `useVisibilityEvent`

These hooks will be removed in a future major version as react-simplikit is now focused on platform-independent, pure state/logic hooks.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'

- name: Update npm for OIDC trusted publishing
run: npm install -g npm@latest

- name: Install Dependencies
run: yarn install

Expand All @@ -36,15 +39,20 @@ jobs:
- name: Type Check
run: yarn run test:type

- name: Create Release Pull Request or Publish to npm
- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
with:
title: 'chore: version packages'
commit: 'chore: version packages'
version: yarn run changeset:version
publish: yarn run changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to npm
if: steps.changesets.outputs.hasChangesets == 'false'
run: yarn run changeset:publish
env:
NPM_CONFIG_PROVENANCE: true

get-diffs:
Expand Down
19 changes: 0 additions & 19 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
# react-simplikit

## 0.0.47

### Patch Changes

- [#302](https://github.com/toss/react-simplikit/pull/302) [`9a73aa0`](https://github.com/toss/react-simplikit/commit/9a73aa038f364c8a3733f147142946f0e2ee8a30) Thanks [@kimyouknow](https://github.com/kimyouknow)! - Deprecate hooks that depend on browser-specific APIs

The following hooks are now marked as deprecated:

- `useDoubleClick`
- `useGeolocation`
- `useImpressionRef`
- `useIntersectionObserver`
- `useLongPress`
- `useOutsideClickEffect`
- `useStorageState`
- `useVisibilityEvent`

These hooks will be removed in a future major version as react-simplikit is now focused on platform-independent, pure state/logic hooks.

## 0.0.46

### Patch Changes
Expand Down
Loading