Skip to content

Commit

Permalink
Merge branch 'release/v2.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Algo-devops-service committed Oct 20, 2023
2 parents ec7bf1c + 7965d1c commit e947e33
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 92 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
env: {
browser: true,
es2021: true,
'shared-node-browser': true,
},
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# v2.7.0

<!-- Release notes generated using configuration in .github/release.yml at release/v2.7.0 -->

## What's Changed

### Enhancements

- fix: remove cross-fetch by @PhearZero in https://github.com/algorand/js-algorand-sdk/pull/833

## New Contributors

- @PhearZero made their first contribution in https://github.com/algorand/js-algorand-sdk/pull/833

**Full Changelog**: https://github.com/algorand/js-algorand-sdk/compare/v2.6.0...v2.7.0

# v2.6.0

<!-- Release notes generated using configuration in .github/release.yml at release/v2.6.0 -->
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Include a minified browser bundle directly in your HTML like so:

```html
<script
src="https://unpkg.com/algosdk@v2.6.0/dist/browser/algosdk.min.js"
integrity="sha384-lQFw8cXCcsNWUXAkEbZNvOieLVDwHbFLQILZZ2yr3CQlzBYQKUE0MjsiQe7GsP09"
src="https://unpkg.com/algosdk@v2.7.0/dist/browser/algosdk.min.js"
integrity="sha384-OP8U0zDUgTdYdeyxnrhicwju6SuPxm2tx4WaTYDeP5JiMS/OyifldTK5Y3vzPK9K"
crossorigin="anonymous"
></script>
```
Expand All @@ -30,8 +30,8 @@ or

```html
<script
src="https://cdn.jsdelivr.net/npm/algosdk@v2.6.0/dist/browser/algosdk.min.js"
integrity="sha384-lQFw8cXCcsNWUXAkEbZNvOieLVDwHbFLQILZZ2yr3CQlzBYQKUE0MjsiQe7GsP09"
src="https://cdn.jsdelivr.net/npm/algosdk@v2.7.0/dist/browser/algosdk.min.js"
integrity="sha384-OP8U0zDUgTdYdeyxnrhicwju6SuPxm2tx4WaTYDeP5JiMS/OyifldTK5Y3vzPK9K"
crossorigin="anonymous"
></script>
```
Expand Down
86 changes: 2 additions & 84 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "algosdk",
"version": "2.6.0",
"version": "2.7.0",
"description": "The official JavaScript SDK for Algorand",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand All @@ -23,7 +23,6 @@
"dependencies": {
"algo-msgpack-with-bigint": "^2.1.1",
"buffer": "^6.0.3",
"cross-fetch": "^4.0.0",
"hi-base32": "^0.5.1",
"js-sha256": "^0.9.0",
"js-sha3": "^0.8.0",
Expand Down
1 change: 0 additions & 1 deletion src/client/urlTokenBaseHTTPClient.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Buffer } from 'buffer';
import { fetch, Response, Headers } from 'cross-fetch';
import {
BaseHTTPClient,
BaseHTTPClientResponse,
Expand Down
2 changes: 2 additions & 0 deletions tests/cucumber/steps/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ if (browser) {
} else if (browser === 'chrome') {
require('chromedriver');
browserHeaders = [
'accept-language',
'origin',
'referer',
'sec-ch-ua',
Expand All @@ -77,6 +78,7 @@ if (browser) {

console.log('Testing in browser');
} else {
browserHeaders = ['sec-fetch-mode', 'accept-language'];
console.log('Testing in node');
}

Expand Down
1 change: 0 additions & 1 deletion tests/cucumber/unit.tags
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
@unit.atomic_transaction_composer
@unit.blocksummary
@unit.blocktxids
@unit.client-no-headers
@unit.dryrun
@unit.dryrun.trace.application
@unit.feetest
Expand Down

0 comments on commit e947e33

Please sign in to comment.