Skip to content

Commit

Permalink
chore: release v0.15.3 (#684)
Browse files Browse the repository at this point in the history
* fix: rolls back X-IC-RequestID

* chore: release v0.15.3
  • Loading branch information
krpeacock authored Jan 30, 2023
1 parent 8bf42cc commit aa14db3
Show file tree
Hide file tree
Showing 16 changed files with 85 additions and 76 deletions.
8 changes: 4 additions & 4 deletions demos/sample-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "ic-agent-sample-javascript-app",
"private": true,
"dependencies": {
"@dfinity/agent": "^0.15.2",
"@dfinity/agent": "^0.15.3",
"@dfinity/authentication": "^0.14.1",
"@dfinity/identity": "^0.15.2",
"@dfinity/principal": "^0.15.2",
"@dfinity/identity": "^0.15.3",
"@dfinity/principal": "^0.15.3",
"assert": "^2.0.0",
"events": "^3.2.0",
"html-webpack-plugin": "^5.1.0",
Expand All @@ -25,7 +25,7 @@
"test:coverage": "",
"test": ""
},
"version": "0.15.2",
"version": "0.15.3",
"devDependencies": {
"buffer": "^6.0.3",
"esbuild": "^0.15.16",
Expand Down
8 changes: 8 additions & 0 deletions docs/generated/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
<h1>Agent-JS Changelog</h1>

<section>
<h2>Version x.x.x</h2>
<ul>
<li></li>
</ul>
<h2>Version 0.15.3</h2>
<ul>
<li>reverts the X-IC-Request-ID header until we coordinate cors support with icx-proxy</li>
</ul>
<h2>Version 0.15.2</h2>
<ul>
<li>
Expand Down
8 changes: 4 additions & 4 deletions e2e/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@do-not-publish/ic-cypress-e2e-tests",
"version": "0.15.2",
"version": "0.15.3",
"scripts": {
"ci": "npm run e2e",
"pree2e": "dfx deploy; dfx generate; pm2 --name parcel start npm -- start",
Expand All @@ -28,10 +28,10 @@
"size-limit": "^8.1.0"
},
"dependencies": {
"@dfinity/agent": "^0.15.2",
"@dfinity/agent": "^0.15.3",
"@dfinity/authentication": "^0.14.1",
"@dfinity/identity": "^0.15.2",
"@dfinity/principal": "^0.15.2",
"@dfinity/identity": "^0.15.3",
"@dfinity/principal": "^0.15.3",
"@types/node": "^18.0.6",
"idb-keyval": "^6.2.0"
}
Expand Down
10 changes: 5 additions & 5 deletions e2e/node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@do-not-publish/ic-node-e2e-tests",
"version": "0.15.2",
"version": "0.15.3",
"scripts": {
"ci": "npm run e2e",
"e2e": "jest --verbose",
Expand All @@ -16,11 +16,11 @@
"test": ""
},
"dependencies": {
"@dfinity/agent": "^0.15.2",
"@dfinity/assets": "^0.15.2",
"@dfinity/agent": "^0.15.3",
"@dfinity/assets": "^0.15.3",
"@dfinity/authentication": "^0.14.1",
"@dfinity/identity": "^0.15.2",
"@dfinity/principal": "^0.15.2",
"@dfinity/identity": "^0.15.3",
"@dfinity/principal": "^0.15.3",
"@trust/webcrypto": "^0.9.2",
"@types/base64-js": "^1.3.0",
"@types/jest": "^28.1.4",
Expand Down
86 changes: 43 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/agent-monorepo",
"version": "0.15.2",
"version": "0.15.3",
"private": true,
"description": "Use an Agent to interact with the Internet Computer from your JavaScript program.",
"workspaces": {
Expand Down
6 changes: 3 additions & 3 deletions packages/agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/agent",
"version": "0.15.2",
"version": "0.15.3",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to interact with the Internet Computer",
Expand Down Expand Up @@ -50,8 +50,8 @@
"tslint": "tslint --project tsconfig.json --config tslint.json"
},
"peerDependencies": {
"@dfinity/candid": "^0.15.2",
"@dfinity/principal": "^0.15.2"
"@dfinity/candid": "^0.15.3",
"@dfinity/principal": "^0.15.3"
},
"dependencies": {
"base64-arraybuffer": "^0.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/agent/src/agent/http/http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ describe('makeNonce', () => {

expect(nonce).toBe(originalNonce);
});
it('should insert the nonce as a header in the request', async () => {
it.skip('should insert the nonce as a header in the request', async () => {
const mockFetch: jest.Mock = jest.fn((resource, init) => {
return Promise.resolve(
new Response(null, {
Expand Down
3 changes: 2 additions & 1 deletion packages/agent/src/agent/http/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export function makeNonceTransform(nonceFn: () => Nonce = makeNonce): HttpAgentR
const nonce = nonceFn();
// Nonce needs to be inserted into the header for all requests, to enable logs to be correlated with requests.
const headers = request.request.headers ? new Headers(request.request.headers) : new Headers();
headers.set('X-IC-Request-ID', toHex(new Uint8Array(nonce)));
// TODO: uncomment this when the http proxy supports it.
// headers.set('X-IC-Request-ID', toHex(new Uint8Array(nonce)));
request.request.headers = headers;

// Nonce only needs to be inserted into the body for async calls, to prevent replay attacks.
Expand Down
4 changes: 2 additions & 2 deletions packages/assets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/assets",
"version": "0.15.2",
"version": "0.15.3",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to manage assets on the Internet Computer",
Expand Down Expand Up @@ -50,7 +50,7 @@
"test:coverage": "jest --verbose --collectCoverage"
},
"peerDependencies": {
"@dfinity/agent": "^0.15.2",
"@dfinity/agent": "^0.15.3",
"js-sha256": "0.9.0"
},
"dependencies": {
Expand Down
Loading

0 comments on commit aa14db3

Please sign in to comment.