Skip to content

Commit a6913a6

Browse files
authored
Merge pull request #6 from pubkeyapp/beeman/resolver
feat: implement @pubkey-cache/resolver and @pubkey-cache/server
2 parents ea62882 + 7f48398 commit a6913a6

File tree

89 files changed

+5521
-135
lines changed

Some content is hidden

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

89 files changed

+5521
-135
lines changed

.changeset/two-oranges-dress.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@pubkey-cache/resolver': major
3+
'@pubkey-cache/server': major
4+
'@pubkey-cache/react': major
5+
'@pubkey-cache/core': major
6+
---
7+
8+
implement @pubkey-cache/resolver and @pubkey-cache/server

.github/workflows/bundlesize.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
pull_request:
8-
types: [synchronize, opened, reopened]
8+
types: [ synchronize, opened, reopened ]
99

1010
env:
1111
# Among other things, opts out of Turborepo telemetry
@@ -31,7 +31,11 @@ jobs:
3131
version: current
3232

3333
- name: Build
34-
run: pnpm turbo compile:js --concurrency=${TURBO_CONCURRENCY:-1}
34+
run: pnpm turbo compile:js compile:typedefs --concurrency=${TURBO_CONCURRENCY:-1}
3535

3636
- name: BundleMon
3737
uses: lironer/bundlemon-action@v1
38+
env:
39+
# Always compare to the main branch; prevents stacked PRs from being
40+
# compared to the wrong mergebase (ie. the PR beneath the current one)
41+
CI_TARGET_BRANCH: main

examples/node-redis/.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/<blah>
2+
HELIUS_API_KEY=foo-bar-baz-qux
3+
HOSTNAME=localhost
4+
PORT=3080
5+
REDIS_URL=redis://localhost:6379
6+
RESOLVERS=helius-nft-holders:5FusHaKEKjfKsmQwXNrhFcFABGGxu7iYCdbvyVSRe3Ri|helius-token-holders:Ds52CDgqdWbTWsua1hgT3AuSSy4FNx2Ezge1br3jQ14a
7+
VERBOSE=true

examples/node-redis/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.env
2+
.turbo
3+
/tmp
4+
dist
5+
node_modules
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add files here to ignore them from prettier formatting
2+
dist
3+
coverage
4+
node_modules
5+
tmp
6+
pnpm-lock.yaml

examples/node-redis/.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"arrowParens": "always",
3+
"printWidth": 120,
4+
"semi": false,
5+
"singleQuote": true,
6+
"trailingComma": "all"
7+
}

examples/node-redis/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Bram Borggreve https://github.com/beeman
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

examples/node-redis/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# node-redis
2+
3+
Example node.js app that uses @pubkey-cache/resolver to cache data into redis.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
services:
2+
redis:
3+
image: redis:7-alpine
4+
ports:
5+
- '6379:6379'
6+
volumes:
7+
- ./tmp/redis:/data
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import globals from 'globals'
2+
3+
import baseConfig from '../../eslint.config.mjs'
4+
5+
export default [
6+
{
7+
ignores: ['**/dist', '**/*.css'],
8+
},
9+
...baseConfig,
10+
{
11+
languageOptions: {
12+
globals: {
13+
...globals.es2020,
14+
},
15+
parserOptions: {
16+
project: './tsconfig.json',
17+
},
18+
},
19+
rules: {
20+
'@typescript-eslint/no-misused-promises': 'off',
21+
'@typescript-eslint/no-unsafe-argument': 'off',
22+
'@typescript-eslint/no-unsafe-assignment': 'off',
23+
'@typescript-eslint/restrict-template-expressions': 'error',
24+
},
25+
},
26+
]

0 commit comments

Comments
 (0)