graze-client 0.1.0 → 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,17 @@
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
+
9
+ ## 0.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Readme updates
14
+
3
15
  ## 0.1.0
4
16
 
5
17
  ### Minor 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.
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,9 +1,9 @@
1
1
  {
2
2
  "name": "graze-client",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
- "description": "A basic Effect package",
6
+ "description": "A Typescript Graze API client.",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/kristojorg/graze-client"
@@ -14,19 +14,16 @@
14
14
  },
15
15
  "exports": {
16
16
  ".": {
17
- "types": "./dist/dts/index.d.ts",
18
- "import": "./dist/esm/index.js",
19
- "default": "./dist/cjs/index.js"
17
+ "import": "./build/esm/index.ts",
18
+ "require": "./build/dts/index.d.ts"
20
19
  },
21
20
  "./effect": {
22
- "types": "./dist/dts/GrazeClient.d.ts",
23
- "import": "./dist/esm/GrazeClient.js",
24
- "default": "./dist/cjs/GrazeClient.js"
21
+ "import": "./build/esm/effect/index.ts",
22
+ "require": "./build/dts/effect/index.d.ts"
25
23
  },
26
24
  "./schema": {
27
- "types": "./dist/dts/schema/index.d.ts",
28
- "import": "./dist/esm/schema/index.js",
29
- "default": "./dist/cjs/schema/index.js"
25
+ "import": "./build/esm/schema/index.ts",
26
+ "require": "./build/dts/schema/index.d.ts"
30
27
  }
31
28
  },
32
29
  "scripts": {
@@ -52,6 +49,7 @@
52
49
  "@babel/core": "^7.25.2",
53
50
  "@babel/plugin-transform-export-namespace-from": "^7.24.7",
54
51
  "@babel/plugin-transform-modules-commonjs": "^7.24.8",
52
+ "@changesets/changelog-git": "^0.2.0",
55
53
  "@changesets/changelog-github": "^0.5.0",
56
54
  "@changesets/cli": "^2.27.8",
57
55
  "@effect/build-utils": "^0.7.7",
@@ -90,5 +88,6 @@
90
88
  "patchedDependencies": {
91
89
  "@changesets/get-github-info@0.6.0": "patches/@changesets__get-github-info@0.6.0.patch",
92
90
  "babel-plugin-annotate-pure-calls@0.4.0": "patches/babel-plugin-annotate-pure-calls@0.4.0.patch"
93
- }
91
+ },
92
+ "packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
94
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
  }