Skip to content

Commit

Permalink
Merge pull request #20 from adjust/version-512
Browse files Browse the repository at this point in the history
Version 5.1.2
  • Loading branch information
YaroslavnaMatkova authored Jun 11, 2021
2 parents a79285f + d2e7c4e commit 79b34e4
Show file tree
Hide file tree
Showing 59 changed files with 23,865 additions and 4,567 deletions.
43 changes: 35 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,40 @@
"prefer-arrow-callback": "error",
"prefer-object-spread": "error"
},

"overrides": [{
"files": ["*.ts"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"semi": ["error", "never"]
"overrides": [
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"files": ["./src/**/*.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"rules": {
"semi": ["error", "never"],
"space-before-function-paren": ["error", "never"],
"eol-last": "error",
"@typescript-eslint/ban-types": "warn"
}
},
{
"extends": ["plugin:jest/style"],
"files": ["./src/**/*.spec.*"],
"env": {
"jest": true
},
"plugins": ["jest"],
"rules": {
"jest/prefer-to-have-length": "off",
"jest/no-disabled-tests": "error",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"@typescript-eslint/no-var-requires": "off"
}
}
}]
]
}
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
[lints]

[options]
module.file_ext=.ts

[strict]
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

node_modules/
coverage/
demo/
/demo/
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
### Version 5.1.2 (11th June 2021)
#### Added
- Added Typescript support.
- Added URL strategy with retries when request are being blocked by firewall.
- Added custom storage namespace.

#### Fixed
- Fixed issue with using IndexedDb in cross-origin iframe in Safari.

---

### Version 5.1.1 (14th December 2020)
#### Added
- Added `warning` log level to make non-critical issues look less frightening.
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Read this in other languages: [English][en-readme], [中文][zh-readme], [日本

* [Example apps](#example-app)
* [Installation](#installation)
* [Initialization](#initialization)
* [Initialization](#initialization)
* [Event tracking](#event-tracking)
* [Global callback parameters](#global-callback-parameters)
* [Global partner parameters](#global-partner-parameters)
Expand Down Expand Up @@ -37,7 +37,7 @@ To lazy <a id="loading-snippet">load the Adjust Web SDK through CDN</a> paste th

The Adjust Web SDK should be loaded only once per page and it should be initiated once per page load.

When loading the sdk through CDN we suggest using minified version. You can target specific version like `https://cdn.adjust.com/adjust-5.1.1.min.js`, or you can target latest version `https://cdn.adjust.com/adjust-latest.min.js` if you want automatic updates without need to change the target file. The sdk files are cached so they are served as fast as possible, and the cache is refreshed every half an hour. If you want updates immediately make sure to target specific version.
When loading the sdk through CDN we suggest using minified version. You can target specific version like `https://cdn.adjust.com/adjust-5.1.2.min.js`, or you can target latest version `https://cdn.adjust.com/adjust-latest.min.js` if you want automatic updates without need to change the target file. The sdk files are cached so they are served as fast as possible, and the cache is refreshed every half an hour. If you want updates immediately make sure to target specific version.

It's also possible to install our sdk through NPM:

Expand Down Expand Up @@ -111,6 +111,12 @@ Here are more details about each log level:

It's possible to define html container where you want to see your logs. This is useful when testing on mobile devices and when you want to see logs directly on the screen (recommended only for testing)

<a id="namespace">**namespace**</a> `string`

A custom namespace for SDK data storage. If there are multiple applications on the same domain to allow SDK distinguish storages and don't mix the data up each application should use it's own namespace.

Please note it's possible to set custom namespace for existing storage with default name, all data will be preserved and moved to the custom namespace. Once custom namespace is set it's not possible to rename it without data loss.


## <a id="event-tracking">Event tracking</a>

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.1.1
5.1.2
Loading

0 comments on commit 79b34e4

Please sign in to comment.