@atproto/oauth-client-browser-example 0.1.1 → 0.1.3

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,111 @@
1
+ # @atproto/oauth-client-browser-example
2
+
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#5099](https://github.com/bluesky-social/atproto/pull/5099) [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Convert source from CJS to ESM
8
+
9
+ - [#5099](https://github.com/bluesky-social/atproto/pull/5099) [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Update TypeScript build to rely on references to composite internal projects
10
+
11
+ - [#5099](https://github.com/bluesky-social/atproto/pull/5099) [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Bundle only necessary files in the NPM tarball, including the `CHANGELOG.md` and `README.md` files (if present).
12
+
13
+ - [#5099](https://github.com/bluesky-social/atproto/pull/5099) [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Properly type the `default` export
14
+
15
+ - [#5099](https://github.com/bluesky-social/atproto/pull/5099) [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Remove `start` function from `/server` export
16
+
17
+ ## 0.1.2
18
+
19
+ ### Patch Changes
20
+
21
+ - [#5151](https://github.com/bluesky-social/atproto/pull/5151) [`a51c45d`](https://github.com/bluesky-social/atproto/commit/a51c45d38f6bd7b8765f640e564cf921d52162e7) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Update dependencies
22
+
23
+ ## 0.1.1
24
+
25
+ ### Patch Changes
26
+
27
+ - [#4980](https://github.com/bluesky-social/atproto/pull/4980) [`482767c`](https://github.com/bluesky-social/atproto/commit/482767c4bcce95aa390b2992b028fd8e27d162b2) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Improve bundle size
28
+
29
+ ## 0.1.0
30
+
31
+ ### Minor Changes
32
+
33
+ - [#4929](https://github.com/bluesky-social/atproto/pull/4929) [`f01c59f`](https://github.com/bluesky-social/atproto/commit/f01c59f5bd3f75fb8b47a9eecd4858b84033fb7c) Thanks [@devinivy](https://github.com/devinivy)! - **BREAKING:** Drop support for Node.js 18 and 20. Node.js 22 is now the minimum supported version. Docker images now use Node.js 24.
34
+
35
+ - [#4943](https://github.com/bluesky-social/atproto/pull/4943) [`c459153`](https://github.com/bluesky-social/atproto/commit/c459153395a30ce89e050892c8fab7dc98e019b9) Thanks [@devinivy](https://github.com/devinivy)! - **BREAKING:** Convert to pure ESM. All packages now ship `"type": "module"` with ES module output and Node16 module resolution.
36
+
37
+ Node.js 22's `require()` compatibility layer can still load these packages in CommonJS code.
38
+
39
+ - [#4930](https://github.com/bluesky-social/atproto/pull/4930) [`908bece`](https://github.com/bluesky-social/atproto/commit/908bece169258bff5ad121e5eec157d6ded6f705) Thanks [@devinivy](https://github.com/devinivy)! - Build with TypeScript 6.0.
40
+
41
+ ## 0.0.10
42
+
43
+ ### Patch Changes
44
+
45
+ - [#4586](https://github.com/bluesky-social/atproto/pull/4586) [`b619ae8`](https://github.com/bluesky-social/atproto/commit/b619ae87a8aff8f0db7785b26b0a3602d6ef6149) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Avoid using the app with an invalid scope that prevents the labelers to be set
46
+
47
+ ## 0.0.9
48
+
49
+ ### Patch Changes
50
+
51
+ - [#4457](https://github.com/bluesky-social/atproto/pull/4457) [`e6b6107`](https://github.com/bluesky-social/atproto/commit/e6b6107e028fee964972274b71f5da1329a7bece) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Expose bskyClient instance and lexicons on window object
52
+
53
+ - [#4461](https://github.com/bluesky-social/atproto/pull/4461) [`5d8e7a6`](https://github.com/bluesky-social/atproto/commit/5d8e7a6588fc9e57e15d83d47bb45103205e3e41) Thanks [@ThisIsMissEm](https://github.com/ThisIsMissEm)! - Add support for signup (prompt=create)
54
+
55
+ - [#4467](https://github.com/bluesky-social/atproto/pull/4467) [`a78380c`](https://github.com/bluesky-social/atproto/commit/a78380c89cb47c348e77eadb0738e7cb1c867a69) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Minor ui tweak
56
+
57
+ - [#4457](https://github.com/bluesky-social/atproto/pull/4457) [`e6b6107`](https://github.com/bluesky-social/atproto/commit/e6b6107e028fee964972274b71f5da1329a7bece) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Rewrite `getSession` and `getRecord` using generic hooks
58
+
59
+ - [#4457](https://github.com/bluesky-social/atproto/pull/4457) [`e6b6107`](https://github.com/bluesky-social/atproto/commit/e6b6107e028fee964972274b71f5da1329a7bece) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Add bin script, allowing to run through npx
60
+
61
+ ## 0.0.8
62
+
63
+ ### Patch Changes
64
+
65
+ - [#4319](https://github.com/bluesky-social/atproto/pull/4319) [`3202dce91`](https://github.com/bluesky-social/atproto/commit/3202dce91b31daa065769b6387c6b199f515671a) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Update example app
66
+
67
+ ## 0.0.7
68
+
69
+ ### Patch Changes
70
+
71
+ - [#4311](https://github.com/bluesky-social/atproto/pull/4311) [`d764c54fe`](https://github.com/bluesky-social/atproto/commit/d764c54fe4ffaccb9ed9580c153373fc6e12f803) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Minor improvements
72
+
73
+ ## 0.0.6
74
+
75
+ ### Patch Changes
76
+
77
+ - [`f4cb3e4d0`](https://github.com/bluesky-social/atproto/commit/f4cb3e4d0ac45e567fa14f79b99a84621fa89a56) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Update default scopes
78
+
79
+ ## 0.0.5
80
+
81
+ ### Patch Changes
82
+
83
+ - [#3952](https://github.com/bluesky-social/atproto/pull/3952) [`09d90ae48`](https://github.com/bluesky-social/atproto/commit/09d90ae486c451512e72c098228de3f3dd058101) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Improve UI
84
+
85
+ ## 0.0.4
86
+
87
+ ### Patch Changes
88
+
89
+ - [#3820](https://github.com/bluesky-social/atproto/pull/3820) [`8318c5718`](https://github.com/bluesky-social/atproto/commit/8318c57187a1fed443be73bfd7639f49febc7337) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Add `com.atproto.server.getSession` query.
90
+
91
+ - [#3820](https://github.com/bluesky-social/atproto/pull/3820) [`8318c5718`](https://github.com/bluesky-social/atproto/commit/8318c57187a1fed443be73bfd7639f49febc7337) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Allow configuration of loopback client id scope through query param
92
+
93
+ ## 0.0.3
94
+
95
+ ### Patch Changes
96
+
97
+ - [#3797](https://github.com/bluesky-social/atproto/pull/3797) [`a48b093f0`](https://github.com/bluesky-social/atproto/commit/a48b093f0ba3cf67b7abc50d309afcb336d8ead8) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Expose `pdsAgent` as global constant
98
+
99
+ ## 0.0.2
100
+
101
+ ### Patch Changes
102
+
103
+ - [#2945](https://github.com/bluesky-social/atproto/pull/2945) [`850e39843`](https://github.com/bluesky-social/atproto/commit/850e39843cb0ec9ea716675f7568c0c601f45e29) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Update react to version 19
104
+
105
+ - [#2945](https://github.com/bluesky-social/atproto/pull/2945) [`850e39843`](https://github.com/bluesky-social/atproto/commit/850e39843cb0ec9ea716675f7568c0c601f45e29) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Build using SWC
106
+
107
+ ## 0.0.1
108
+
109
+ ### Patch Changes
110
+
111
+ - [#3220](https://github.com/bluesky-social/atproto/pull/3220) [`61dc0d60e`](https://github.com/bluesky-social/atproto/commit/61dc0d60e19b88c6427a54c6d95a391b5f4da7bd) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Apply new linting rules regarding import order
package/bin.js ADDED
@@ -0,0 +1,39 @@
1
+ import console from 'node:console'
2
+ import { once } from 'node:events'
3
+ import { createServer } from 'node:http'
4
+ import process, { argv, env } from 'node:process'
5
+ // eslint-disable-next-line import/default
6
+ import httpTerminator from 'http-terminator'
7
+ import { middleware } from './server.js'
8
+
9
+ // Parse config
10
+ const port = Number(argv[2] || env.PORT || 0)
11
+ if (isNaN(port) || port < 0 || port > 65535) {
12
+ console.error(`Invalid port: ${argv[2] || env.PORT}`)
13
+ process.exit(1)
14
+ }
15
+
16
+ // eslint-disable-next-line no-undef
17
+ const abortController = new AbortController()
18
+
19
+ process.on('SIGINT', () => abortController.abort())
20
+ process.on('SIGTERM', () => abortController.abort())
21
+
22
+ const server = createServer(middleware)
23
+ const terminator = httpTerminator.createHttpTerminator({ server })
24
+
25
+ server.listen(port)
26
+
27
+ once(server, 'listening').then(async () => {
28
+ const address = server.address()
29
+ const port = typeof address === 'string' ? address : address?.port
30
+
31
+ if (!abortController.signal.aborted) {
32
+ console.log(`Listening on http://127.0.0.1:${port}/`)
33
+ console.log('Press Ctrl+C to stop the server')
34
+ await once(abortController.signal, 'abort')
35
+ }
36
+
37
+ console.log('Shutting down...')
38
+ await terminator.terminate()
39
+ })