Skip to content

Commit a25b91d

Browse files
authored
Merge pull request #106 from Countly/staging
Staging 24.10.0
2 parents fcd9934 + c966016 commit a25b91d

27 files changed

Lines changed: 1665 additions & 543 deletions

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [ master, staging ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
19+
branches: [ master, staging ]
2020
schedule:
2121
- cron: '30 5 * * 4'
2222

@@ -39,11 +39,11 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
46+
uses: github/codeql-action/init@v3
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
57+
uses: github/codeql-action/autobuild@v3
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
71+
uses: github/codeql-action/analyze@v3
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release Notice
2+
on:
3+
release:
4+
types: [published]
5+
workflow_dispatch:
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
# To check the github context
11+
- name: Dump Github context
12+
env:
13+
GITHUB_CONTEXT: ${{ toJSON(github) }}
14+
run: echo "$GITHUB_CONTEXT"
15+
- name: Send custom JSON data to Slack workflow
16+
id: slack
17+
uses: slackapi/slack-github-action@v1.23.0
18+
with:
19+
# This data can be any valid JSON from a previous step in the GitHub Action
20+
payload: |
21+
{
22+
"repository": "${{ github.repository }}",
23+
"tag_name": "${{ github.event.release.tag_name }}",
24+
"actor": "${{ github.actor }}",
25+
"body": ${{ toJSON(github.event.release.body) }},
26+
"html_url": "${{ github.event.release.html_url }}"
27+
}
28+
env:
29+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE }}
30+
- name: Send custom JSON data to Discord
31+
uses: sarisia/actions-status-discord@v1.13.0
32+
with:
33+
webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
34+
nodetail: true
35+
title: New ${{ github.repository }} version ${{ github.event.release.tag_name }} published by ${{ github.actor }}
36+
description: |
37+
Release URL: ${{ github.event.release.html_url }}
38+
Click [here](https://github.com/Countly/countly-server/blob/master/CHANGELOG.md) to view the change log.
39+
`${{ github.event.release.body }}`

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 24.10.0
2+
- Default max segmentation value count changed from 30 to 100
3+
- Mitigated an issue where SDK could create an unintended dump file
4+
- Added a new init time config option (conf.storage_type) which can make user set the SDK storage option:
5+
- File Storage
6+
- Memory Only Storage
7+
- Added a new init time config option (conf.custom_storage_method) which enables user to provide custom storage methods
8+
19
## 22.06.0
210
- Fixed a bug where remote config requests were rejected
311
- Fixed a bug where empty storage object did cause some issues

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/ed5f07ef6f8b4503ac01b2dab190de01)](https://www.codacy.com/gh/Countly/countly-sdk-nodejs/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Countly/countly-sdk-nodejs&utm_campaign=Badge_Grade)
1+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/ed5f07ef6f8b4503ac01b2dab190de01)](https://app.codacy.com/gh/Countly/countly-sdk-nodejs/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
22
[![npm version](https://badge.fury.io/js/countly-sdk-nodejs.svg)](https://badge.fury.io/js/countly-sdk-nodejs)
33
[![Inline docs](https://inch-ci.org/github/Countly/countly-sdk-nodejs.svg?branch=master)](https://inch-ci.org/github/Countly/countly-sdk-nodejs)
44

55
# Countly NodeJS SDK
66

7-
This repository contains the Countly NodeJS SDK, which can be integrated into NodeJS running device or server. The Countly NodeJS SDK is intended to be used with [Countly Community Edition](https://github.com/Countly/countly-server) or [Countly Enterprise Edition](https://count.ly/product).
7+
This repository contains the Countly NodeJS SDK, which can be integrated into NodeJS running device or server. The Countly NodeJS SDK is intended to be used with [Countly Lite](https://countly.com/lite), [Countly Flex](https://countly.com/flex) or [Countly Enterprise](https://countly.com/enterprise).
88
## What is Countly?
9-
[Countly](https://count.ly) is a product analytics solution and innovation enabler that helps teams track product performance and customer journey and behavior across [mobile](https://count.ly/mobile-analytics), [web](http://count.ly/web-analytics),
9+
[Countly](https://count.ly) is a product analytics solution and innovation enabler that helps teams track product performance and customer journey and behavior across [mobile](https://count.ly/mobile-analytics), [web](https://count.ly/web-analytics),
1010
and [desktop](https://count.ly/desktop-analytics) applications. [Ensuring privacy by design](https://count.ly/privacy-by-design), Countly allows you to innovate and enhance your products to provide personalized and customized customer experiences, and meet key business and revenue goals.
1111

1212
Track, measure, and take action - all without leaving Countly.
1313

1414
* **Questions or feature requests?** [Join the Countly Community on Discord](https://discord.gg/countly)
15-
* **Looking for the Countly Server?** [Countly Community Edition repository](https://github.com/Countly/countly-server)
15+
* **Looking for the Countly Server?** [Countly Server repository](https://github.com/Countly/countly-server)
1616
* **Looking for other Countly SDKs?** [An overview of all Countly SDKs for mobile, web and desktop](https://support.count.ly/hc/en-us/articles/360037236571-Downloading-and-Installing-SDKs#officially-supported-sdks)
1717

1818
## Integrating Countly SDK in your projects

examples/apm_example.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
//since we need to test crashing the app
22
/*global app*/
3+
const COUNTLY_SERVER_KEY = "https://your.server.ly";
4+
const COUNTLY_APP_KEY = "YOUR_APP_KEY";
5+
6+
if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
7+
console.warn("Please do not use default set of app key and server url")
8+
}
9+
310
var Countly = require("../lib/countly.js");
411

512
Countly.init({
6-
app_key: "YOUR_APP_KEY",
7-
url: "https://try.count.ly", //your server goes here
13+
app_key: COUNTLY_APP_KEY,
14+
url: COUNTLY_SERVER_KEY, //your server goes here
815
debug: true
916
});
1017

examples/bulk_import_example.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
const COUNTLY_SERVER_KEY = "https://your.server.ly";
2+
const COUNTLY_APP_KEY = "YOUR_APP_KEY";
3+
4+
if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
5+
console.warn("Please do not use default set of app key and server url")
6+
}
7+
18
var CountlyBulk = require("../lib/countly").Bulk;
29

310
var server = new CountlyBulk({
4-
app_key: "YOUR_APP_KEY",
5-
url: "https://try.count.ly", //your server goes here
11+
app_key: COUNTLY_APP_KEY,
12+
url: COUNTLY_SERVER_KEY, //your server goes here
613
debug: true
714
});
815

examples/example.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
//since we need to test crashing the app
22
/*global runthis, crashDaApp*/
3+
const COUNTLY_SERVER_KEY = "https://your.server.ly";
4+
const COUNTLY_APP_KEY = "YOUR_APP_KEY";
5+
6+
if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
7+
console.warn("Please do not use default set of app key and server url")
8+
}
9+
310
var Countly = require("../lib/countly.js");
411

512
Countly.init({
6-
app_key: "YOUR_APP_KEY",
7-
url: "https://try.count.ly", //your server goes here
13+
app_key: COUNTLY_APP_KEY,
14+
url: COUNTLY_SERVER_KEY, //your server goes here
815
debug: true
916
});
1017

11-
1218
Countly.begin_session();
1319

1420
Countly.track_errors();

examples/multi-process.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,18 @@ else if (cluster.isWorker) {
1313
console.log("I am worker " + cluster.worker.id);
1414
}
1515

16+
const COUNTLY_SERVER_KEY = "https://your.server.ly";
17+
const COUNTLY_APP_KEY = "YOUR_APP_KEY";
18+
19+
if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
20+
console.warn("Please do not use default set of app key and server url")
21+
}
22+
1623
var Countly = require("../lib/countly.js");
1724

1825
Countly.init({
19-
app_key: "YOUR_APP_KEY",
20-
url: "https://try.count.ly", //your server goes here
26+
app_key: COUNTLY_APP_KEY,
27+
url: COUNTLY_SERVER_KEY, //your server goes here
2128
debug: true
2229
});
2330

lib/countly-bulk-user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function CountlyBulkUser(conf) {
4949
var sessionStart = 0;
5050
var maxKeyLength = 128;
5151
var maxValueSize = 256;
52-
var maxSegmentationValues = 30;
52+
var maxSegmentationValues = 100;
5353
var maxBreadcrumbCount = 100;
5454
var maxStackTraceLinesPerThread = 30;
5555
var maxStackTraceLineLength = 200;

0 commit comments

Comments
 (0)