@stryke/trpc-next 0.5.3 → 0.5.5

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/README.md CHANGED
@@ -1,4 +1,47 @@
1
1
  <!-- START header -->
2
+ <!-- prettier-ignore-start -->
3
+ <!-- markdownlint-disable -->
4
+
5
+
6
+ <div align="center"><img src="https://public.storm-cdn.com/storm-banner.gif" width="100%" alt="Storm Software" /></div>
7
+ <br />
8
+
9
+ <div align="center">
10
+ <b>
11
+ <a href="https://stormsoftware.com" target="_blank">Website</a> •
12
+ <a href="https://github.com/storm-software/stryke" target="_blank">GitHub</a> •
13
+ <a href="https://discord.gg/MQ6YVzakM5">Discord</a> • <a href="https://stormsoftware.com/projects/stryke/docs" target="_blank">Docs</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> •
14
+ <a href="https://github.com/storm-software/stryke/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a>
15
+ </b>
16
+ </div>
17
+
18
+ <br />
19
+ This package is part of Storm Software's **🌩️ Stryke** monorepo. Stryke packages TypeScript utility packages with shared functionality common to many Storm Software applications.
20
+
21
+ <br />
22
+
23
+ <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
24
+
25
+ [![Version](https://img.shields.io/badge/version-0.5.4-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/stryke/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
26
+
27
+ > [!IMPORTANT] This repository, and the apps, libraries, and tools contained
28
+ > within, is still in it's initial development phase. As a result, bugs and
29
+ > issues are expected with it's usage. When the main development phase
30
+ > completes, a proper release will be performed, the packages will be availible
31
+ > through NPM (and other distributions), and this message will be removed.
32
+ > However, in the meantime, please feel free to report any issues you may come
33
+ > across.
34
+
35
+ <div align="center">
36
+ <b>Be sure to ⭐ this repository on <a href="https://github.com/storm-software/stryke" target="_blank">GitHub</a> so you can keep up to date on any daily progress!</b>
37
+ </div>
38
+
39
+ <br />
40
+
41
+
42
+ <!-- markdownlint-restore -->
43
+ <!-- prettier-ignore-end -->
44
+
2
45
  <!-- END header -->
3
46
 
4
47
  # Stryke - tRPC NextJs Package
@@ -6,6 +49,23 @@
6
49
  A package to help in using tRPC in modern NextJs applications
7
50
 
8
51
  <!-- START doctoc -->
52
+ <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
53
+ ## Table of Contents
54
+
55
+ - [Installing](#installing)
56
+ - [Reduced Package Size](#reduced-package-size)
57
+ - [Development](#development)
58
+ - [Building](#building)
59
+ - [Running unit tests](#running-unit-tests)
60
+ - [Linting](#linting)
61
+ - [Storm Workspaces](#storm-workspaces)
62
+ - [Roadmap](#roadmap)
63
+ - [Support](#support)
64
+ - [License](#license)
65
+ - [Changelog](#changelog)
66
+ - [Contributing](#contributing)
67
+ - [Contributors](#contributors)
68
+
9
69
  <!-- END doctoc -->
10
70
 
11
71
  ## Installing
@@ -59,4 +119,173 @@ Run `nx test trpc-next` to execute the unit tests via [Jest](https://jestjs.io).
59
119
  Run `nx lint trpc-next` to run [ESLint](https://eslint.org/) on the package.
60
120
 
61
121
  <!-- START footer -->
122
+ <!-- prettier-ignore-start -->
123
+ <!-- markdownlint-disable -->
124
+
125
+
126
+ ## Storm Workspaces
127
+
128
+ Storm workspaces are built using
129
+ <a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools
130
+ for monorepos, which helps you develop like Google, Facebook, and Microsoft.
131
+ Building on top of Nx, the Open System provides a set of tools and patterns that
132
+ help you scale your monorepo to many teams while keeping the codebase
133
+ maintainable.
134
+
135
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
136
+ <br />
137
+
138
+ ## Roadmap
139
+
140
+ See the [open issues](https://github.com/storm-software/stryke/issues) for a
141
+ list of proposed features (and known issues).
142
+
143
+ - [Top Feature Requests](https://github.com/storm-software/stryke/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc)
144
+ (Add your votes using the 👍 reaction)
145
+ - [Top Bugs](https://github.com/storm-software/stryke/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc)
146
+ (Add your votes using the 👍 reaction)
147
+ - [Newest Bugs](https://github.com/storm-software/stryke/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
148
+
149
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
150
+ <br />
151
+
152
+ ## Support
153
+
154
+ Reach out to the maintainer at one of the following places:
155
+
156
+ - [Contact](https://stormsoftware.com/contact)
157
+ - [GitHub discussions](https://github.com/storm-software/stryke/discussions)
158
+ - <support@stormsoftware.com>
159
+
160
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
161
+ <br />
162
+
163
+ ## License
164
+
165
+ This project is licensed under the **Apache License 2.0**. Feel free to edit and
166
+ distribute this template as you like.
167
+
168
+ See [LICENSE](LICENSE) for more information.
169
+
170
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
171
+ <br />
172
+
173
+ ## Changelog
174
+
175
+ This project adheres to
176
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along
177
+ with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md)
178
+ file
179
+
180
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
181
+ <br />
182
+
183
+ ## Contributing
184
+
185
+ First off, thanks for taking the time to contribute! Contributions are what
186
+ makes the open-source community such an amazing place to learn, inspire, and
187
+ create. Any contributions you make will benefit everybody else and are **greatly
188
+ appreciated**.
189
+
190
+ Please try to create bug reports that are:
191
+
192
+ - _Reproducible._ Include steps to reproduce the problem.
193
+ - _Specific._ Include as much detail as possible: which version, what
194
+ environment, etc.
195
+ - _Unique._ Do not duplicate existing opened issues.
196
+ - _Scoped to a Single Bug._ One bug per report.
197
+
198
+ Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
199
+
200
+ You can use
201
+ [markdownlint-cli](https://github.com/storm-software/stryke/markdownlint-cli) to
202
+ check for common markdown style inconsistency.
203
+
204
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
205
+ <br />
206
+
207
+ ## Contributors
208
+
209
+ Thanks goes to these wonderful people
210
+ ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
211
+
212
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
213
+
214
+ <table>
215
+ <tbody>
216
+ <tr>
217
+ <td align="center" valign="top" width="14.28%"><a href="http://www.sullypat.com/"><img src="https://avatars.githubusercontent.com/u/99053093?v=4?s=100" width="100px;" alt="Patrick Sullivan"/><br /><sub><b>Patrick Sullivan</b></sub></a><br /><a href="#design-sullivanpj" title="Design">🎨</a> <a href="https://github.com/storm-software/stryke/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/stryke/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/stryke/commits?author=sullivanpj" title="Tests">⚠️</a></td>
218
+ <td align="center" valign="top" width="14.28%"><a href="https://tylerbenning.com/"><img src="https://avatars.githubusercontent.com/u/7265547?v=4?s=100" width="100px;" alt="Tyler Benning"/><br /><sub><b>Tyler Benning</b></sub></a><br /><a href="#design-tbenning" title="Design">🎨</a></td>
219
+ <td align="center" valign="top" width="14.28%"><a href="http://stormsoftware.com"><img src="https://avatars.githubusercontent.com/u/149802440?v=4?s=100" width="100px;" alt="Stormie"/><br /><sub><b>Stormie</b></sub></a><br /><a href="#maintenance-stormie-bot" title="Maintenance">🚧</a></td>
220
+ </tr>
221
+ </tbody>
222
+ <tfoot>
223
+ <tr>
224
+ <td align="center" size="13px" colspan="7">
225
+ <img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg" alt="All Contributors">
226
+ <a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
227
+ </img>
228
+ </td>
229
+ </tr>
230
+ </tfoot>
231
+ </table>
232
+
233
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
234
+
235
+ This project follows the
236
+ [all-contributors](https://github.com/all-contributors/all-contributors)
237
+ specification. Contributions of any kind welcome!
238
+
239
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
240
+ <br />
241
+
242
+ <hr />
243
+ <br />
244
+
245
+ <div align="center">
246
+ <img src="https://public.storm-cdn.com/logo-banner.png" width="100%" alt="Storm Software" />
247
+ </div>
248
+ <br />
249
+
250
+ <div align="center">
251
+ <a href="https://stormsoftware.com" target="_blank">Website</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> • <a href="https://linkedin.com/in/patrick-sullivan-865526b0" target="_blank">LinkedIn</a> • <a href="https://medium.com/@pat.joseph.sullivan" target="_blank">Medium</a> • <a href="https://github.com/storm-software" target="_blank">GitHub</a> • <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
252
+ </div>
253
+
254
+ <div align="center">
255
+ <b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D
256
+ </div>
257
+ <br />
258
+
259
+ Storm Software is an open source software development organization and creator
260
+ of Acidic, StormStack and StormCloud.
261
+
262
+ Our mission is to make software development more accessible. Our ideal future is
263
+ one where anyone can create software without years of prior development
264
+ experience serving as a barrier to entry. We hope to achieve this via LLMs,
265
+ Generative AI, and intuitive, high-level data modeling/programming languages.
266
+
267
+ Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team,
268
+ receive release notifications, ask questions, and get involved.
269
+
270
+ If this sounds interesting, and you would like to help us in creating the next
271
+ generation of development tools, please reach out on our
272
+ [website](https://stormsoftware.com/contact) or join our
273
+ [Slack channel](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA)!
274
+
275
+ <br />
276
+
277
+ <div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/icon-fill.png" alt="Storm Software" width="200px"/></a></div>
278
+ <br />
279
+ <div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/visit-us-text.svg" alt="Visit us at stormsoftware.com" height="90px"/></a></div>
280
+
281
+ <br />
282
+
283
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
284
+ <br />
285
+ <br />
286
+
287
+
288
+ <!-- markdownlint-restore -->
289
+ <!-- prettier-ignore-end -->
290
+
62
291
  <!-- END footer -->
package/dist/server.d.ts CHANGED
@@ -28,6 +28,7 @@ export type NextAppDirDecorateRouterRecord<TRoot extends AnyRootTypes, TRecord e
28
28
  /**
29
29
  * This client invokes procedures directly on the server without fetching over HTTP.
30
30
  *
31
+ * @param cookies - A function that returns the cookies
31
32
  * @param router - The router created by the user
32
33
  * @param createContext - An optional function to generate a context
33
34
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/trpc-next",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "type": "module",
5
5
  "description": "A package to help in using tRPC in modern NextJs applications.",
6
6
  "repository": {
@@ -10,8 +10,8 @@
10
10
  },
11
11
  "private": false,
12
12
  "peerDependencies": {
13
- "react": "^19.0.0",
14
- "react-dom": "^19.0.0",
13
+ "react": "^19.1.0",
14
+ "react-dom": "^19.1.0",
15
15
  "react-native": "^0.77.0"
16
16
  },
17
17
  "peerDependenciesMeta": {
@@ -29,14 +29,14 @@
29
29
  "defu": "^6.1.4",
30
30
  "server-only": "^0.0.1",
31
31
  "superjson": "2.2.2",
32
- "@stryke/env": ">=0.6.0",
33
- "@stryke/http": ">=0.6.0",
34
- "@stryke/path": ">=0.4.7",
35
- "@stryke/types": ">=0.7.3"
32
+ "@stryke/env": "^0.6.1",
33
+ "@stryke/http": "^0.7.2",
34
+ "@stryke/path": "^0.4.8",
35
+ "@stryke/types": "^0.8.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/react": "^19.0.8",
39
- "@types/react-dom": "^19.0.3",
38
+ "@types/react": "^19.0.12",
39
+ "@types/react-dom": "^19.0.4",
40
40
  "@types/react-native": "0.72.8"
41
41
  },
42
42
  "publishConfig": { "access": "public" },