diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2601677..d0ab664 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.1.0" + ".": "1.2.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 657544e..e34b116 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 25 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-ccc3d15a43be0505cabc52b9bd35e75ebdf072246b1563eab29e644bfc21e766.yml -openapi_spec_hash: ab3a6473e575381cacd245bf54dcf0f7 -config_hash: eebf67a9c2ccfe2641980c154d7a698e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-4903d5902cec6a80f42b9adaa9cf0defa9805ff22d7ae96970d209a4f867e195.yml +openapi_spec_hash: 1097891c23530dfe0155f23170daf973 +config_hash: c7b0cdaba3b9797b77efd89e1754d803 diff --git a/CHANGELOG.md b/CHANGELOG.md index ef34e63..3161761 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.2.0 (2026-06-25) + +Full Changelog: [v1.1.0...v1.2.0](https://github.com/context-dot-dev/context-go-sdk/compare/v1.1.0...v1.2.0) + +### Features + +* **api:** api update ([3e24bff](https://github.com/context-dot-dev/context-go-sdk/commit/3e24bffec3f7d99ce7e57c03be71c8e7d297308c)) + ## 1.1.0 (2026-06-19) Full Changelog: [v1.0.0...v1.1.0](https://github.com/context-dot-dev/context-go-sdk/compare/v1.0.0...v1.1.0) diff --git a/README.md b/README.md index a63bd13..f4e813b 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Or to pin the version: ```sh -go get -u 'github.com/context-dot-dev/context-go-sdk@v1.1.0' +go get -u 'github.com/context-dot-dev/context-go-sdk@v1.2.0' ``` diff --git a/internal/version.go b/internal/version.go index e9357c4..497a1a0 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "1.1.0" // x-release-please-version +const PackageVersion = "1.2.0" // x-release-please-version diff --git a/web.go b/web.go index cc753eb..21339f9 100644 --- a/web.go +++ b/web.go @@ -2491,6 +2491,13 @@ type WebScreenshotParams struct { // and is younger than this many milliseconds. Defaults to 1 day (86400000 ms) when // omitted. Max is 30 days (2592000000 ms). Set to 0 to always capture fresh. MaxAgeMs param.Opt[int64] `query:"maxAgeMs,omitzero" json:"-"` + // Optional vertical scroll offset in pixels for capturing a long page in + // viewport-sized chunks. When provided, the full page is captured once and the + // returned image is the viewport-sized slice that begins at this Y offset (e.g. + // request scrollOffset=0, then 1080, then 2160 to walk a 1920x1080 landing page + // top to bottom). The final slice may be shorter than the viewport height. Takes + // precedence over fullScreenshot. Max: 100000. + ScrollOffset param.Opt[int64] `query:"scrollOffset,omitzero" json:"-"` // Optional timeout in milliseconds for the request. If the request takes longer // than this value, it will be aborted with a 408 status code. Maximum allowed // value is 300000ms (5 minutes). diff --git a/web_test.go b/web_test.go index de6e444..2cb53fa 100644 --- a/web_test.go +++ b/web_test.go @@ -162,6 +162,7 @@ func TestWebScreenshotWithOptionalParams(t *testing.T) { HandleCookiePopup: contextdev.WebScreenshotParamsHandleCookiePopupTrue, MaxAgeMs: contextdev.Int(0), Page: contextdev.WebScreenshotParamsPageLogin, + ScrollOffset: contextdev.Int(0), TimeoutMs: contextdev.Int(1000), Viewport: contextdev.WebScreenshotParamsViewport{ Height: contextdev.Int(240),