Skip to content

Commit 08eb883

Browse files
authored
🔀 Merge pull request #6 from chriskyfung:fix/dependabot-4-lodash-set
🔒 Fixes #4: Remove gas-mock-globals and refactor test structure
2 parents db5c7da + 2fcf0cc commit 08eb883

File tree

5 files changed

+11
-23
lines changed

5 files changed

+11
-23
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.2.1] - 2025-08-20
9+
10+
### Fixed
11+
- ➖ chore(deps): remove gas-mock-globals to resolve security vulnerability in `lodash.set`.
12+
13+
### Changed
14+
- 🚚 chore(testing): move test file from `src/` to `test/` directory for better project structure.
15+
816
## [0.2.0] - 2025-08-20
917

1018
### Added
@@ -43,4 +51,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4351

4452
### Documentation
4553
- 📄 docs: create code of conduct
46-
- 📝 docs: add author's website URL to `package.json`
54+
- 📝 docs: add author's website URL to `package.json`

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
module.exports = {
22
testEnvironment: 'node',
3-
setupFiles: ['gas-mock-globals'],
43
};

package-lock.json

Lines changed: 0 additions & 18 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gmail-regex-cleaner-apps-script",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"private": true,
55
"description": "A Google Apps Script that helps you delete Gmail messages older than n days that match your custom regex filters.",
66
"scripts": {
@@ -68,7 +68,6 @@
6868
"eslint-plugin-googleappsscript": "^1.0.5",
6969
"eslint-plugin-jest": "^29.0.1",
7070
"eslint-plugin-prettier": "^5.5.4",
71-
"gas-mock-globals": "^2.2.0",
7271
"globals": "^16.3.0",
7372
"jest": "^30.0.5",
7473
"prettier": "^3.6.2",

src/code.test.js renamed to test/code.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { subtractYears, checkOverdue, findMessages } = require('./code.js');
1+
const { subtractYears, checkOverdue, findMessages } = require('../src/code.js');
22

33
describe('Core Functions', () => {
44
describe('subtractYears', () => {

0 commit comments

Comments
 (0)