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

Release ready 22.06.0 #245

Merged
merged 9 commits into from
Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
51 changes: 0 additions & 51 deletions .markdownlint.json

This file was deleted.

52 changes: 52 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"MD001": true,
"MD002": false,
"MD003": true,
"MD004": true,
"MD005": true,
"MD006": true,
"MD007": { "indent": 2 },
"MD009": false,
"MD010": false,
"MD011": true,
"MD012": { "maximum": 1 },
"MD013": { "line_length": 300 },
"MD014": false,
"MD018": true,
"MD019": true,
"MD020": true,
"MD021": true,
"MD022": false,
"MD023": true,
"MD024": true,
"MD025": true,
"MD026": true,
"MD027": true,
"MD028": true,
"MD029": true,
"MD030": true,
"MD031": true,
"MD032": false,
"MD033": false,
"MD034": false,
"MD035": true,
"MD036": true,
"MD037": true,
"MD038": true,
"MD039": true,
"MD040": true,
"MD041": false,
"MD042": true,
"MD043": false,
"MD044": true,
"MD045": true,
"MD046": true,
"MD047": true,
"MD048": true,
"MD049": true,
"MD050": true,
"MD051": true,
"MD052": true,
"MD053": true
}

52 changes: 52 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
MD001: true
MD002: false
MD003: true
MD004: true
MD005: true
MD006: true
MD007:
indent: 2
MD009: false
MD010: false
MD011: true
MD012:
maximum: 1
MD013:
line_length: 300
MD014: false
MD018: true
MD019: true
MD020: true
MD021: true
MD022: false
MD023: true
MD024: true
MD025: true
MD026: true
MD027: true
MD028: true
MD029: true
MD030: true
MD031: true
MD032: false
MD033: false
MD034: false
MD035: true
MD036: true
MD037: true
MD038: true
MD039: true
MD040: true
MD041: false
MD042: true
MD043: false
MD044: true
MD045: true
MD046: true
MD047: true
MD048: true
MD049: true
MD050: true
MD051: true
MD052: true
MD053: true
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 22.06.0
- Updated BoomerangJS to the latest version (1.737.0)
- Implemented static code analysis recommendations from Codacy, Snyk and Deep Scan

## 22.02.4
- Fixed logs that did not obey to the 'debug' flag

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ or
### 3. Use a CDN (content delivery network)
Countly web SDK is available on CDNJS. Use either

[https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/22.02.4/countly.min.js](https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/22.02.4/countly.min.js)
[https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/22.06.0/countly.min.js](https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/22.06.0/countly.min.js)

or

Expand Down
18 changes: 9 additions & 9 deletions examples/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo
In the project directory, you can run:

### `npm start`
Runs the app in the development mode.<br />
Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
The page will reload if you make edits.
You will also see any lint errors in the console.

### `npm test`
Launches the test runner in the interactive watch mode.<br />
Launches the test runner in the interactive watch mode.
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`
Builds the app for production to the `build` folder.<br />
Builds the app for production to the `build` folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### Integrating Countly
This project explains how to integrate Countly web sdk using hooks and class based components. <br />
You can try both methods by simply changing the root `App` component export from `index.js`.<br />
This project explains how to integrate Countly web sdk using hooks and class based components.
You can try both methods by simply changing the root `App` component export from `index.js`.

`App-WithEffect.js` uses hooks to integrate the countly SDK<br />
`App-WithRouter.js` uses class based components to integrate the countly SDK<br />
`App-WithEffect.js` uses hooks to integrate the countly SDK
`App-WithRouter.js` uses class based components to integrate the countly SDK
1 change: 0 additions & 1 deletion examples/react/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

2 changes: 1 addition & 1 deletion examples/react/src/serviceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function registerValidSW(swUrl, config) {
function checkValidServiceWorker(swUrl, config) {
// Check if the service worker can be found. If it can't reload the page.
fetch(swUrl, {
headers: { 'Service-Worker': 'script' },
headers: { 'Service-Worker': 'script' }
})
.then(response => {
// Ensure service worker exists, and that we really are getting a JS file.
Expand Down
2 changes: 1 addition & 1 deletion examples/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ a {
color: #0d172a;
cursor: pointer;
display: inline-block;
font-family: "Basier circle", -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-family: "Basier circle", "Noto Color Emoji";
font-size: 10px;
font-weight: 600;
line-height: 1;
Expand Down
2 changes: 1 addition & 1 deletion examples/symbolication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on their original source files.

To build the main javascript file (which also produces a sourcemap file), run:

```
```bash
npm run build
```

Expand Down
2 changes: 1 addition & 1 deletion examples/symbolication/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {

optimization: {
minimize: true,
minimizer: [new TerserPlugin()],
minimizer: [new TerserPlugin()]
},

output: {
Expand Down
4 changes: 2 additions & 2 deletions generateDocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mkdir code_docs
cd code_docs

# Get the current gh-pages branch
git clone -b gh-pages http://github.com/$GITHUB_REPOSITORY repo
git clone -b gh-pages "http://github.com/$GITHUB_REPOSITORY" repo
cd repo

##### Configure git.
Expand All @@ -47,7 +47,7 @@ echo "" > .nojekyll
################################################################################
##### Generate JSDOC documents. #####
echo 'Generating JSDoc code documentation...'
$DIR/node_modules/.bin/jsdoc $DIR/lib/countly.js $DIR/README.md -c $DIR/jsdoc_conf.json -d $DIR/code_docs/repo ;
"$DIR/node_modules/.bin/jsdoc" "$DIR/lib/countly.js" "$DIR/README.md" -c "$DIR/jsdoc_conf.json" -d "$DIR/code_docs/repo" ;
#TODO: erased plugins from here but might be back
################################################################################
##### Upload the documentation to the gh-pages branch of the repository. #####
Expand Down
2 changes: 1 addition & 1 deletion lib/countly.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
*/
Countly.onload = Countly.onload || [];

var SDK_VERSION = "22.02.4";
var SDK_VERSION = "22.06.0";
var SDK_NAME = "javascript_native_web";

var urlParseRE = /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/;
Expand Down
Loading