Skip to content

Commit 2227202

Browse files
committed
Merge branch 'kats/s3' into beta
2 parents e77da11 + 6c43cbc commit 2227202

File tree

21 files changed

+211
-64
lines changed

21 files changed

+211
-64
lines changed

CHANGELOG.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [unreleased]
99

10-
### Fixed
11-
12-
- Use pathToFileURL so that import() works under ESM across platforms [#38](https://github.com/fastly/compute-js-static-publish/issues/38)
13-
14-
## [7.0.2] - 2025-09-16
15-
16-
### Fixed
17-
18-
- Fix script listed in readme instructions
19-
- Handle symlinks properly in file enumeration [#41](https://github.com/fastly/compute-js-static-publish/issues/41)
20-
2110
### Breaking
2211

2312
- Rename symbols
@@ -26,12 +15,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2615

2716
### Added
2817

29-
- S3-compatible storage
18+
- S3-compatible storage (BETA)
3019
- Add support for S3-compatible storage, such as Fastly Object Storage
3120
- Store items using same keys as KV Store
3221
- Use S3 object metadata for storing asset metadata
3322
- Storage factored out to StorageProvider, and S3 is implemented using this architecture
34-
- Configure using
23+
- Add AWS-related configurations to fastly.toml in local_server and setup sections
3524

3625
- `static-publish.rc.js`
3726
- Add `s3` mode configuration
@@ -41,6 +30,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4130
- `publish-content.config.js`
4231
- `kvStoreAssetInclusionTest` renamed to `assetInclusionTest`. Previous name deprecated.
4332

33+
## [7.0.3] - 2025-09-29
34+
35+
### Fixed
36+
37+
- Use pathToFileURL so that import() works under ESM across platforms [#38](https://github.com/fastly/compute-js-static-publish/issues/38)
38+
39+
## [7.0.2] - 2025-09-16
40+
41+
### Fixed
42+
43+
- Fix script listed in readme instructions
44+
- Handle symlinks properly in file enumeration [#41](https://github.com/fastly/compute-js-static-publish/issues/41)
45+
4446
## [7.0.1] - 2025-04-24
4547

4648
### Fixed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Create a directory for your project, place your static files in `./public`, then
5656
```sh
5757
npx @fastly/compute-js-static-publish@latest \
5858
--root-dir=./public \
59-
--storage-mode=kv-store \
6059
--kv-store-name=site-content
6160
```
6261

@@ -236,7 +235,7 @@ const rc = {
236235
export default rc;
237236
```
238237

239-
### Using S3-compatible storage
238+
### Using S3-compatible storage (BETA)
240239

241240
#### Fields:
242241

@@ -525,7 +524,7 @@ If you do need to rebuild and redeploy the Compute app, simply run:
525524
npm run fastly:deploy
526525
```
527526
528-
### Using S3-compatible storage
527+
### Using S3-compatible storage (BETA)
529528
530529
#### Local development
531530
@@ -731,10 +730,9 @@ Run outside an existing Compute app directory:
731730
# Using KV store storage
732731
npx @fastly/compute-js-static-publish@latest \
733732
--root-dir=./public \
734-
--storage-mode=kv-store \
735733
--kv-store-name=<site-content>
736734
737-
# Using S3 storage
735+
# Using S3 storage (BETA)
738736
npx @fastly/compute-js-static-publish@latest \
739737
--root-dir=./public \
740738
--storage-mode=s3 \
@@ -748,7 +746,7 @@ npx @fastly/compute-js-static-publish@latest \
748746
```sh
749747
npx @fastly/compute-js-static-publish@latest \
750748
--root-dir=./public \
751-
{ --storage-mode=kv-store --kv-store-name=<site-content> | \
749+
{ [--storage-mode=kv-store] --kv-store-name=<site-content> | \
752750
--storage-mode=s3 --s3-region=<s3 region> --s3-bucket=<bucket name> [--s3-endpoint=<endpoint>] } \
753751
[--output=./compute-js] \
754752
[--static-publisher-working-dir=<output>/static-publisher] \
@@ -768,7 +766,7 @@ npx @fastly/compute-js-static-publish@latest \
768766
#### Options:
769767

770768
**Used to generate the Compute app:**
771-
- `--storage-mode`: Required. Specifies the storage mode. Must be either `kv-store` or `s3`.
769+
- `--storage-mode`: Specifies the storage mode. Must be either `kv-store` or `s3` (default: `kv-store`).
772770

773771
If `--storage-mode=kv-store`:
774772
- `--kv-store-name`: Required. Name of KV Store to use.

README.short.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This CLI tool helps you:
1818
Create a directory for your project, place your static files in `./public`, then type:
1919

2020
```sh
21-
npx @fastly/compute-js-static-publish@latest --root-dir=./public --storage-mode=kv-store --kv-store-name=site-content
21+
npx @fastly/compute-js-static-publish@latest --root-dir=./public --kv-store-name=site-content
2222
```
2323

2424
**New in v8:** S3-compatible storage (such as Fastly Object Storage) is also supported (Beta). To use this mode, type:

src/cli/commands/manage/clean.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ KV Store Options:
3939
1. FASTLY_API_TOKEN environment variable
4040
2. Logged-in Fastly CLI profile
4141
42-
S3 Storage Options:
42+
S3 Storage Options (BETA):
4343
--aws-access-key-id=<key> AWS Access Key ID and Secret Access Key used to
4444
--aws-secret-access-key=<key> interface with S3.
4545
If not set, the tool will check:

src/cli/commands/manage/collections/delete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ KV Store Options:
3737
1. FASTLY_API_TOKEN environment variable
3838
2. Logged-in Fastly CLI profile
3939
40-
S3 Storage Options:
40+
S3 Storage Options (BETA):
4141
--aws-access-key-id=<key> AWS Access Key ID and Secret Access Key used to
4242
--aws-secret-access-key=<key> interface with S3.
4343
If not set, the tool will check:

src/cli/commands/manage/collections/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ KV Store Options:
3535
1. FASTLY_API_TOKEN environment variable
3636
2. Logged-in Fastly CLI profile
3737
38-
S3 Storage Options:
38+
S3 Storage Options (BETA):
3939
--aws-access-key-id=<key> AWS Access Key ID and Secret Access Key used to
4040
--aws-secret-access-key=<key> interface with S3.
4141
If not set, the tool will check:

src/cli/commands/manage/collections/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ KV Store Options:
3232
1. FASTLY_API_TOKEN environment variable
3333
2. Logged-in Fastly CLI profile
3434
35-
S3 Storage Options:
35+
S3 Storage Options (BETA):
3636
--aws-access-key-id=<key> AWS Access Key ID and Secret Access Key used to
3737
--aws-secret-access-key=<key> interface with S3.
3838
If not set, the tool will check:

src/cli/commands/manage/collections/promote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ KV Store Options:
5454
1. FASTLY_API_TOKEN environment variable
5555
2. Logged-in Fastly CLI profile
5656
57-
S3 Storage Options:
57+
S3 Storage Options (BETA):
5858
--aws-access-key-id=<key> AWS Access Key ID and Secret Access Key used to
5959
--aws-secret-access-key=<key> interface with S3.
6060
If not set, the tool will check:

src/cli/commands/manage/collections/update-expiration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ KV Store Options:
5050
1. FASTLY_API_TOKEN environment variable
5151
2. Logged-in Fastly CLI profile
5252
53-
S3 Storage Options:
53+
S3 Storage Options (BETA):
5454
--aws-access-key-id=<key> AWS Access Key ID and Secret Access Key used to
5555
--aws-secret-access-key=<key> interface with S3.
5656
If not set, the tool will check:

src/cli/commands/manage/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ KV Store Options:
3737
1. FASTLY_API_TOKEN environment variable
3838
2. Logged-in Fastly CLI profile
3939
40-
S3 Storage Options:
40+
S3 Storage Options (BETA):
4141
--aws-access-key-id=<key> AWS Access Key ID and Secret Access Key used to
4242
--aws-secret-access-key=<key> interface with S3.
4343
If not set, the tool will check:

0 commit comments

Comments
 (0)