Skip to content

Commit b3ccda0

Browse files
committed
Update PocketBase SDK and TanStack Query Client
1 parent a821bc0 commit b3ccda0

File tree

7 files changed

+44
-39
lines changed

7 files changed

+44
-39
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const libNames = new Set(["uuid", "numbro", "Papa"]);
1+
export const libNames = new Set(["uuid", "numbro", "Papa", "pb", "qc"]);

docs/en/build-apps/use-third-party-libraries.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ Every developer learns one of the most important principles of software engineer
66

77
PocketBlocks provides some JavaScript built-in libraries for use.
88

9-
| Library | Docs | Version |
10-
| --------- | -------------------------------------------------------------------- | ---------------------------- |
11-
| lodash | [https://lodash.com/docs/](https://lodash.com/docs/) | 4.17.21 |
12-
| moment | [https://momentjs.com/docs/](https://momentjs.com/docs/) | 2.29.3 |
13-
| uuid | [https://github.com/uuidjs/uuid](https://github.com/uuidjs/uuid) | 8.3.2(Support v1/v3/v4/v5) |
14-
| numbro | [https://numbrojs.com/format.html](https://numbrojs.com/format.html) | 2.3.6 |
15-
| papaparse | [https://www.papaparse.com/docs](https://www.papaparse.com/docs) | 5.3.2 |
9+
| Library | Docs | Version |
10+
| ------------------------ | -------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
11+
| lodash | [https://lodash.com/docs/](https://lodash.com/docs/) | 4.17.21 |
12+
| moment | [https://momentjs.com/docs/](https://momentjs.com/docs/) | 2.29.3 |
13+
| uuid | [https://github.com/uuidjs/uuid](https://github.com/uuidjs/uuid) | 8.3.2(Support v1/v3/v4/v5) |
14+
| numbro | [https://numbrojs.com/format.html](https://numbrojs.com/format.html) | 2.3.6 |
15+
| papaparse(Papa) | [https://www.papaparse.com/docs](https://www.papaparse.com/docs) | 5.3.2 |
16+
| PocketBase SDK(pb) | [https://pocketbase.io/docs/client-side-sdks](https://pocketbase.io/docs/client-side-sdks) | 0.21.3 |
17+
| TanStack QueryClient(qc) | [https://tanstack.com/query/v5/docs/reference/QueryClient](https://tanstack.com/query/v5/docs/reference/QueryClient) | 5.44.0 |
1618

1719
## Manually import third-party libraries
1820

docs/en/misc/data-sources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
PocketBlocks integrates Openblocks and PocketBase, or at least the client's part. As this project aims to create as much flexibility as possible between those two software, we opted not to port the **data source/query library** features as we have access to the [Pocketbase SDK](https://pocketbase.io/docs/client-side-sdks/) through **window.pb**. We also can use the [extend features](https://pocketbase.io/docs/js-overview/) of Pocketbase to integrate with data sources using something like [n8n](https://n8n.io/) or [Zarpier](https://zapier.com/).
44

55
{% hint style="info" %}
6-
We also provide a [QueryClient instance](https://tanstack.com/query/v4/docs/react/reference/QueryClient) for caching purposes. You can access it with **window.qc**. It uses sessionStorage with a staleTime of 5 minutes.
6+
We also provide a [QueryClient instance](https://tanstack.com/query/v5/docs/reference/QueryClient) for caching purposes. You can access it with **window.qc**. It uses sessionStorage with a staleTime of 5 minutes.
77
{% endhint %}

docs/pt-br/build-apps/use-third-party-libraries.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ Todo desenvolvedor aprende um dos princípios mais importantes da engenharia de
66

77
PocketBlocks fornece algumas bibliotecas JavaScript integradas para uso.
88

9-
| Biblioteca | Documentação | Versão |
10-
| ---------- | -------------------------------------------------------------------- | ---------------------------- |
11-
| lodash | [https://lodash.com/docs/](https://lodash.com/docs/) | 4.17.21 |
12-
| moment | [https://momentjs.com/docs/](https://momentjs.com/docs/) | 2.29.3 |
13-
| uuid | [https://github.com/uuidjs/uuid](https://github.com/uuidjs/uuid) | 8.3.2(Suporta v1/v3/v4/v5) |
14-
| numbro | [https://numbrojs.com/format.html](https://numbrojs.com/format.html) | 2.3.6 |
15-
| papaparse | [https://www.papaparse.com/docs](https://www.papaparse.com/docs) | 5.3.2 |
9+
| Biblioteca | Documentação | Versão |
10+
| ------------------------ | -------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
11+
| lodash | [https://lodash.com/docs/](https://lodash.com/docs/) | 4.17.21 |
12+
| moment | [https://momentjs.com/docs/](https://momentjs.com/docs/) | 2.29.3 |
13+
| uuid | [https://github.com/uuidjs/uuid](https://github.com/uuidjs/uuid) | 8.3.2(Support v1/v3/v4/v5) |
14+
| numbro | [https://numbrojs.com/format.html](https://numbrojs.com/format.html) | 2.3.6 |
15+
| papaparse(Papa) | [https://www.papaparse.com/docs](https://www.papaparse.com/docs) | 5.3.2 |
16+
| PocketBase SDK(pb) | [https://pocketbase.io/docs/client-side-sdks](https://pocketbase.io/docs/client-side-sdks) | 0.21.3 |
17+
| TanStack QueryClient(qc) | [https://tanstack.com/query/v5/docs/reference/QueryClient](https://tanstack.com/query/v5/docs/reference/QueryClient) | 5.44.0 |
1618

1719
## Importando manualmente bibliotecas de terceiros
1820

docs/pt-br/misc/data-sources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
PocketBlocks integra Openblocks e PocketBase, ou pelo menos a parte do cliente. Como este projeto visa criar o máximo de flexibilidade possível entre esses dois softwares, optamos por não portar os recursos **fonte de dados/biblioteca de consulta**, pois temos acesso ao [Pocketbase SDK](https://pocketbase.io/docs/client-side-sdks/) por meio do **window.pb**. Também podemos usar os [recursos de extensão](https://pocketbase.io/docs/js-overview/) do Pocketbase para integração com fontes de dados usando algo como [n8n](https://n8n.io/) ou [ Zarpier](https://zapier.com/).
44

55
{% dica estilo = "info" %}
6-
Também fornecemos uma [instância do QueryClient](https://tanstack.com/query/v4/docs/react/reference/QueryClient) para fins de armazenamento em cache. Você pode acessá-lo com **window.qc**. Ele usa sessionStorage com staleTime de 5 minutos.
6+
Também fornecemos uma [instância do QueryClient](https://tanstack.com/query/v5/docs/reference/QueryClient) para fins de armazenamento em cache. Você pode acessá-lo com **window.qc**. Ele usa sessionStorage com staleTime de 5 minutos.
77
{% endhint %}

proxy/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
"vite": "^4.5.3"
2525
},
2626
"dependencies": {
27-
"@tanstack/query-core": "^4.35.0",
28-
"@tanstack/query-persist-client-core": "^4.35.0",
29-
"@tanstack/query-sync-storage-persister": "^4.35.0",
27+
"@tanstack/query-core": "^5.44.0",
28+
"@tanstack/query-persist-client-core": "^5.44.0",
29+
"@tanstack/query-sync-storage-persister": "^5.44.0",
3030
"axios-mock-adapter": "^1.22.0",
3131
"i18next": "^23.5.1",
3232
"i18next-browser-languagedetector": "^7.1.0",
3333
"lz-string": "^1.5.0",
3434
"path-to-regexp": "^6.2.1",
35-
"pocketbase": "^0.18.0"
35+
"pocketbase": "^0.21.3"
3636
}
3737
}

proxy/yarn.lock

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -196,24 +196,25 @@
196196
"@nodelib/fs.scandir" "2.1.5"
197197
fastq "^1.6.0"
198198

199-
"@tanstack/query-core@4.35.3", "@tanstack/query-core@^4.35.0":
200-
version "4.35.3"
201-
resolved "https://registry.npmjs.org/@tanstack/query-core/-/query-core-4.35.3.tgz"
202-
integrity sha512-PS+WEjd9wzKTyNjjQymvcOe1yg8f3wYc6mD+vb6CKyZAKvu4sIJwryfqfBULITKCla7P9C4l5e9RXePHvZOZeQ==
199+
"@tanstack/query-core@5.44.0", "@tanstack/query-core@^5.44.0":
200+
version "5.44.0"
201+
resolved "https://registry.yarnpkg.com/@tanstack/query-core/-/query-core-5.44.0.tgz#f7d5e04eaca0ed0c8ff52b36d0a6df142b3a78fb"
202+
integrity sha512-Fa1J7iEEyJnjXG1N4+Fz4OXNH/INve3XSn0Htms3X4wgRsXHxMDwqBE2XtDCts7swkwSIs4izEtaFqWVFr/eLQ==
203203

204-
"@tanstack/query-persist-client-core@4.35.3", "@tanstack/query-persist-client-core@^4.35.0":
205-
version "4.35.3"
206-
resolved "https://registry.npmjs.org/@tanstack/query-persist-client-core/-/query-persist-client-core-4.35.3.tgz"
207-
integrity sha512-UlUMsvmy12qgPzphIq8iyFtwxuv/vaEyFQEFDVVCvyrqj2G020qMZiCA1vj3+gasmCXh59EraiC2eY4Iqo0/PA==
204+
"@tanstack/query-persist-client-core@5.44.0", "@tanstack/query-persist-client-core@^5.44.0":
205+
version "5.44.0"
206+
resolved "https://registry.yarnpkg.com/@tanstack/query-persist-client-core/-/query-persist-client-core-5.44.0.tgz#c30770082e944c3fb7c0b2c146d2dba0f913d47c"
207+
integrity sha512-S9JvOsIWC/lXKBHBw7pHHMHdKecFEmZs7Znik5+YtukasniF7glXdGGmvFcoqweeqneAVyPX0gtoMvf1Dz71dw==
208208
dependencies:
209-
"@tanstack/query-core" "4.35.3"
209+
"@tanstack/query-core" "5.44.0"
210210

211-
"@tanstack/query-sync-storage-persister@^4.35.0":
212-
version "4.35.3"
213-
resolved "https://registry.npmjs.org/@tanstack/query-sync-storage-persister/-/query-sync-storage-persister-4.35.3.tgz"
214-
integrity sha512-q9axt4iJkRnhR9R9qou+Q2+T2S21jwgf/7carYs9DQGLoE9r9YnwxgbmDE72yQd1glcsGF26UqqO6WO8ziNCrQ==
211+
"@tanstack/query-sync-storage-persister@^5.44.0":
212+
version "5.44.0"
213+
resolved "https://registry.yarnpkg.com/@tanstack/query-sync-storage-persister/-/query-sync-storage-persister-5.44.0.tgz#3c65f9d05de26f8e3224bde635e1e41a9fc0485d"
214+
integrity sha512-/ZamsjzP3UxH8sRTdhpNNoUPfo1ZjoJ2wrn3dDZGw95AMQprCXNhoT+nVSaqvo0pmvArY9M1N3QVXwx3ZLI2LQ==
215215
dependencies:
216-
"@tanstack/query-persist-client-core" "4.35.3"
216+
"@tanstack/query-core" "5.44.0"
217+
"@tanstack/query-persist-client-core" "5.44.0"
217218

218219
"@types/json-schema@^7.0.12":
219220
version "7.0.13"
@@ -1011,10 +1012,10 @@ picomatch@^2.3.1:
10111012
resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz"
10121013
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
10131014

1014-
pocketbase@^0.18.0:
1015-
version "0.18.0"
1016-
resolved "https://registry.npmjs.org/pocketbase/-/pocketbase-0.18.0.tgz"
1017-
integrity sha512-09ri0Rnm4JjboU4OJeibd6pgvKi4DPg/r/Uu/QI3mKSZsrROoMT75zyiOldbBBMWZUDG1TRlv6BjQj30SFsrVw==
1015+
pocketbase@^0.21.3:
1016+
version "0.21.3"
1017+
resolved "https://registry.yarnpkg.com/pocketbase/-/pocketbase-0.21.3.tgz#83e16bec07ba649649c313e85cc5786a84dc422e"
1018+
integrity sha512-bsQRZ1mj4dhPJ4P5iSrDqWQtBX2NtuBkf6IOZwTv27zZOw6zrISgo963i5JD/99qKKD5aMSMDPGk1BE9ZyI7Cg==
10181019

10191020
postcss@^8.4.27:
10201021
version "8.4.31"

0 commit comments

Comments
 (0)