Skip to content

Commit d662ddf

Browse files
committed
Merge branch 'release/3.0.4'
2 parents f03ffc8 + 8727bfa commit d662ddf

7 files changed

Lines changed: 1588 additions & 1690 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [3.0.4] - 2021-02-21
8+
9+
### Fixed
10+
11+
- Unable to set Access-Control-Allow-Credentials Header on Platforms-As-A-Service Deployments (#223)
12+
713
## [3.0.3] - 2021-01-24
814

915
### Added

dist/index.js

Lines changed: 57 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The event type specifies how Ackee will show the aggregated data in the UI. It c
1919
- **Chart with total sums**: Shows the aggregated data as a chart. Each day, month or year (depending on the chosen interval) includes the total sum of values.
2020
- **Chart with average values**: Shows the aggregated data as a chart. Each day, month or year (depending on the chosen interval) includes the average value.
2121
- **List with total sums**: Shows the aggregated data as a list. Each entry includes the total sum of values. Perfect when an event contains different actions (e.g. tracking choices).
22-
- **List with average values**: Shows the aggregated data as a list. Each entry includes the total sum of values. Perfect when an event contains different actions (e.g. tracking choices).
22+
- **List with average values**: Shows the aggregated data as a list. Each entry includes the average value. Perfect when an event contains different actions (e.g. tracking choices).
2323

2424
### Adding actions
2525

docs/Upgrade guide.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Upgrade guide
2+
3+
## Upgrading from version 2 to 3
4+
5+
### `Access-Control-Allow-Origin: "*"` not recommended
6+
7+
> This change is relevant for you when using a wildcard as the Access-Control-Allow-Origin.
8+
9+
Using a wildcard (`*`) for the `Access-Control-Allow-Origin` header was never recommended as it's neither a secure solution nor does it allow Ackee to ignore your own visits. Please disable the `ignoreOwnVisits` option in ackee-tracker if you're currently using a wildcard. The [SSL and HTTPS](docs/SSL%20and%20HTTPS.md) guide contains better alternatives.
10+
11+
`ignoreOwnVisits` is now enabled by default and won't work when using a wildcard.
12+
13+
### New `Access-Control-Allow-Credentials` header
14+
15+
> This change is relevant for everyone.
16+
17+
Ackee requires [a new `Access-Control-Allow-Credentials` header](docs/CORS%20headers.md#credentials) which was previously optional. Make sure to add this header in your server or reverse proxy configuration.
18+
19+
### ackee-tracker with new `.create` and `.record` syntax
20+
21+
> This change is only relevant for you when using ackee-tracker in the [Manually](https://github.com/electerious/ackee-tracker/blob/master/README.md#manually) or [Programmatic](https://github.com/electerious/ackee-tracker/blob/master/README.md#programmatic) way.
22+
23+
The [changelog of ackee-tracker](https://github.com/electerious/ackee-tracker/blob/master/CHANGELOG.md) contains everything you need to know when updating to the newest version.
24+
25+
### Referrers require `ReferrerType` in GraphQL API
26+
27+
> This change is relevant for you when using the GraphQL API.
28+
29+
A new parameter is required when requesting referrers via the GraphQL API. The parameter is called `ReferrerType` and can be `WITH_SOURCE`, `NO_SOURCE` or `ONLY_SOURCE`.
30+
31+
### Referrers can return non URL ids via GraphQL API
32+
33+
> This change is relevant for you when using the GraphQL API.
34+
35+
The `id` of requested referrers was always a URL, but has been changed to a string. That's because [referrers can now include parameters](docs/Enhancing%20referrers.md) (e.g. `source` when using `ackee-tracker`).

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ackee",
33
"private": true,
4-
"version": "3.0.3",
4+
"version": "3.0.4",
55
"authors": [
66
"Tobias Reich <tobias@electerious.com>"
77
],
@@ -34,22 +34,22 @@
3434
},
3535
"dependencies": {
3636
"ackee-tracker": "^5.0.1",
37-
"apollo-server-lambda": "^2.19.2",
38-
"apollo-server-micro": "^2.19.2",
37+
"apollo-server-lambda": "^2.21.0",
38+
"apollo-server-micro": "^2.21.0",
3939
"apollo-server-plugin-http-headers": "^0.1.4",
40-
"date-fns": "^2.16.1",
41-
"date-fns-tz": "^1.0.10",
40+
"date-fns": "^2.17.0",
41+
"date-fns-tz": "^1.1.2",
4242
"debounce-promise": "^3.1.2",
4343
"dotenv": "^8.2.0",
44-
"graphql": "^15.4.0",
45-
"graphql-scalars": "^1.7.0",
46-
"graphql-tools": "^7.0.2",
44+
"graphql": "^15.5.0",
45+
"graphql-scalars": "^1.7.1",
46+
"graphql-tools": "^7.0.4",
4747
"is-url": "^1.2.4",
4848
"micro": "^9.3.4",
4949
"microrouter": "^3.1.3",
50-
"mongoose": "^5.11.13",
50+
"mongoose": "^5.11.17",
5151
"node-fetch": "^2.6.1",
52-
"node-schedule": "^1.3.2",
52+
"node-schedule": "^2.0.0",
5353
"normalize-url": "^5.0.0",
5454
"request-ip": "^2.1.3",
5555
"sanitize-filename": "^1.6.3",
@@ -61,7 +61,7 @@
6161
"ava": "3.15.0",
6262
"classnames": "^2.2.6",
6363
"coveralls": "^3.1.0",
64-
"eslint": "^7.18.0",
64+
"eslint": "^7.20.0",
6565
"eslint-plugin-import": "^2.22.0",
6666
"eslint-plugin-react": "^7.22.0",
6767
"eslint-plugin-react-hooks": "^4.2.0",
@@ -81,9 +81,9 @@
8181
"react-dom": "^17.0.1",
8282
"react-error-boundary": "^3.1.0",
8383
"react-fast-compare": "^3.2.0",
84-
"react-hotkeys-hook": "^3.0.3",
84+
"react-hotkeys-hook": "^3.1.0",
8585
"react-redux": "^7.2.2",
86-
"react-use": "^15.3.8",
86+
"react-use": "^17.1.1",
8787
"redux": "^4.0.5",
8888
"redux-devtools-extension": "^2.13.8",
8989
"redux-thunk": "^2.3.0",
@@ -119,6 +119,6 @@
119119
}
120120
},
121121
"engines": {
122-
"node": ">= 12"
122+
"node": ">= 14"
123123
}
124124
}

src/serverless.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const origin = (() => {
3030
exports.handler = apolloServer.createHandler({
3131
cors: {
3232
origin,
33+
credentials: true,
3334
methods: 'GET,POST,PATCH,OPTIONS',
3435
allowedHeaders: 'Content-Type, Authorization, Time-Zone'
3536
}

0 commit comments

Comments
 (0)