graze-client 0.1.1 → 0.2.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.
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json",
3
3
  "changelog": [
4
- "@changesets/changelog-github",
4
+ "@changesets/changelog-git",
5
5
  {
6
- "repo": "<PLACEHOLDER>"
6
+ "repo": "kristojorg/graze-client"
7
7
  }
8
8
  ],
9
9
  "commit": false,
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # graze-client
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f0bdfd5: Build TS code into ESM and .d.ts files
8
+
3
9
  ## 0.1.1
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -2,7 +2,15 @@
2
2
 
3
3
  This is a simple Typescript package for interacting with the [Graze](https://graze.social/) API. The API is undocumented and not officially supported, but this package was made with their blessing.
4
4
 
5
- It is a bit hastily put together and under development (not all APIs are implemented), but it works. There currently is no bundled code, it is just source Typescript code. You may need to configure your build system or bundler to bundle this for you. If you are using this in a Node.js environment, you can use [tsx](https://github.com/esbuild-kit/tsx) to run the typescript code like regular JS, or you can use [bun](https://bun.sh/).
5
+ ```bash
6
+ npm install graze-client
7
+ ```
8
+
9
+ It is a bit hastily put together and under development (not all APIs are implemented), but it works. Currently it is only deployed as ESM with Typescript declarations.
10
+
11
+ ## Usage
12
+
13
+ **Authentication** is currently cookie-based and a little hacky. You will need to log into Graze in your browser, then copy the cookie from your browser's developer tools, and pass it as a string to the `GrazeService`.
6
14
 
7
15
  There are two exports:
8
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graze-client",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "A Typescript Graze API client.",
@@ -13,9 +13,18 @@
13
13
  "directory": "."
14
14
  },
15
15
  "exports": {
16
- ".": "./src/index.ts",
17
- "./effect": "./src/GrazeClient.ts",
18
- "./schema": "./src/schema/index.ts"
16
+ ".": {
17
+ "import": "./build/esm/index.ts",
18
+ "require": "./build/dts/index.d.ts"
19
+ },
20
+ "./effect": {
21
+ "import": "./build/esm/effect/index.ts",
22
+ "require": "./build/dts/effect/index.d.ts"
23
+ },
24
+ "./schema": {
25
+ "import": "./build/esm/schema/index.ts",
26
+ "require": "./build/dts/schema/index.d.ts"
27
+ }
19
28
  },
20
29
  "scripts": {
21
30
  "codegen": "build-utils prepare-v2",
@@ -40,6 +49,7 @@
40
49
  "@babel/core": "^7.25.2",
41
50
  "@babel/plugin-transform-export-namespace-from": "^7.24.7",
42
51
  "@babel/plugin-transform-modules-commonjs": "^7.24.8",
52
+ "@changesets/changelog-git": "^0.2.0",
43
53
  "@changesets/changelog-github": "^0.5.0",
44
54
  "@changesets/cli": "^2.27.8",
45
55
  "@effect/build-utils": "^0.7.7",
@@ -78,5 +88,6 @@
78
88
  "patchedDependencies": {
79
89
  "@changesets/get-github-info@0.6.0": "patches/@changesets__get-github-info@0.6.0.patch",
80
90
  "babel-plugin-annotate-pure-calls@0.4.0": "patches/babel-plugin-annotate-pure-calls@0.4.0.patch"
81
- }
91
+ },
92
+ "packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
82
93
  }
@@ -5,6 +5,7 @@
5
5
  "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo",
6
6
  "outDir": "build/esm",
7
7
  "declarationDir": "build/dts",
8
- "stripInternal": true
8
+ "stripInternal": true,
9
+ "noEmit": false
9
10
  }
10
11
  }