-
-
Notifications
You must be signed in to change notification settings - Fork 13
feat: v1.0.0 hardening #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
arzafran
wants to merge
15
commits into
main
Choose a base branch
from
feat/v1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7bdf392
feat: harden library for v1.0.0
arzafran 5913fa2
refactor(use-window-size): consolidate width/height/dpr into one stat…
arzafran 67cdae2
ci: set least-privilege permissions on the CI workflow
arzafran 45a3416
refactor(use-debounce): rename private useEffectEvent to useStableCal…
arzafran 222e083
chore: ignore plans directory
arzafran 4dfd7f2
chore: stop tracking local Claude settings
arzafran f22fa19
chore(deps): bump happy-dom to ^20 (fixes critical VM context-escape …
arzafran acaac51
chore(deps): clear remaining Dependabot advisories in playground
arzafran c8c6c6a
fix(playground): restore green build
arzafran 652fcb5
fix(playground): link hamo locally and align React 19
arzafran fd179ad
chore(playground): drop dead lorem-ipsum dep, bump TypeScript to 6
arzafran eb6e4c2
refactor: restructure library into packages/hamo monorepo
arzafran 8fb3243
chore: remove dead docs/ directory
arzafran 428de5e
feat: add useScrollTrigger, useTransform, useEffectEvent (port of #11…
arzafran 75c2132
refactor(hamo): simplify hook internals from whole-codebase review
arzafran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version: latest | ||
| - run: bun install --frozen-lockfile | ||
| - run: bun run typecheck | ||
| - run: bun run lint | ||
| - run: bun run build | ||
|
|
||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| react: [18, 19] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version: latest | ||
| - run: bun install --frozen-lockfile | ||
| - name: Pin React ${{ matrix.react }} | ||
| if: matrix.react == 18 | ||
| run: bun add --cwd packages/hamo -d react@18 react-dom@18 @types/react@18 @types/react-dom@18 | ||
| - run: bun run test | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,34 @@ | ||
| name: Publish to NPM | ||
| name: Publish to npm | ||
|
|
||
| on: | ||
| release: | ||
| types: [created] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write # required for npm provenance | ||
|
|
||
| jobs: | ||
| build: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@v3 | ||
| - uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| node-version: 16 | ||
| registry-url: 'https://registry.npmjs.org' | ||
| bun-version: latest | ||
|
|
||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@v2 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| version: 7 | ||
| run_install: false | ||
| node-version: 20 | ||
| registry-url: 'https://registry.npmjs.org' | ||
|
|
||
| - run: bun install --frozen-lockfile | ||
| - run: bun run typecheck | ||
| - run: bun run lint | ||
| - run: bun run test | ||
| - run: bun run build | ||
|
|
||
| - name: Install dependencies and build | ||
| run: pnpm i --frozen-lockfile | ||
| - name: Publish package on NPM | ||
| run: npm publish | ||
| - run: cd packages/hamo && npm publish --provenance --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,5 @@ node_modules | |
| .DS_Store | ||
| dist | ||
| bundled | ||
| bun.lock | ||
| plans | ||
| .claude/settings.local.json | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.