Skip to content

Commit 91d6e7c

Browse files
author
markzegarelli
authored
Merge pull request #1568 from segmentio/changelogs
changelogs init
2 parents d94ad51 + 64b10f7 commit 91d6e7c

37 files changed

+528
-22
lines changed

.vscode/launch.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": []
7+
}

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ serve: package
5353
catalog: vendor/bundle
5454
@node scripts/catalog.js
5555

56+
.PHONY: changelog
57+
changelog: vendor/bundle
58+
@node scripts/changelog.js
59+
5660
.PHONY: sidenav
5761
sidenav: vendor/bundle
5862
@node scripts/nav.js

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"glightbox": "^3.0.6",
5353
"htm": "^3.0.4",
5454
"hyperlink": "^4.5.2",
55+
"json-to-pretty-yaml": "^1.2.2",
5556
"preact": "^10.5.12",
5657
"search-insights": "^1.7.1",
5758
"tap-spot": "^1.1.1",

scripts/catalog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ const updateSources = async () => {
292292
})
293293

294294
// Create source catalog yaml file
295-
const options = { noArrayIndent: true };
295+
const options = { noArrayIndent: false };
296296
var todayDate = new Date().toISOString().slice(0,10);
297297
output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
298298
output += "# sources last updated " + todayDate + " \n";

