Skip to content

feat: add key-value record public URL - #669

Open
AkhilTrivediX wants to merge 1 commit into
apify:masterfrom
AkhilTrivediX:agent/add-record-public-url
Open

feat: add key-value record public URL#669
AkhilTrivediX wants to merge 1 commit into
apify:masterfrom
AkhilTrivediX:agent/add-record-public-url

Conversation

@AkhilTrivediX

Copy link
Copy Markdown

Summary

  • add KeyValueStore.getRecordPublicUrl() for remote key-value stores
  • delegate signed URL creation to the corresponding apify-client method
  • deprecate the ambiguous synchronous getPublicUrl() API while keeping it available
  • add a regression test for the SDK-to-client delegation

Why

The SDK constructed record URLs itself, duplicating logic that now belongs in apify-client. The new asynchronous method exposes the client-backed path and keeps local-store behavior unchanged.

Closes #433

Validation

  • corepack pnpm test (127 passed, 14 skipped)
  • corepack pnpm vitest run test/apify/key_value_store.test.ts --silent
  • corepack pnpm compile
  • corepack pnpm lint
  • corepack pnpm exec oxfmt --check src/key_value_store.ts test/apify/key_value_store.test.ts
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate KeyValueStore.getPublicUrl(key) and introduce KeyValueStore.getRecordPublicUrl(key)

3 participants