@goliapkg/sentori-svelte 0.3.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +42 -0
  2. package/package.json +5 -4
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # @goliapkg/sentori-svelte
2
+
3
+ Svelte 4 / 5 / SvelteKit SDK for [Sentori](https://sentori.golia.jp).
4
+ Wires the global error hooks + the SvelteKit `handleError` adapter
5
+ in one call.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ bun add @goliapkg/sentori-svelte @goliapkg/sentori-javascript
11
+ ```
12
+
13
+ ## Use
14
+
15
+ ```ts
16
+ // src/lib/sentori.ts
17
+ import { initSentoriSvelte } from '@goliapkg/sentori-svelte'
18
+
19
+ export const { handleError } = initSentoriSvelte({
20
+ token: 'st_pk_…',
21
+ release: 'my-app@1.2.3',
22
+ environment: 'prod',
23
+ })
24
+ ```
25
+
26
+ ```ts
27
+ // src/hooks.client.ts
28
+ export { handleError } from '$lib/sentori'
29
+ ```
30
+
31
+ ```ts
32
+ // src/hooks.server.ts
33
+ export { handleError } from '$lib/sentori'
34
+ ```
35
+
36
+ → Full guide: [sentori.golia.jp/docs/sdk-svelte](https://sentori.golia.jp/docs/sdk-svelte)
37
+ → Sentry drop-in: [sentori.golia.jp/docs/sentry-compat](https://sentori.golia.jp/docs/sentry-compat)
38
+
39
+ ## License
40
+
41
+ Dual-licensed under [Apache-2.0](../../LICENSE-APACHE) OR
42
+ [MIT](../../LICENSE-MIT).
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@goliapkg/sentori-svelte",
3
- "version": "0.3.0",
3
+ "version": "1.0.0",
4
4
  "description": "Svelte / SvelteKit adapter for Sentori — hooks.client + hooks.server init helpers, page navigation tracing.",
5
- "license": "MIT",
5
+ "license": "Apache-2.0 OR MIT",
6
+ "author": "GOLIA K.K. <takagi@golia.jp> (https://golia.jp)",
6
7
  "homepage": "https://sentori.golia.jp",
7
8
  "repository": {
8
9
  "type": "git",
@@ -47,8 +48,8 @@
47
48
  }
48
49
  },
49
50
  "dependencies": {
50
- "@goliapkg/sentori-core": "^0.10.0",
51
- "@goliapkg/sentori-javascript": "^0.6.0"
51
+ "@goliapkg/sentori-core": "^1.0.0",
52
+ "@goliapkg/sentori-javascript": "^1.0.0"
52
53
  },
53
54
  "devDependencies": {
54
55
  "@types/bun": "latest",