Skip to content

Added Keep a Changelog #71

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

Merged
merged 2 commits into from
Jul 2, 2024
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
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Changelog

All notable changes to this project will be documented in this file.

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

## [3.8.1] - 2024-06-19

### React Native

#### Changed
- CHANGELOG now adheres to the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format.

## [3.8.0] - 2024-05-31

# freeRASP 3.8.0

- ⚡ Added new threat `systemVPN` for VPN detection
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "freerasp-react-native",
"version": "3.8.0",
"version": "3.8.1",
"description": "React Native plugin for improving app security and threat monitoring on Android and iOS mobile devices.",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
5 changes: 3 additions & 2 deletions scripts/extract_changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ const filePath = './CHANGELOG.md';
const fileContent = fs.readFileSync(filePath, 'utf-8');

const trimmedContent = fileContent
.replace(/\s*#\s*freeRASP.*/, '') // trim the latest version header
.replace(/\s*#\s*freeRASP([\s\S])*/, '') // trim everything after the latest changelog data
.replace(/([\s\S]*?)\s*(?=\s*##)/, '') // trim the # Changelog part
.replace(/\s*##\s*\[\d+\.\d+\.\d+\] - \d{4}-\d{2}-\d{2}.*/, '') // trim the latest version header
.replace(/\s*##\s*\[\d+\.\d+\.\d+\] - \d{4}-\d{2}-\d{2}([\s\S])*/, '') // trim everything after the latest changelog data
.trim(); // trim leading and trailing whitespaces

console.log(trimmedContent);
Loading