@edgestore/server 1.0.0-rc.7 → 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.
@@ -1,4 +1,4 @@
1
- # @edgestore/server 1.0.0-rc.7: agent references
1
+ # @edgestore/server 1.0.0: agent references
2
2
 
3
3
  These references ship with this exact package version. Prefer them over newer online examples.
4
4
  Generated from the authored documentation; do not edit these files directly.
@@ -1,6 +1,6 @@
1
1
  # Astro
2
2
 
3
- Source: https://next.edgestore.dev/docs/adapters/astro
3
+ Source: https://edgestore.dev/docs/adapters/astro
4
4
 
5
5
  The Astro adapter handles server requests. The upload UI below uses a hydrated
6
6
  React component.
@@ -12,7 +12,7 @@ React component.
12
12
  Packages to install (use the application’s package manager):
13
13
 
14
14
  ```text
15
- @edgestore/server@rc @edgestore/react@rc
15
+ @edgestore/server @edgestore/react
16
16
  ```
17
17
 
18
18
  ### Environment variables
@@ -1,6 +1,6 @@
1
1
  # Backend Client
2
2
 
3
- Source: https://next.edgestore.dev/docs/backend-client
3
+ Source: https://edgestore.dev/docs/backend-client
4
4
 
5
5
  Sometimes you might want to use the EdgeStore functionality directly from your backend. Things like deleting, uploading or even listing files can be done with the use of the backend client.
6
6
 