scripts/changelog.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
const axios = require('axios');
2+
const path = require('path');
3+
const fs = require('fs');
4+
const fm = require('front-matter');
5+
const yaml = require('js-yaml');
6+
7+
API_URL = "https://api.github.com/repos/segmentio/"
8+
9+
const getLog = async (url = "") => {
10+
try {
11+
const res = await axios.get(url, {
12+
headers: {
13+
'Content-Type': 'application/json',
14+
}
15+
});
16+
return res.data
17+
} catch (error) {
18+
console.log(error)
19+
}
20+
}
21+
let libraries = ["analytics-android","analytics-ios", "analytics-react-native", "analytics-node", "analytics-python", "analytics-php", "analytics-go", "analytics-java", "analytics.NET"]
22+
23+
const replace_token = /.+\r\n(-{2,}\r\n)|.+\r\n(={2,}\r\n)/mg;
24+
const subst = ``
25+
26+
const updateLog = async(library) => {
27+
28+
let releasesUpdated = []
29+
let url = API_URL+library+'/releases'
30+
const releases = await getLog(url)
31+
releases.forEach(release => {
32+
let note = release.body
33+
cleaned_note = note.replace(replace_token,subst)
34+
let updatedRelease = {
35+
version: release.name,
36+
url: release.html_url,
37+
date: release.published_at,
38+
notes: cleaned_note
39+
}
40+
releasesUpdated.push(updatedRelease)
41+
})
42+
43+
const options = { noArrayIndent: true };
44+
var todayDate = new Date().toISOString().slice(0,10);
45+
output = "# AUTOGENERATED FROM GITHUB API. DO NOT EDIT\n"
46+
output += "# Releases last updated " + todayDate + " \n";
47+
output += yaml.safeDump({ releases: releasesUpdated }, options);
48+
fs.writeFileSync(path.resolve(__dirname, `../src/_data/changelogs/${library}.yml`), output);
49+
}
50+
51+
libraries.forEach(library => {
52+
updateLog(library);
53+
});
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# AUTOGENERATED FROM GITHUB API. DO NOT EDIT
2+
# Releases last updated 2021-05-07
3+
releases:
4+
- version: 4.9.4
5+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.9.4'
6+
date: '2021-05-04T00:16:56Z'
7+
notes: "* [Fix](https://github.com/segmentio/analytics-android/pull/761): Map product_id for a Product\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/767): Safely handle bad URIs when tracking deep links"
8+
- version: 4.9.3
9+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.9.3'
10+
date: '2021-03-30T00:39:13Z'
11+
notes: "* [Fix](https://github.com/segmentio/analytics-android/pull/755): Check Float NaN and Infinity\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/758): Fix Incorrect Timestamps"
12+
- version: 4.9.2
13+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.9.2'
14+
date: '2021-03-22T19:13:24Z'
15+
notes: "* [New](https://github.com/segmentio/analytics-android/pull/734): Make new lifecycle methods opt-out\r\n* [New](https://github.com/segmentio/analytics-android/pull/731): Kotlin Demo App\r\n* [New](https://github.com/segmentio/analytics-android/pull/739): Custom apiHost for Segment.IO and support multi-regional Segment\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/750): Add NonNull annotations to params for analytics constructor\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/749): Retry hasPermission in case of failure due to package manager being inactive\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/752): Marshal NaN and other special numbers to 0.0 and not produce malformed JSON"
16+
- version: 4.9.0
17+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.9.0'
18+
date: '2020-10-16T00:33:56Z'
19+
notes: "* [New](https://github.com/segmentio/analytics-android/pull/707): Remove the ability to natively report attribution information via Segment integrations\r\n* [New](https://github.com/segmentio/analytics-android/pull/727): Edge Function Support\r\n* [New](https://github.com/segmentio/analytics-android/pull/715): Add a Webhook Integration for viewing payloads\r\n* [New](https://github.com/segmentio/analytics-android/pull/728): Enable faster project settings refresh when debugging enabled"
20+
- version: 4.8.2
21+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.8.2'
22+
date: '2020-07-30T20:07:08Z'
23+
notes: >-
24+
* [Fix](https://github.com/segmentio/analytics-android/pull/686): Generate
25+
timestamps at call site rather than asynchronously
26+
- version: 4.8.0
27+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.8.0'
28+
date: '2020-07-13T18:14:35Z'
29+
notes: "\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/668): Fix: Proguard/R8 configuration for createValueMap\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/670): handle RuntimeException when calling `getActivityInfo`\r\n* [New](https://github.com/segmentio/analytics-android/pull/671): Experimental Nanosecond timestamps"
30+
- version: 4.7.1
31+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.7.1'
32+
date: '2020-06-08T23:32:57Z'
33+
notes: "\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/667): Use AndroidX lifecycle functions for App Fore/Backgrounded\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/666): Fix alias not overridden by cached value\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/663): Catch null intent data"
34+
- version: 4.7.0
35+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.7.0'
36+
date: '2020-06-01T22:03:42Z'
37+
notes: "\r\n* [New](https://github.com/segmentio/analytics-android/pull/655): Add type to device context\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/665): Prevent Global Context modification for one-time op\r\n* [New](https://github.com/segmentio/analytics-android/pull/664): Add support for Destination Middleware\r\n"
38+
- version: 4.6.0
39+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.6.0'
40+
date: '2020-05-21T18:17:59Z'
41+
notes: "* [New](https://github.com/segmentio/analytics-android/pull/662): Add DefaultProjectSettings in Analytics.Builder\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/659): Test coverage fix after previous merge to master\r\n* [New](https://github.com/segmentio/analytics-android/pull/658): Update project to AndroidX\r\n* [Fix](https://github.com/segmentio/analytics-android/pull/656): Set build property to String"
42+
- version: 4.5.0
43+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.5.0'
44+
date: '2020-04-22T19:59:57Z'
45+
notes: "* Promoting 4.5.x to stable release. This includes all changes since 4.3.1.\r\n* [Fix](https://github.com/fubotv/segment-analytics-android/pull/1): Check integration settings for null\r\n"
46+
- version: 4.5.0-beta.2
47+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.5.0-beta.2'
48+
date: '2020-03-23T17:55:25Z'
49+
notes: " * [New](https://github.com/segmentio/analytics-android/pull/632): Make crypto abstract methods public\r\n * [Fix](https://github.com/segmentio/analytics-android/pull/648): Preserve BUILD and VERSION keys on reset() calls\r\n * [Fix](https://github.com/segmentio/analytics-android/pull/646): Resolves ArrayIndexOutOfBoundsException crash (#586)\r\n * [Fix](https://github.com/segmentio/analytics-android/pull/644): Updated documentation on deep copy and threading\r\n * [Fix](https://github.com/segmentio/analytics-android/pull/642): Double check that input stream is closed\r\n"
50+
- version: 4.5.0-beta.0
51+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.5.0-beta.0'
52+
date: '2019-07-26T23:30:17Z'
53+
notes: >-
54+
* [New](https://github.com/segmentio/analytics-android/pull/620): Add
55+
Application Open and Application Backgrounded Events
56+
- version: ''
57+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.3.0'
58+
date: '2017-10-04T06:58:23Z'
59+
notes: "Promoting RC to stable release. This includes all the improvements from 4.3.0-RC1 and 4.3.0-RC2.\r\n"
60+
- version: ''
61+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.3.0-RC2'
62+
date: '2017-07-28T03:53:05Z'
63+
notes: " * [New](https://github.com/segmentio/analytics-android/pull/536): Look up Advertising ID for Amazon Fire devices.\r\n * [Fix](https://github.com/segmentio/analytics-android/pull/534): Attribution tracking using mobile service should be false by default.\r\n"
64+
- version: ''
65+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.2.5'
66+
date: '2017-05-26T16:13:11Z'
67+
notes: " * [Fix](https://github.com/segmentio/analytics-android/pull/487/commits/8649050b4b7b74be17fc7b7e4ec0add7362325fd): Using `Properties#putProducts` was stored as an array instead of a list, and not serialized correctly. This caused it to be unusable by Segment and server side integrations. If you're stuck on a previous version for some reason, you can manually store it as a list:\r\n\r\n ```java\r\n List<Product> products = new ArrayList<>();\r\n products.add(new Product(\"foo\", \"bar\", 10));\r\n // add other products to this list.\r\n\r\n Properties properties = new Properties();\r\n properties.put(\"products\", products);\r\n ```"
68+
- version: ''
69+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.2.6'
70+
date: '2017-05-26T16:13:00Z'
71+
notes: " * [Fix](https://github.com/segmentio/analytics-android/pull/495): Update Cartographer. This fixes an issue where sending custom values sent as arrays would not be serialized correctly.\r\n * [Fix](https://github.com/segmentio/analytics-android/pull/494): Make DateFormat access thread safe. This fixes an issue where generated timestamps could be sometimes be malformed and not conform to the ISO 8601 standard.\r\n"
72+
- version: ''
73+
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.3.0-RC1'
74+
date: '2017-05-26T16:12:27Z'
75+
notes: " * [New](https://github.com/segmentio/analytics-android/pull/515): Add Middlewares.\r\n * [Fix](https://github.com/segmentio/analytics-android/pull/524): Unregister Application lifecycle callbacks on shutdown.\r\n * [Fix](https://github.com/segmentio/analytics-android/pull/499): Record `ms` precision in timestamps.\r\n * [Fix](https://github.com/segmentio/analytics-android/pull/508): Support serialization of Primitive arrays.\r\n"

src/_data/changelogs/analytics-go.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# AUTOGENERATED FROM GITHUB API. DO NOT EDIT
2+
# Releases last updated 2021-05-07
3+
releases:
4+
- version: Fix vendor packages
5+
url: 'https://github.com/segmentio/analytics-go/releases/tag/v3.0.1'
6+
date: '2018-10-02T19:08:56Z'
7+
notes: >-
8+
analytics-go was failing to install correctly using vendored packages due to
9+
its use of git submodules. We've replaced the git submodules with proper
10+
Golang vendoring to fix this issue. In addition, we've updated some internal
11+
tooling for the library itself, namely our circle builds and adding a test
12+
CLI.
13+
- version: v3.0.0
14+
url: 'https://github.com/segmentio/analytics-go/releases/tag/v3.0.0'
15+
date: '2018-08-28T22:16:11Z'
16+
notes: "v3 is a rewrite of our v2 version of the Go Library. We recommend using v3 as it supports many new features, has significant design improvements and is better tested.\r\n\r\nDocumentation on migrating from v2 to v3 is available at https://segment.com/docs/sources/server/go/#migrating-from-v2.\r\n\r\nThis release is the same as https://github.com/segmentio/analytics-go/releases/tag/3.0.0, but has the `v` prefix to work with [Go modules](https://github.com/golang/go/wiki/Modules). See https://github.com/segmentio/analytics-go/issues/134."
17+
- version: 3.0.0
18+
url: 'https://github.com/segmentio/analytics-go/releases/tag/3.0.0'
19+
date: '2018-01-05T23:44:33Z'
20+
notes: "v3 is a rewrite of our v2 version of the Go Library. We recommend using v3 as it supports many new features, has significant design improvements and is better tested.\r\n\r\nDocumentation on migrating from v2 to v3 is available at https://segment.com/docs/sources/server/go/#migrating-from-v2."
21+
- version: ''
22+
url: 'https://github.com/segmentio/analytics-go/releases/tag/2.1.1'
23+
date: '2016-04-26T20:06:47Z'
24+
notes: |
25+
Version 2.1.1

0 commit comments

Comments
 (0)