@willh/now 0.1.3 → 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.
- package/CHANGELOG.md +28 -1
- package/README.md +6 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,31 @@
|
|
|
10
10
|
|
|
11
11
|
* * *
|
|
12
12
|
|
|
13
|
+
## [0.2.0] - 2026-08-18
|
|
14
|
+
|
|
15
|
+
### 新增
|
|
16
|
+
|
|
17
|
+
- Azure Storage Blob 部署新增 `azure_blob.timeout_secs` 設定與 `--timeout-secs` 旗標,可設定單一檔案上傳的逾時秒數;設為 `0` 或不設則停用。
|
|
18
|
+
|
|
19
|
+
### 修正
|
|
20
|
+
|
|
21
|
+
- 修正 Azure Storage Blob 上傳大型檔案(如彙整 CSV)時因 reqwest blocking client 預設 30 秒請求逾時而以「operation timed out」中斷的問題;未設定逾時時不再截斷大型檔案上傳,仍由 TCP 層保護避免卡死連線無限等待。
|
|
22
|
+
|
|
23
|
+
* * *
|
|
24
|
+
|
|
25
|
+
## [0.1.4] - 2026-08-09
|
|
26
|
+
|
|
27
|
+
### 變更
|
|
28
|
+
|
|
29
|
+
- 將 README、PRD、Copilot Instructions 與套件描述統一聚焦於「快速部署靜態網站、支援多種 Hosting 提供者」的產品定位,不再過度強調底層 Rust 實作。
|
|
30
|
+
- 更新公開網站的 meta description、Open Graph、Twitter description 與 Schema.org 結構化資料,並調整 Hero、Why 與 Footer 文案,突顯一行命令完成部署。
|
|
31
|
+
|
|
32
|
+
### 修正
|
|
33
|
+
|
|
34
|
+
- 修正 npm OIDC 發布流程:移除 `actions/setup-node` 的 `registry-url` 以避免空的 auth token 阻斷 GitHub OIDC token exchange,並以 `NPM_CONFIG_REGISTRY` 指定 registry,解決 v0.1.3 發布時 npm trusted publishing 回應 E404 的問題。
|
|
35
|
+
|
|
36
|
+
* * *
|
|
37
|
+
|
|
13
38
|
## [0.1.3] - 2026-08-09
|
|
14
39
|
|
|
15
40
|
### 新增
|
|
@@ -79,7 +104,9 @@
|
|
|
79
104
|
- 提供 macOS Apple Silicon、macOS Intel、Linux x64 glibc 與 Windows x64 原生執行檔及 SHA-256 checksum。
|
|
80
105
|
- 提供 npm、Unix-like 安裝腳本、Windows PowerShell 安裝腳本與 GitHub Release 發布流程。
|
|
81
106
|
|
|
82
|
-
[Unreleased]: https://github.com/doggy8088/now/compare/v0.
|
|
107
|
+
[Unreleased]: https://github.com/doggy8088/now/compare/v0.2.0...HEAD
|
|
108
|
+
[0.2.0]: https://github.com/doggy8088/now/compare/v0.1.4...v0.2.0
|
|
109
|
+
[0.1.4]: https://github.com/doggy8088/now/compare/v0.1.3...v0.1.4
|
|
83
110
|
[0.1.3]: https://github.com/doggy8088/now/compare/v0.1.2...v0.1.3
|
|
84
111
|
[0.1.2]: https://github.com/doggy8088/now/compare/v0.1.1...v0.1.2
|
|
85
112
|
[0.1.1]: https://github.com/doggy8088/now/compare/v0.1.0...v0.1.1
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# now
|
|
2
2
|
|
|
3
|
-
**now
|
|
3
|
+
**now 是一個用來快速部署靜態網站的工具,支援多種不同的 Hosting 提供者進行部署。**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
它會統一不同 Hosting 提供者的部署操作:自動選擇可發布目錄、讀取非祕密設定、執行部署,並在完成後輸出預設 URL。
|
|
6
6
|
|
|
7
7
|
* * *
|
|
8
8
|
|
|
@@ -219,6 +219,8 @@ now config set azure_blob.sas_url_env NOW_AZURE_BLOB_SAS_URL
|
|
|
219
219
|
|
|
220
220
|
SAS URL 必須指向 container,例如 Azure Static Website 常用的 `$web` container,且需要具備建立或寫入 blob 的權限。部署時會對每個檔案呼叫 Azure Blob Put Blob API,並使用 `x-ms-blob-type: BlockBlob`。
|
|
221
221
|
|
|
222
|
+
每個檔案的上傳預設**沒有時間限制**,大型檔案(如彙整 CSV)也能完整上傳。若要避免卡住的連線無限等待,可設定 `azure_blob.timeout_secs`(單一檔案上傳的秒數上限),設為 `0` 或不設則停用;CLI 也可用 `--timeout-secs` 單次覆寫。
|
|
223
|
+
|
|
222
224
|
```sh
|
|
223
225
|
PUT https://mystorageaccount.blob.core.windows.net/$web/<file>?<sas-query>
|
|
224
226
|
```
|
|
@@ -317,9 +319,10 @@ now --source dist
|
|
|
317
319
|
now deploy --source dist
|
|
318
320
|
now deploy --prefix releases/2026-07-18
|
|
319
321
|
now deploy --remote_dir /public_html/releases/2026-07-18
|
|
322
|
+
now deploy --timeout-secs 600
|
|
320
323
|
```
|
|
321
324
|
|
|
322
|
-
`--source` 覆寫 `source`,`--prefix` 覆寫 `azure_blob.prefix`,`--remote_dir` 覆寫 `ftp.remote_dir`。這些值只套用於當次部署,不會改寫 `.now.json`。`--remote-dir` 也可作為 `--remote_dir` 的別名。
|
|
325
|
+
`--source` 覆寫 `source`,`--prefix` 覆寫 `azure_blob.prefix`,`--timeout-secs` 覆寫 `azure_blob.timeout_secs`,`--remote_dir` 覆寫 `ftp.remote_dir`。這些值只套用於當次部署,不會改寫 `.now.json`。`--remote-dir` 也可作為 `--remote_dir` 的別名。
|
|
323
326
|
|
|
324
327
|
* * *
|
|
325
328
|
|
package/package.json
CHANGED