Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
94c1aa8
chore: migrate to Yarn 4, remove @testing-library/react-hooks, update…
AliceR Oct 16, 2025
d89a955
chore: upgrade deps, migrate context/hooks, switch to vite
AliceR Oct 22, 2025
b43d0ef
chore: integrate prettier with eslint, fix lint/format errors
AliceR Oct 22, 2025
4ad796e
Update version to 0.1.0
AliceR Oct 22, 2025
4ad048d
chore: update ESLint TypeScript setup and nvm version
AliceR Oct 22, 2025
a93b27c
docs: start architecture decision log and add ADR for fetch library d…
AliceR Oct 23, 2025
9bccaaa
feat: migrate useCollections hook to TanStack Query
AliceR Oct 23, 2025
e40fcce
feat: enable TanStack Query DevTools browser extension
AliceR Oct 27, 2025
a04443b
feat: migrate useItem hook to TanStack Query
AliceR Oct 27, 2025
3013303
docs(example): add item detail panel demonstrating useItem hook
AliceR Oct 27, 2025
9999717
feat: migrate useStacApi hook to TanStack Query
AliceR Oct 30, 2025
4d0f701
feat: migrate useStacSearch hook to TanStack Query
AliceR Nov 17, 2025
e0819c4
fix: externalize @tanstack/react-query in build and fix StacApiProvid…
AliceR Nov 17, 2025
1dfbf58
fix: generate index.d.ts at dist root for proper TypeScript imports
AliceR Nov 18, 2025
9f30e60
feat: optimize React Query cache keys
AliceR Nov 24, 2025
6f5713d
fix: make DevTools opt-in to avoid conflicts with consuming apps
AliceR Nov 25, 2025
bc3550d
docs: add comment explaining gcTime in test wrapper
AliceR Nov 25, 2025
0b4bcdc
refactor: replace Object.assign error pattern with ApiError class
AliceR Nov 27, 2025
3ddb6f2
refactor: replace queryClient prop with auto-detecting parent QueryCl…
AliceR Nov 27, 2025
363d53e
test: add StacApiProvider test coverage
AliceR Nov 27, 2025
fd431a3
refactor!: remove collections/items state from context
AliceR Nov 27, 2025
802d1a2
Revert "refactor: replace queryClient prop with auto-detecting parent…
AliceR Nov 27, 2025
dc9c226
test: update tests to use queryClient prop when providing custom client
AliceR Nov 27, 2025
2752ceb
example: add custom QueryClient with optimized caching
AliceR Nov 27, 2025
f86970f
docs: update QueryClient example and update API reference
AliceR Nov 27, 2025
3236166
refactor!: replace LoadingState with React Query's isLoading/isFetching
AliceR Nov 27, 2025
c785dea
refactor: fetch single collection directly from /collections/{id} end…
AliceR Nov 27, 2025
0109e59
fix: properly type reload as async across all hooks
AliceR Nov 27, 2025
44882cb
refactor!: rename reload to refetch in hooks API
AliceR Nov 27, 2025
9ecb267
docs: add migration guide for v1.0.0 (TanStack Query integration)
AliceR Nov 28, 2025
cc60b1d
chore: bump version to 1.0.0
AliceR Nov 28, 2025
6b75fcc
fix: make date range parameters optional in useStacSearch hook
AliceR Nov 28, 2025
ec62ab4
fix: add comprehensive error handling for JSON parsing failures
AliceR Nov 28, 2025
9cb92fa
fix: prevent memory leak in debounced submit function
AliceR Nov 28, 2025
32272eb
docs: Add comment to clarify inner component pattern
AliceR Dec 15, 2025
815d89e
Consolidate response parsing logic into handleStacResponse utility
AliceR Dec 15, 2025
6849141
refactor: add base StacHook interface for type consistency
AliceR Dec 15, 2025
a4b4881
Merge pull request #27 – Migrate to TanStack Query for Data Fetching …
AliceR Dec 15, 2025
db165ff
Update stac api error handling
danielfdsilva Dec 16, 2025
ed9de8f
Fix tests
danielfdsilva Dec 16, 2025
48dcba0
Use handleStacResponse for useStacApi to ensure consistency
danielfdsilva Dec 16, 2025
26b7636
Removes 'Content-Type' header from GET requests leaving it only on POST
danielfdsilva Dec 16, 2025
31466c6
Add utils
danielfdsilva Dec 16, 2025
93045d9
Ensure error has a standard interface
danielfdsilva Dec 16, 2025
fb495d2
Update handleStacResponse tests
danielfdsilva Dec 16, 2025
98a7906
Update checks wokflow
danielfdsilva Dec 16, 2025
58eb5dc
Fix lint errors
danielfdsilva Dec 16, 2025
7bf5366
Fix date handling ensuring there's always a time
danielfdsilva Dec 16, 2025
3f9be54
Merge pull request #43 from developmentseed/feature/40-dates
danielfdsilva Dec 17, 2025
879bf33
Merge pull request #42 from developmentseed/feature/error-handling
danielfdsilva Dec 17, 2025
c894df5
Update version to include alpha tag
danielfdsilva Dec 17, 2025
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
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

62 changes: 0 additions & 62 deletions .eslintrc.json

This file was deleted.

83 changes: 40 additions & 43 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,63 @@
name: Checks
on:
push:
branches:
- main

on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
- ready_for_review

env:
NODE: 16
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
prep:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: Use Node.js ${{ env.NODE }}
uses: actions/setup-node@v1
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE }}
node-version-file: '.nvmrc'

- name: Cache node_modules
uses: actions/cache@v2
uses: actions/cache@v5
id: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
key: ${{ runner.os }}-build-${{ hashFiles('**/package.json') }}

- name: Install
run: yarn install
run: corepack enable && yarn install

lint:
needs: prep
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: Use Node.js ${{ env.NODE }}
uses: actions/setup-node@v1
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE }}
node-version-file: '.nvmrc'

- name: Cache node_modules
uses: actions/cache@v2
uses: actions/cache@v5
id: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
key: ${{ runner.os }}-build-${{ hashFiles('**/package.json') }}

- name: Install
run: yarn install
run: corepack enable && yarn install

- name: Lint
run: yarn lint
Expand All @@ -71,48 +68,48 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: Use Node.js ${{ env.NODE }}
uses: actions/setup-node@v1
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE }}
node-version-file: '.nvmrc'

- name: Cache node_modules
uses: actions/cache@v2
uses: actions/cache@v5
id: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
key: ${{ runner.os }}-build-${{ hashFiles('**/package.json') }}

- name: Install
run: yarn install
run: corepack enable && yarn install

- name: Test
run: yarn test

build:
needs: test
needs: prep
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: Use Node.js ${{ env.NODE }}
uses: actions/setup-node@v1
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE }}
node-version-file: '.nvmrc'

- name: Cache node_modules
uses: actions/cache@v2
uses: actions/cache@v5
id: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
key: ${{ runner.os }}-build-${{ hashFiles('**/package.json') }}

- name: Install
run: yarn install
run: corepack enable && yarn install

- name: Test
run: yarn build
run: yarn test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
dist/
build/
coverage/
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 100,
"tabWidth": 2
}
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
Loading