Skip to content

Commit 9a151ec

Browse files
Merge pull request #3 from powersync-ja/update-main-2
Update From Upstream
2 parents d89cb13 + 828fb71 commit 9a151ec

File tree

137 files changed

+20146
-3559
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+20146
-3559
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@tanstack/db": patch
3+
---
4+
5+
Add in-memory fallback for localStorage collections in SSR environments
6+
7+
Prevents errors when localStorage collections are imported on the server by automatically falling back to an in-memory store. This allows isomorphic JavaScript applications to safely import localStorage collection modules without errors during module initialization.
8+
9+
When localStorage is not available (e.g., in server-side rendering environments), the collection automatically uses an in-memory storage implementation. Data will not persist across page reloads or be shared across tabs when using the in-memory fallback, but the collection will function normally otherwise.
10+
11+
Fixes #691

.changeset/olive-boxes-lie.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: 🐛 Bug Report
3+
about: Create a report to help us improve
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
- [ ] I've validated the bug against the latest version of DB packages
10+
11+
**Describe the bug**
12+
A clear and concise description of what the bug is.
13+
14+
**To Reproduce**
15+
Steps to reproduce the behavior:
16+
17+
1. Go to '...'
18+
2. Click on '....'
19+
3. Scroll down to '....'
20+
4. See error
21+
22+
**Expected behavior**
23+
A clear and concise description of what you expected to happen.
24+
25+
**Screenshots**
26+
If applicable, add screenshots to help explain your problem.
27+
28+
**Desktop (please complete the following information):**
29+
30+
- OS: [e.g. iOS]
31+
- Browser [e.g. chrome, safari]
32+
- Version [e.g. 22]
33+
34+
**Smartphone (please complete the following information):**
35+
36+
- Device: [e.g. iPhone6]
37+
- OS: [e.g. iOS8.1]
38+
- Browser [e.g. stock browser, safari]
39+
- Version [e.g. 22]
40+
41+
**Additional context**
42+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 🤔 Feature Requests & Questions
4+
url: https://github.com/TanStack/db/discussions
5+
about: Please ask and answer questions here.
6+
- name: 💬 Community Chat
7+
url: https://discord.gg/mQd7egN
8+
about: A dedicated discord server hosted by TanStack
9+
- name: 🦋 TanStack Bluesky
10+
url: https://bsky.app/profile/tanstack.com
11+
about: Stay up to date with new releases of our libraries

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- name: Run Tests
3232
run: pnpm run lint && pnpm run build && pnpm run test
3333
- name: Run Changesets (version or publish)
34+
id: changesets
3435
uses: changesets/[email protected]
3536
with:
3637
version: pnpm run changeset:version
@@ -40,3 +41,8 @@ jobs:
4041
env:
4142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4243
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
- name: Comment on PRs about release
45+
if: steps.changesets.outputs.published == 'true'
46+
uses: tanstack/config/.github/comment-on-release@main
47+
with:
48+
published-packages: ${{ steps.changesets.outputs.publishedPackages }}

0 commit comments

Comments
 (0)