Skip to content

Commit

Permalink
Merge pull request #253 from tonlabs/1.21.2-rc
Browse files Browse the repository at this point in the history
Version 1.21.2
  • Loading branch information
d3p authored Aug 25, 2021
2 parents 114c969 + 9bfb0d6 commit e6dd400
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 22 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## [1.21.2] – 2021-08-25

### Fixed
- Updated crypto libraries in order to fix building.

## [1.21.1] – 2021-08-24

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages": [
"packages/*"
],
"version": "1.21.1",
"version": "1.21.2",
"command": {
"version": {
"message": "Release"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/core",
"version": "1.21.1",
"version": "1.21.2",
"description": "TON Client for Java Script",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
19 changes: 9 additions & 10 deletions packages/lib-node/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ const path = require('path');
const os = require('os');
const platform = os.platform();

const binariesHost = 'binaries.tonlabs.io';
const binariesVersion = process.env.TON_CLIENT_BIN_VERSION || require('./package.json')
.version
.split('.')
.slice(0, 2)
.join('_');
const binariesSource =
process.env.TON_CLIENT_BIN_SRC || 'https://binaries.tonlabs.io';
const binariesVersion =
process.env.TON_CLIENT_BIN_VERSION ||
require('./package.json').version.split('.').slice(0, 2).join('_');
const binariesHomePath = path.resolve(os.homedir(), '.tonlabs', 'binaries', binariesVersion);

function downloadAndGunzip(dest, url) {
Expand Down Expand Up @@ -100,10 +99,10 @@ function resolveBinariesTargetPath() {
}
}

async function dl(dst_path, src) {
const src_url = `https://${binariesHost}/${src}.gz`;
process.stdout.write(`Downloading from ${src_url} to ${dst_path} ...`);
await downloadAndGunzip(dst_path, src_url);
async function dl(dstPath, src) {
const srcUrl = `${binariesSource}/${src}.gz`;
process.stdout.write(`Downloading from ${srcUrl} to ${dstPath} ...`);
await downloadAndGunzip(dstPath, srcUrl);
process.stdout.write('\n');
}

Expand Down
2 changes: 1 addition & 1 deletion packages/lib-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/lib-node",
"version": "1.21.1",
"version": "1.21.2",
"description": "TON Client NodeJs AddOn",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/lib-react-native-jsi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/lib-react-native-jsi",
"version": "1.21.1",
"version": "1.21.2",
"description": "TON Client React Native JSI Module",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
2 changes: 1 addition & 1 deletion packages/lib-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/lib-react-native",
"version": "1.21.1",
"version": "1.21.2",
"description": "TON Client React Native Module",
"main": "index.js",
"repository": {
Expand Down
3 changes: 3 additions & 0 deletions packages/lib-web/build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ fn fix_wrapper_script(wrapper: String) -> String {
},\n \
free: function(ptr) {\n \
wasm.__wbindgen_free(ptr);\n \
},\n \
now: function() {\n \
return new Date().getTime();\n \
},\n \
};"
),
Expand Down
2 changes: 1 addition & 1 deletion packages/lib-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/lib-web",
"version": "1.21.1",
"version": "1.21.2",
"description": "TON Client WASM module for browsers",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tests-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/tests-node",
"version": "1.21.1",
"version": "1.21.2",
"private": true,
"description": "TON Client Tests runner on NodeJs",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/tests-react-native-jsi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/tests-react-native-jsi",
"version": "1.21.1",
"version": "1.21.2",
"private": true,
"main": "index.js",
"browser": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/tests-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/tests-react-native",
"version": "1.21.1",
"version": "1.21.2",
"private": true,
"main": "index.js",
"browser": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/tests-web/npm-shrinkwrap.json

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

2 changes: 1 addition & 1 deletion packages/tests-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/tests-web",
"version": "1.21.1",
"version": "1.21.2",
"private": true,
"description": "TON Client WASM module tests runner",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/tests",
"version": "1.21.1",
"version": "1.21.2",
"private": true,
"description": "TON Client Tests",
"main": "dist/index.js",
Expand Down

0 comments on commit e6dd400

Please sign in to comment.