Skip to content

Commit

Permalink
Merge pull request #8 from adjust/v500
Browse files Browse the repository at this point in the history
Version 5.0.0
  • Loading branch information
milica authored May 14, 2020
2 parents 4a33243 + e11914e commit 2974300
Show file tree
Hide file tree
Showing 147 changed files with 47,943 additions and 728 deletions.
20 changes: 20 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"presets": [
"@babel/preset-flow",
["@babel/preset-env", {
"targets": ["> 0.25%", "not dead"]
}]
],
"plugins": [
"es6-promise",
"@babel/plugin-transform-flow-comments",
["@babel/plugin-transform-runtime", {
"version": "7.6.2"
}]
],
"env": {
"test": {
"plugins": ["transform-es2015-modules-commonjs"]
}
}
}
30 changes: 30 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"node": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended"
],
"plugins": ["flowtype"],
"globals": {
"Promise": true,
"__ADJUST__NAMESPACE": true,
"__ADJUST__SDK_VERSION": true,
"Utils": true
},
"rules": {
"semi": ["error", "never"],
"space-before-function-paren": ["error", "always"],
"quotes": ["error", "single"],
"prefer-arrow-callback": "error",
"prefer-object-spread": "error"
}
}
15 changes: 15 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[ignore]
.*/node_modules/.*
.*/coverage/.*
.*/demo/.*
.*/dist/.*

[include]

[libs]

[lints]

[options]

[strict]
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea/
*.log
*.DS_Store

node_modules/
coverage/
demo/
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Version 5.0.0 (15th May 2020)
#### Added
- New major SDK update.
- Added SDK exposure under all module definitions, so it works under **CommonJS** and **AMD** environments and is also available through global `Adjust` when loaded through **cdn**.
- Added attribution callback support.
- Added retry mechanism for failed attribution requests.
- Added HTTP request queueing with retry mechanism.
- Added usage of **indexedDB** with **localStorage** as a fallback.
- Added global callback and partner parameters, along with removal of previously set ones.
- Added offline mode.
- Added possibility to set the log level on init and optionally specify log container.
- Added SDK stop and restart possibility.
- Added GDPR forget me ability.
- Added ability to define default tracker through configuration.
- Added sending of `sdk_click` package when referrer is available.
- Added traffic redirection possibility.
- Added event deduplication.
- Added disable third party sharing option.

#### Changed
- Switched to using exposed single instance instead of initiating it manually with the `new` (`Adjust.initSdk(YOUR_CONFIG)`).
- Automated session tracking, method `trackSession` is no longer available.
37 changes: 37 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!groovy

pipeline {
agent {
node {
label 'new'
}
}
stages {
stage('Setup') {
steps {
sh "npm install"
}
}
stage('Test') {
steps {
sh "npm run test:all"
}
}
stage('Build Production') {
steps {
sh "npm run clean"
sh "npm run build:demo"
}
}
stage('Deploy Production') {
steps {
sh "rsync -e 'ssh -o StrictHostKeyChecking=no' -va --rsync-path='mkdir -p /home/dashboard/web-sdk-demo/current/public/ && rsync' --delete ./demo/ [email protected]://home/dashboard/web-sdk-demo/current/public/"
}
}
}
post {
always {
cleanWs()
}
}
}
Loading

0 comments on commit 2974300

Please sign in to comment.