mirror of
https://github.com/googleworkspace/cli.git
synced 2026-09-14 16:47:13 +08:00
chore: release versions (#475)
This commit is contained in:
committed by
GitHub
parent
945ac91604
commit
f8bcb35aa7
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"@googleworkspace/cli": patch
|
||||
---
|
||||
|
||||
Stream multipart uploads to avoid OOM on large files. File content is now streamed in chunks via `ReaderStream` instead of being read entirely into memory, reducing memory usage from O(file_size) to O(64 KB).
|
||||
@@ -1,30 +0,0 @@
|
||||
---
|
||||
"@googleworkspace/cli": minor
|
||||
---
|
||||
|
||||
Add `--upload-content-type` flag and smart MIME inference for multipart uploads
|
||||
|
||||
Previously, multipart uploads used the metadata `mimeType` field for both the Drive
|
||||
metadata and the media part's `Content-Type` header. This made it impossible to upload
|
||||
a file in one format (e.g. Markdown) and have Drive convert it to another (e.g. Google Docs),
|
||||
because the media `Content-Type` and the target `mimeType` must differ for import conversions.
|
||||
|
||||
The new `--upload-content-type` flag allows setting the media `Content-Type` explicitly.
|
||||
When omitted, the media type is now inferred from the file extension before falling back
|
||||
to the metadata `mimeType`. This matches Google Drive's model where metadata `mimeType`
|
||||
is the *target* type (what the file should become) while the media `Content-Type` is the
|
||||
*source* type (what the bytes are).
|
||||
|
||||
This means import conversions now work automatically:
|
||||
```bash
|
||||
# Extension inference detects text/markdown → conversion just works
|
||||
gws drive files create \
|
||||
--json '{"name":"My Doc","mimeType":"application/vnd.google-apps.document"}' \
|
||||
--upload notes.md
|
||||
|
||||
# Explicit flag still available as an override
|
||||
gws drive files create \
|
||||
--json '{"name":"My Doc","mimeType":"application/vnd.google-apps.document"}' \
|
||||
--upload notes.md \
|
||||
--upload-content-type text/markdown
|
||||
```
|
||||
@@ -1,5 +1,41 @@
|
||||
# @googleworkspace/cli
|
||||
|
||||
## 0.14.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- dc561e0: Add `--upload-content-type` flag and smart MIME inference for multipart uploads
|
||||
|
||||
Previously, multipart uploads used the metadata `mimeType` field for both the Drive
|
||||
metadata and the media part's `Content-Type` header. This made it impossible to upload
|
||||
a file in one format (e.g. Markdown) and have Drive convert it to another (e.g. Google Docs),
|
||||
because the media `Content-Type` and the target `mimeType` must differ for import conversions.
|
||||
|
||||
The new `--upload-content-type` flag allows setting the media `Content-Type` explicitly.
|
||||
When omitted, the media type is now inferred from the file extension before falling back
|
||||
to the metadata `mimeType`. This matches Google Drive's model where metadata `mimeType`
|
||||
is the _target_ type (what the file should become) while the media `Content-Type` is the
|
||||
_source_ type (what the bytes are).
|
||||
|
||||
This means import conversions now work automatically:
|
||||
|
||||
```bash
|
||||
# Extension inference detects text/markdown → conversion just works
|
||||
gws drive files create \
|
||||
--json '{"name":"My Doc","mimeType":"application/vnd.google-apps.document"}' \
|
||||
--upload notes.md
|
||||
|
||||
# Explicit flag still available as an override
|
||||
gws drive files create \
|
||||
--json '{"name":"My Doc","mimeType":"application/vnd.google-apps.document"}' \
|
||||
--upload notes.md \
|
||||
--upload-content-type text/markdown
|
||||
```
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 945ac91: Stream multipart uploads to avoid OOM on large files. File content is now streamed in chunks via `ReaderStream` instead of being read entirely into memory, reducing memory usage from O(file_size) to O(64 KB).
|
||||
|
||||
## 0.13.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
Generated
+1
-1
@@ -861,7 +861,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "gws"
|
||||
version = "0.13.3"
|
||||
version = "0.14.0"
|
||||
dependencies = [
|
||||
"aes-gcm",
|
||||
"anyhow",
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
|
||||
[package]
|
||||
name = "gws"
|
||||
version = "0.13.3"
|
||||
version = "0.14.0"
|
||||
edition = "2021"
|
||||
description = "Google Workspace CLI — dynamic command surface from Discovery Service"
|
||||
license = "Apache-2.0"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@googleworkspace/cli",
|
||||
"version": "0.13.3",
|
||||
"version": "0.14.0",
|
||||
"private": true,
|
||||
"description": "Google Workspace CLI — dynamic command surface from Discovery Service",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
Reference in New Issue
Block a user