Skip to content

Commit

Permalink
6.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
piano-analytics committed Nov 17, 2022
1 parent f1c43c0 commit ea1577b
Show file tree
Hide file tree
Showing 22 changed files with 5,179 additions and 1,115 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 6.7.0
### Fixes
- Handle `queueVarName` conflict (no more crash, console log)
- Correctly retrieve encoded cookies, even if the configuration is not enabled

### Changes
- Allow boolean value for `addEventUrl` configuration
- Remove anchor in `page_url` retrieved
- Automatically generated visitor IDs are now 16 characters long (no more GUID)
- Visitor ID must be 16 or 36 characters long
- Visitor id is now stored in `_pcid` cookie
- Empty values for configurations are now ignored

### New
- New cookie `_pctx` created to store contextual data
- Automatically retrieve HTML page title into property `page_title_html`
- New contextual properties added (`has_access`, `pageview_id`)
- Properties `page_title_html` and `pageview_id` are allowed in exempt mode
- New methods for Piano cross-product integrations (`setContentProperties`, `setContentProperty`, `refresh`)

## 6.6.0
### Added or Changed
- Added SmartTag cookie `atuserid` management for Privacy `exempt` mode
Expand Down
24 changes: 18 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,34 @@
module.exports = function (grunt) {
grunt.initConfig({
copy: {
clean: {
"http-clean": {
src: 'src/utils/request/http-template.js',
dest: 'src/utils/request/http.js'
},
browserless: {
"http-browserless": {
src: 'src/utils/request/http-browserless.js',
dest: 'src/utils/request/http.js'
},
reactnative: {
src: 'src/utils/request/http-react-native.js',
"http-browser": {
src: 'src/utils/request/http-browser.js',
dest: 'src/utils/request/http.js'
},
browser: {
src: 'src/utils/request/http-browser.js',
"http-react-native": {
src: 'src/utils/request/http-react-native.js',
dest: 'src/utils/request/http.js'
},
"datalayer-clean": {
src: 'src/business/data-layer/data-layer-template.js',
dest: 'src/business/data-layer/data-layer.js',
},
"datalayer-browserless": {
src: 'src/business/data-layer/data-layer-template.js',
dest: 'src/business/data-layer/data-layer.js'
},
"datalayer-browser": {
src: 'src/business/data-layer/data-layer-browser.js',
dest: 'src/business/data-layer/data-layer.js'
},
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "piano-analytics-js",
"description": "JavaScript library for Piano Analytics",
"version": "6.6.0",
"version": "6.7.0",
"main": "dist/browserless/piano-analytics.cjs.js",
"module": "dist/browserless/piano-analytics.esm.js",
"browser": "dist/browser/piano-analytics.umd.js",
Expand All @@ -21,37 +21,37 @@
"analytics"
],
"scripts": {
"prebuild:browser": "grunt copy:browser",
"prebuild:browserless": "grunt copy:browserless",
"prebuild:reactnative": "grunt copy:reactnative",
"clean": "grunt copy:clean",
"prebuild:browser": "grunt copy:http-browser && grunt copy:datalayer-browser",
"prebuild:browserless": "grunt copy:http-browserless && grunt copy:datalayer-browserless",
"prebuild:react-native": "grunt copy:http-react-native && grunt copy:datalayer-browserless",
"clean": "grunt copy:http-clean && grunt copy:datalayer-clean",
"rollup:browser": "npm run prebuild:browser && rollup --config rollup.config-browser.js && npm run clean",
"rollup:browserless": "npm run prebuild:browserless && rollup --config rollup.config-browserless.js && npm run clean",
"rollup:reactnative": "npm run prebuild:reactnative && rollup --config rollup.config-react-native.js && npm run clean",
"build": "npm run rollup:browser --omit=dev && npm run rollup:browserless --omit=dev && npm run rollup:reactnative --omit=dev",
"rollup:react-native": "npm run prebuild:react-native && rollup --config rollup.config-react-native.js && npm run clean",
"build": "npm run rollup:browser --omit=dev && npm run rollup:browserless --omit=dev && npm run rollup:react-native --omit=dev",
"test": "npm run test:browser && npm run test:browserless",
"test:browser": "npm run rollup:browser && karma start",
"test:browserless": "npm run rollup:browserless && node test/browserless.run.js"
},
"devDependencies": {
"@babel/core": "7.19.1",
"@babel/preset-env": "7.19.1",
"@rollup/plugin-babel": "5.3.1",
"@babel/core": "7.19.6",
"@babel/preset-env": "7.19.4",
"@rollup/plugin-babel": "6.0.2",
"chai": "4.3.6",
"eslint": "8.23.1",
"eslint": "8.26.0",
"eslint-config-standard": "17.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "6.0.1",
"eslint-plugin-promise": "6.1.1",
"grunt": "1.5.3",
"grunt-contrib-copy": "^1.0.0",
"karma": "6.4.1",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "3.1.1",
"karma-mocha": "2.0.1",
"load-grunt-tasks": "5.1.0",
"mocha": "10.0.0",
"puppeteer": "18.0.4",
"mocha": "10.1.0",
"puppeteer": "19.2.1",
"rollup": "2.79.1",
"rollup-plugin-eslint": "7.0.0",
"rollup-plugin-replace": "2.2.0",
Expand Down
6 changes: 6 additions & 0 deletions src/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"parserOptions": {
"sourceType": "module"
},
"ignorePatterns": [
"business/data-layer/data-layer.js",
"business/data-layer/data-layer-browser.js",
"business/data-layer/data-layer-template.js",
"business/avinsights.js"
],
"rules": {
"indent": [
"error",
Expand Down
Loading

0 comments on commit ea1577b

Please sign in to comment.