Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging 24.10.0 #106

Merged
merged 66 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
89f80d2
Max segmentation (#80)
turtledreams Apr 18, 2023
5b980a7
flex added (#86)
turtledreams Oct 2, 2023
7052ded
readme change for insecure link (#87)
turtledreams Oct 11, 2023
20b40c5
Update README.md (#88)
turtledreams Oct 30, 2023
deb8848
1 (#89)
turtledreams Jan 3, 2024
da7465c
[Node] Add warnings to all SDK example apps that would check if propp…
arifBurakDemiray Jan 29, 2024
9f72459
Update codeql-analysis.yml (#91)
arifBurakDemiray Mar 4, 2024
05c3c65
Added Storage Module
AliRKat Aug 12, 2024
863b1a3
Update countly-storage.js
AliRKat Aug 12, 2024
8cb8b57
Requested Changes
AliRKat Aug 14, 2024
1836f45
Moved Functionality in Storage
AliRKat Aug 14, 2024
5492956
Deep Scan
AliRKat Aug 14, 2024
4b81696
duplication clean up
AliRKat Aug 14, 2024
f57f741
Merge pull request #96 from Countly/Storage
turtledreams Aug 15, 2024
caa873c
Storage Tests
AliRKat Aug 19, 2024
f077032
added tests and undefined&null check
AliRKat Aug 19, 2024
6340418
url update, check update
AliRKat Aug 19, 2024
b5c8d10
Storage Tests
AliRKat Aug 20, 2024
8cf689c
Recording Different Values in Storage
AliRKat Aug 20, 2024
c205763
Merge pull request #97 from Countly/tests-and-refactoring
turtledreams Aug 22, 2024
6cc9a74
Refactoring Storage
AliRKat Aug 22, 2024
92306d3
Update countly-bulk.js
AliRKat Aug 22, 2024
cd6c767
Merge pull request #98 from Countly/RefactorStorage
turtledreams Aug 23, 2024
f605360
Bulk Tests
AliRKat Sep 3, 2024
160f4c7
Crash Test and Clear File Function
AliRKat Sep 4, 2024
1c2e05b
Updated HelperFunctions
AliRKat Sep 17, 2024
3695932
Memory Only Storage Option
AliRKat Sep 18, 2024
97a4ccc
Merge pull request #101 from Countly/BulkTests
turtledreams Sep 19, 2024
c572bf1
Update countly.js
AliRKat Sep 19, 2024
b4a96bf
storage method in bulk
AliRKat Sep 19, 2024
e2e3fcb
Merge branch 'staging' into MemoryOnlyStorage
AliRKat Sep 19, 2024
9b9643a
Update tests_storage.js
AliRKat Sep 19, 2024
ce59d66
Storing Methods Exported, Enums Added
AliRKat Sep 24, 2024
f370c78
Updating Config Section
AliRKat Oct 1, 2024
7837491
Updated Storage Tests
AliRKat Oct 1, 2024
ddf942b
Bug Fix Testing
AliRKat Oct 2, 2024
9cb8700
Update tests_internal_limits.js
AliRKat Oct 2, 2024
4dfbaa7
Changelog update
AliRKat Oct 2, 2024
caf69b5
Update CHANGELOG.md
AliRKat Oct 3, 2024
eb61043
Update CHANGELOG.md
AliRKat Oct 3, 2024
ae89395
Back to Unlink
AliRKat Oct 3, 2024
9f3f490
Merge pull request #102 from Countly/MemoryOnlyStorage
turtledreams Oct 3, 2024
c475d77
Custom Storage Option
AliRKat Oct 3, 2024
0e3ac4e
Check for Invalid Custom Methods
AliRKat Oct 3, 2024
131ea5c
Custom File Storage Test
AliRKat Oct 3, 2024
92b34be
Setting User Path In Custom Storage
AliRKat Oct 4, 2024
f4d1e6f
Update countly-bulk.js
AliRKat Oct 4, 2024
52827ce
Update tests_storage.js
AliRKat Oct 7, 2024
e9fcf8b
Refactoring Storage Tests
AliRKat Oct 7, 2024
021897a
Helper Functions Custom Path Update
AliRKat Oct 8, 2024
41dace5
Some changes
turtledreams Oct 11, 2024
a17b932
Test Update
AliRKat Oct 11, 2024
bdfffa7
Version Update
AliRKat Oct 11, 2024
d245d64
Merge pull request #105 from Countly/VersionUpdate
turtledreams Oct 11, 2024
50394dc
test refactor
turtledreams Oct 14, 2024
61554c0
Refactor Tests
AliRKat Oct 14, 2024
f8d3cbb
Updated Enum Export
AliRKat Oct 14, 2024
ade4be6
Refactoring Test Objects
AliRKat Oct 14, 2024
ac5c8f1
Refactoring Some More
AliRKat Oct 14, 2024
ac543ed
Update tests_bulk.js
AliRKat Oct 14, 2024
571006a
Some more bulk tests
AliRKat Oct 15, 2024
129c096
CNR Completed
AliRKat Oct 15, 2024
e3fa2ba
Added Comments in Bulk
AliRKat Oct 15, 2024
fdb8b62
refactor
AliRKat Oct 15, 2024
7c5c523
storage tests done
AliRKat Oct 16, 2024
c966016
Merge pull request #104 from Countly/CustomStorageOption
turtledreams Oct 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ master ]
branches: [ master, staging ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [ master, staging ]
schedule:
- cron: '30 5 * * 4'

Expand All @@ -39,11 +39,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

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

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
39 changes: 39 additions & 0 deletions .github/workflows/release_notice.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release Notice
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# To check the github context
- name: Dump Github context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
# This data can be any valid JSON from a previous step in the GitHub Action
payload: |
{
"repository": "${{ github.repository }}",
"tag_name": "${{ github.event.release.tag_name }}",
"actor": "${{ github.actor }}",
"body": ${{ toJSON(github.event.release.body) }},
"html_url": "${{ github.event.release.html_url }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE }}
- name: Send custom JSON data to Discord
uses: sarisia/[email protected]
with:
webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
nodetail: true
title: New ${{ github.repository }} version ${{ github.event.release.tag_name }} published by ${{ github.actor }}
description: |
Release URL: ${{ github.event.release.html_url }}
Click [here](https://github.com/Countly/countly-server/blob/master/CHANGELOG.md) to view the change log.
`${{ github.event.release.body }}`
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 24.10.0
- Default max segmentation value count changed from 30 to 100
- Mitigated an issue where SDK could create an unintended dump file
- Added a new init time config option (conf.storage_type) which can make user set the SDK storage option:
- File Storage
- Memory Only Storage
- Added a new init time config option (conf.custom_storage_method) which enables user to provide custom storage methods

## 22.06.0
- Fixed a bug where remote config requests were rejected
- Fixed a bug where empty storage object did cause some issues
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[![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)
[![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)
[![npm version](https://badge.fury.io/js/countly-sdk-nodejs.svg)](https://badge.fury.io/js/countly-sdk-nodejs)
[![Inline docs](https://inch-ci.org/github/Countly/countly-sdk-nodejs.svg?branch=master)](https://inch-ci.org/github/Countly/countly-sdk-nodejs)

# Countly NodeJS SDK

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).
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).
## What is Countly?
[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),
[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),
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.

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

* **Questions or feature requests?** [Join the Countly Community on Discord](https://discord.gg/countly)
* **Looking for the Countly Server?** [Countly Community Edition repository](https://github.com/Countly/countly-server)
* **Looking for the Countly Server?** [Countly Server repository](https://github.com/Countly/countly-server)
* **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)

## Integrating Countly SDK in your projects
Expand Down
11 changes: 9 additions & 2 deletions examples/apm_example.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
//since we need to test crashing the app
/*global app*/
const COUNTLY_SERVER_KEY = "https://your.server.ly";
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
console.warn("Please do not use default set of app key and server url")
}

var Countly = require("../lib/countly.js");

Countly.init({
app_key: "YOUR_APP_KEY",
url: "https://try.count.ly", //your server goes here
app_key: COUNTLY_APP_KEY,
url: COUNTLY_SERVER_KEY, //your server goes here
debug: true
});

Expand Down
11 changes: 9 additions & 2 deletions examples/bulk_import_example.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
const COUNTLY_SERVER_KEY = "https://your.server.ly";
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
console.warn("Please do not use default set of app key and server url")
}

var CountlyBulk = require("../lib/countly").Bulk;

var server = new CountlyBulk({
app_key: "YOUR_APP_KEY",
url: "https://try.count.ly", //your server goes here
app_key: COUNTLY_APP_KEY,
url: COUNTLY_SERVER_KEY, //your server goes here
debug: true
});

Expand Down
12 changes: 9 additions & 3 deletions examples/example.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
//since we need to test crashing the app
/*global runthis, crashDaApp*/
const COUNTLY_SERVER_KEY = "https://your.server.ly";
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
console.warn("Please do not use default set of app key and server url")
}

var Countly = require("../lib/countly.js");

Countly.init({
app_key: "YOUR_APP_KEY",
url: "https://try.count.ly", //your server goes here
app_key: COUNTLY_APP_KEY,
url: COUNTLY_SERVER_KEY, //your server goes here
debug: true
});


Countly.begin_session();

Countly.track_errors();
Expand Down
11 changes: 9 additions & 2 deletions examples/multi-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,18 @@ else if (cluster.isWorker) {
console.log("I am worker " + cluster.worker.id);
}

const COUNTLY_SERVER_KEY = "https://your.server.ly";
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){
console.warn("Please do not use default set of app key and server url")
}

var Countly = require("../lib/countly.js");

Countly.init({
app_key: "YOUR_APP_KEY",
url: "https://try.count.ly", //your server goes here
app_key: COUNTLY_APP_KEY,
url: COUNTLY_SERVER_KEY, //your server goes here
debug: true
});

Expand Down
2 changes: 1 addition & 1 deletion lib/countly-bulk-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function CountlyBulkUser(conf) {
var sessionStart = 0;
var maxKeyLength = 128;
var maxValueSize = 256;
var maxSegmentationValues = 30;
var maxSegmentationValues = 100;
var maxBreadcrumbCount = 100;
var maxStackTraceLinesPerThread = 30;
var maxStackTraceLineLength = 200;
Expand Down
Loading
Loading