@@ -154,7 +154,10 @@ const res = await backendClient.publicImages.upload({
154
154
 
155
155
  ### Confirm a temporary file upload
156
156
 
157
- If you upload a temporary file, you can confirm it by using the `confirm` function.
157
+ Save the upload result's ID/key and URL in your database, then confirm the
158
+ temporary file. Hosted EdgeStore accepts confirmation during processing; a
159
+ preceding `get()` is unnecessary and can return 404 until processing finishes.
160
+ If saving fails, leave the file temporary.
158
161
 
159
162
  ```ts
160
163
  const res = await backendClient.publicFiles.confirm({
@@ -1,6 +1,6 @@
1
1
  # Configuration
2
2
 
3
- Source: https://next.edgestore.dev/docs/configuration
3
+ Source: https://edgestore.dev/docs/configuration
4
4
 
5
5
  ## Router and Provider
6
6
 
@@ -41,7 +41,7 @@ Keep the router object on the server; import only its type into frontend code.
41
41
 
42
42
  ## Bucket Types
43
43
 
44
- There are two types of file buckets: `IMAGE` and `FILE`. Both types of buckets work basically the same way, but the `IMAGE` bucket only accepts [certain mime types](https://next.edgestore.dev/docs/configuration#image-bucket-accepted-mime-types).
44
+ There are two types of file buckets: `IMAGE` and `FILE`. Both types of buckets work basically the same way, but the `IMAGE` bucket only accepts [certain mime types](https://edgestore.dev/docs/configuration#image-bucket-accepted-mime-types).
45
45
 
46
46
  IMAGE buckets automatically generate a thumbnail version of the image file if the file is bigger than 200px in width or height. In case a thumbnail was generated, the url will be included in the response of the upload request.
47
47
 
@@ -220,7 +220,7 @@ const router = es.router({
220
220
  });
221
221
  ```
222
222
 
223
- ## Access Control (Experimental)
223
+ ## Access Control
224
224
 
225
225
  You can use the `accessControl` function to add bucket level logic to allow or deny access to files. If you have ever used Prisma, you will probably notice that the structure of the `accessControl` function is similar to how you would write a Prisma query.
226
226
 
@@ -1,6 +1,6 @@
1
1
  # Express
2
2
 
3
- Source: https://next.edgestore.dev/docs/adapters/express
3
+ Source: https://edgestore.dev/docs/adapters/express
4
4
 
5
5
  ## Setup
6
6
 
@@ -9,7 +9,7 @@ Source: https://next.edgestore.dev/docs/adapters/express
9
9
  Packages to install (use the application’s package manager):
10
10
 
11
11
  ```text
12
- @edgestore/server@rc @edgestore/react@rc
12
+ @edgestore/server @edgestore/react
13
13
  ```
14
14
 
15
15
  ### Environment variables
@@ -114,7 +114,7 @@ function App() {
114
114
 
115
115
  ## Usage
116
116
 
117
- See [Quick start](https://next.edgestore.dev/docs/quick-start) for the upload UI.
117
+ See [Quick start](https://edgestore.dev/docs/quick-start) for the upload UI.
118
118
 
119
119
  ## Limitations
120
120
 
@@ -1,6 +1,6 @@
1
1
  # Fastify
2
2
 
3
- Source: https://next.edgestore.dev/docs/adapters/fastify
3
+ Source: https://edgestore.dev/docs/adapters/fastify
4
4
 
5
5
  ## Setup
6
6
 
@@ -9,7 +9,7 @@ Source: https://next.edgestore.dev/docs/adapters/fastify
9
9
  Packages to install (use the application’s package manager):
10
10
 
11
11
  ```text
12
- @edgestore/server@rc @edgestore/react@rc
12
+ @edgestore/server @edgestore/react
13
13
  ```
14
14
 
15
15
  ### Environment variables
@@ -113,7 +113,7 @@ function App() {
113
113
 
114
114
  ## Usage
115
115
 
116
- See [Quick start](https://next.edgestore.dev/docs/quick-start) for the upload UI.
116
+ See [Quick start](https://edgestore.dev/docs/quick-start) for the upload UI.
117
117
 
118
118
  ## Limitations
119
119
 
@@ -1,6 +1,6 @@
1
1
  # Hono
2
2
 
3
- Source: https://next.edgestore.dev/docs/adapters/hono
3
+ Source: https://edgestore.dev/docs/adapters/hono
4
4
 
5
5
  ## Setup
6
6
 
@@ -11,7 +11,7 @@ Install `@edgestore/server` in the backend and `@edgestore/react` in the fronten
11
11
  Packages to install (use the application’s package manager):
12
12
 
13
13
  ```text
14
- @edgestore/server@rc @edgestore/react@rc
14
+ @edgestore/server @edgestore/react
15
15
  ```
16
16
 
17
17
  ### Environment variables
@@ -121,7 +121,7 @@ Across repositories, share the backend router's type through a package.
121
121
 
122
122
  ## Usage
123
123
 
124
- See [Quick start](https://next.edgestore.dev/docs/quick-start) for the upload UI.
124
+ See [Quick start](https://edgestore.dev/docs/quick-start) for the upload UI.
125
125
 
126
126
  ## Limitations
127
127
 
@@ -1,13 +1,13 @@
1
1
  # Quick Start
2
2
 
3
- Source: https://next.edgestore.dev/docs/quick-start
3
+ Source: https://edgestore.dev/docs/quick-start
4
4
 
5
5
  ### Install
6
6
 
7
7
  Packages to install (use the application’s package manager):
8
8
 
9
9
  ```text
10
- @edgestore/server@rc @edgestore/react@rc
10
+ @edgestore/server @edgestore/react
11
11
  ```
12
12
 
13
13
  ### Environment Variables
@@ -1,6 +1,6 @@
1
1
  # Azure Blob Storage
2
2
 
3
- Source: https://next.edgestore.dev/docs/providers/azure-blob
3
+ Source: https://edgestore.dev/docs/providers/azure-blob
4
4
 
5
5
  Use the Azure Blob provider when your files must live in your own Azure
6
6
  storage account. It supports direct browser uploads, automatic block uploads
@@ -1,6 +1,6 @@
1
1
  # Custom
2
2
 
3
- Source: https://next.edgestore.dev/docs/providers/custom
3
+ Source: https://edgestore.dev/docs/providers/custom
4
4
 
5
5
  Use `defineProvider` to integrate another storage service or a custom storage
6
6
  implementation. The same provider instance powers the EdgeStore HTTP handler
@@ -1,6 +1,6 @@
1
1
  # EdgeStore
2
2
 
3
- Source: https://next.edgestore.dev/docs/providers/edgestore
3
+ Source: https://edgestore.dev/docs/providers/edgestore
4
4
 
5
5
  The hosted EdgeStore provider uses API v2 and is the default for `es.router()`.
6
6
  No provider configuration is needed when using environment credentials. Chain
@@ -1,6 +1,6 @@
1
1
  # S3
2
2
 
3
- Source: https://next.edgestore.dev/docs/providers/s3
3
+ Source: https://edgestore.dev/docs/providers/s3
4
4
 
5
5
  The S3 provider supports direct browser uploads, automatic multipart uploads,
6
6
  backend uploads, signed downloads, object lookup, and deletion. Your application
@@ -1,6 +1,6 @@
1
1
  # Remix / React Router
2
2
 
3
- Source: https://next.edgestore.dev/docs/adapters/remix
3
+ Source: https://edgestore.dev/docs/adapters/remix
4
4
 
5
5
  Use the Remix adapter with Remix or React Router framework mode. A client-only
6
6
  React Router application needs a separate backend; this route runs on the server.
@@ -12,7 +12,7 @@ React Router application needs a separate backend; this route runs on the server
12
12
  Packages to install (use the application’s package manager):
13
13
 
14
14
  ```text
15
- @edgestore/server@rc @edgestore/react@rc
15
+ @edgestore/server @edgestore/react
16
16
  ```
17
17
 
18
18
  ### Environment variables
@@ -114,4 +114,4 @@ export default function App() {
114
114
 
115
115
  ## Usage
116
116
 
117
- See [Quick start](https://next.edgestore.dev/docs/quick-start) for the upload UI.
117
+ See [Quick start](https://edgestore.dev/docs/quick-start) for the upload UI.
@@ -1,6 +1,6 @@
1
1
  # TanStack Start
2
2
 
3
- Source: https://next.edgestore.dev/docs/adapters/tanstack-start
3
+ Source: https://edgestore.dev/docs/adapters/tanstack-start
4
4
 
5
5
  ## Setup
6
6
 
@@ -9,7 +9,7 @@ Source: https://next.edgestore.dev/docs/adapters/tanstack-start
9
9
  Packages to install (use the application’s package manager):
10
10
 
11
11
  ```text
12
- @edgestore/server@rc @edgestore/react@rc
12
+ @edgestore/server @edgestore/react
13
13
  ```
14
14
 
15
15
  ### Environment variables
@@ -96,4 +96,4 @@ function RootComponent() {
96
96
 
97
97
  ## Usage
98
98
 
99
- See [Quick start](https://next.edgestore.dev/docs/quick-start) for the upload UI.
99
+ See [Quick start](https://edgestore.dev/docs/quick-start) for the upload UI.
@@ -1,6 +1,6 @@
1
1
  # Troubleshooting
2
2
 
3
- Source: https://next.edgestore.dev/docs/troubleshooting
3
+ Source: https://edgestore.dev/docs/troubleshooting
4
4
 
5
5
  ## Ask your agent to debug it
6
6
 
@@ -34,7 +34,7 @@ rules.
34
34
 
35
35
  Check the browser console for errors and the failing request and response in the
36
36
  Network panel, then use
37
- [Error handling](https://next.edgestore.dev/docs/error-handling) to identify validation, size, or access
37
+ [Error handling](https://edgestore.dev/docs/error-handling) to identify validation, size, or access
38
38
  errors. Confirm that the React provider wraps the upload component.
39
39
 
40
40
  For separate frontend and backend origins, allow the intended frontend origin in
@@ -42,7 +42,7 @@ CORS and check the adapter's cookie and deployment requirements.
42
42
 
43
43
  ## Enable server debug logging
44
44
 
45
- Enable [debug logging](https://next.edgestore.dev/docs/logging) to inspect server-side failures. Debug output
45
+ Enable [debug logging](https://edgestore.dev/docs/logging) to inspect server-side failures. Debug output
46
46
  includes application context and cookies. Remove those values before sharing logs.
47
47
 
48
48
  ## Inspect the application with the CLI
@@ -70,7 +70,7 @@ npm install
70
70
  ```
71
71
 
72
72
  Add your EdgeStore keys to `.env.local` as shown in
73
- [Quick start](https://next.edgestore.dev/docs/quick-start#environment-variables), then run:
73
+ [Quick start](https://edgestore.dev/docs/quick-start#environment-variables), then run:
74
74
 
75
75
  ```sh
76
76
  npm run dev
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export declare const EDGE_STORE_PACKAGE_NAME = "@edgestore/server";
2
- export declare const EDGE_STORE_PACKAGE_VERSION = "1.0.0-rc.7";
2
+ export declare const EDGE_STORE_PACKAGE_VERSION = "1.0.0";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAC3D,eAAO,MAAM,0BAA0B,eAAe,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAC3D,eAAO,MAAM,0BAA0B,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgestore/server",
3
- "version": "1.0.0-rc.7",
3
+ "version": "1.0.0",
4
4
  "description": "Upload files with ease from React/Next.js",
5
5
  "homepage": "https://edgestore.dev",
6
6
  "license": "MIT",
@@ -107,8 +107,8 @@
107
107
  "!**/__tests__"
108
108
  ],
109
109
  "dependencies": {
110
- "@edgestore/sdk": "1.0.0-rc.7",
111
- "@edgestore/shared": "1.0.0-rc.7",
110
+ "@edgestore/sdk": "1.0.0",
111
+ "@edgestore/shared": "1.0.0",
112
112
  "@standard-schema/spec": "^1.1.0",
113
113
  "cookie": "^2.0.1",
114
114
  "jose": "^6.2.3",
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export const EDGE_STORE_PACKAGE_NAME = '@edgestore/server';
2
- export const EDGE_STORE_PACKAGE_VERSION = '1.0.0-rc.7';
2
+ export const EDGE_STORE_PACKAGE_VERSION = '1.0.0';