Skip to content

Commit 7bc8dbd

Browse files
committed
Update extras a lil
1 parent e100af2 commit 7bc8dbd

5 files changed

Lines changed: 12 additions & 9 deletions

File tree

lib/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ and then use it to construct a client for the AWS service API you want to use.
2323
A bare-bones example from `demo.ts`:
2424

2525
```typescript
26-
import { ApiFactory } from 'https://deno.land/x/aws_api/client/mod.ts';
27-
import { STS } from 'https://deno.land/x/aws_api/services/sts/mod.ts';
26+
import { ApiFactory } from '@cloudydeno/aws-api/client';
27+
import { STS } from '@cloudydeno/aws-api/services/sts';
2828

2929
// Create a service client for AWS Security Token Service
3030
const sts = new ApiFactory().makeNew(STS);
@@ -85,7 +85,7 @@ For other services, or to cut down on dependency size by selecting the available
8585
you can import from [the /x/aws_api Web Service][webservice]:
8686

8787
```typescript
88-
import { ApiFactory } from 'https://deno.land/x/aws_api/client/mod.ts';
88+
import { ApiFactory } from '@cloudydeno/aws-api/client';
8989
import { Pricing } from 'https://aws-api.deno.dev/latest/services/pricing.ts';
9090

9191
const pricing = new ApiFactory().makeNew(Pricing);
@@ -120,7 +120,7 @@ const ec2_europe = new ApiFactory({
120120

121121
## Changelog
122122

123-
* `TBD` on `TBD`: minor adjustments for Deno 2 type compatibility
123+
* `v0.9.0` on `2025-09-15`: Migrate to JSR packaging and imports, targetting Deno 2+
124124
* `v0.8.1` on `2023-02-26`: hotfixes in extras files
125125
* `v0.8.0` on `2023-02-26`: codegen `v0.4`
126126
* Use Deno's `/std@0.177.0` (except for MD5).

lib/deno.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"@takker/md5": "jsr:@takker/md5@^0.1.0"
1313
},
1414
"exports": {
15+
"./client/api-factory.ts": "./client/api-factory.ts",
1516
"./client/client.ts": "./client/client.ts",
1617
"./client/common.ts": "./client/common.ts",
1718
"./client/credentials.ts": "./client/credentials.ts",
@@ -42,7 +43,9 @@
4243
},
4344
"publish": {
4445
"exclude": [
45-
"deps.ts",
46+
"examples",
47+
"demo.ts",
48+
"demo-codegen.ts",
4649
".github"
4750
]
4851
}

lib/extras/s3-presign.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { type Credentials, DefaultCredentialsProvider, getDefaultRegion } from "../client/credentials.ts";
2-
import { AWSSignerV4 } from "../client/signing.ts";
1+
import { type Credentials, DefaultCredentialsProvider, getDefaultRegion } from "@cloudydeno/aws-api/client/credentials.ts";
2+
import { AWSSignerV4 } from "@cloudydeno/aws-api/client/signing.ts";
33

44
export interface GetSignedUrlOptions {
55
bucket: string;

lib/extras/s3-presign_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts";
1+
import { assertEquals } from "@std/assert/equals";
22
import { getPresignedUrl } from "./s3-presign.ts";
33

44
const date = new Date('Fri, 24 May 2013 00:00:00 GMT')

lib/extras/s3-upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { pooledMap } from "@std/async/pool";
22

3-
import {
3+
import type {
44
PutObjectRequest, PutObjectOutput,
55
CreateMultipartUploadRequest, CreateMultipartUploadOutput,
66
UploadPartRequest, UploadPartOutput,

0 commit comments

Comments
 (0)