@willh/now 0.1.4 → 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 CHANGED
@@ -10,6 +10,18 @@
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
+
13
25
  ## [0.1.4] - 2026-08-09
14
26
 
15
27
  ### 變更
@@ -92,7 +104,8 @@
92
104
  - 提供 macOS Apple Silicon、macOS Intel、Linux x64 glibc 與 Windows x64 原生執行檔及 SHA-256 checksum。
93
105
  - 提供 npm、Unix-like 安裝腳本、Windows PowerShell 安裝腳本與 GitHub Release 發布流程。
94
106
 
95
- [Unreleased]: https://github.com/doggy8088/now/compare/v0.1.4...HEAD
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
96
109
  [0.1.4]: https://github.com/doggy8088/now/compare/v0.1.3...v0.1.4
97
110
  [0.1.3]: https://github.com/doggy8088/now/compare/v0.1.2...v0.1.3
98
111
  [0.1.2]: https://github.com/doggy8088/now/compare/v0.1.1...v0.1.2
package/README.md CHANGED
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willh/now",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "A tool for quickly deploying static sites to multiple hosting providers",
5
5
  "bin": {
6
6
  "now": "npm/cli.cjs"