@anephenix/ui
Advanced tools
Comparing version 0.1.2 to 0.1.3
# CHANGELOG | ||
### 0.1.3 - Saturday 11th January, 2025 | ||
- Updated the eslint config | ||
- Merge pull request #46 from anephenix/dependabot/npm_and_yarn/eslint-9.18.0 | ||
- Merge pull request #44 from anephenix/dependabot/npm_and_yarn/next-15.1.4 | ||
- Bump next from 14.2.15 to 15.1.4 | ||
- Merge pull request #42 from anephenix/dependabot/npm_and_yarn/babel/eslint-parser-7.26.5 | ||
- Merge pull request #43 from anephenix/dependabot/npm_and_yarn/babel/preset-env-7.26.0 | ||
- Bump eslint from 8.57.0 to 9.18.0 | ||
- Merge pull request #45 from anephenix/dependabot/npm_and_yarn/esbuild-0.24.2 | ||
- Bump esbuild from 0.21.1 to 0.24.2 | ||
- Bump @babel/preset-env from 7.24.5 to 7.26.0 | ||
- Bump @babel/eslint-parser from 7.24.5 to 7.26.5 | ||
- Merge pull request #40 from anephenix/dependabot/npm_and_yarn/eslint-plugin-jest-28.10.0 | ||
- Merge pull request #39 from anephenix/dependabot/npm_and_yarn/prettier-3.4.2 | ||
- Merge pull request #38 from anephenix/dependabot/npm_and_yarn/eslint-plugin-react-7.37.3 | ||
- Merge pull request #37 from anephenix/dependabot/npm_and_yarn/jsdoc-4.0.4 | ||
- Merge pull request #36 from anephenix/dependabot/npm_and_yarn/anephenix/rcg-0.0.12 | ||
- Bump eslint-plugin-jest from 28.5.0 to 28.10.0 | ||
- Bump prettier from 3.2.5 to 3.4.2 | ||
- Bump eslint-plugin-react from 7.34.1 to 7.37.3 | ||
- Bump jsdoc from 4.0.3 to 4.0.4 | ||
- Bump @anephenix/rcg from 0.0.11 to 0.0.12 | ||
- Create dependabot.yml | ||
### 0.1.2 - Thursday 9th January, 2025 | ||
@@ -4,0 +29,0 @@ |
{ | ||
"name": "@anephenix/ui", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A collection of UI components for React web applications", | ||
@@ -11,3 +11,3 @@ "main": "dist/", | ||
"dev": "next", | ||
"lint": "npx eslint *.cjs *.jsx **/*.jsx", | ||
"lint": "npx eslint .", | ||
"start": "next start", | ||
@@ -34,3 +34,3 @@ "prepare-patch-release": "npm run build-lib && git add dist && npm run update-changelog && git add CHANGELOG.md && git commit -m \"Updated changelog\" && npm version patch", | ||
"devDependencies": { | ||
"@anephenix/rcg": "0.0.11", | ||
"@anephenix/rcg": "0.0.12", | ||
"@babel/eslint-parser": "^7.24.5", | ||
@@ -40,14 +40,17 @@ "@babel/plugin-proposal-optional-chaining": "^7.21.0", | ||
"@babel/preset-react": "^7.24.1", | ||
"@eslint/eslintrc": "^3.2.0", | ||
"@eslint/js": "^9.18.0", | ||
"babel-eslint": "^10.1.0", | ||
"babel-jest": "^29.7.0", | ||
"coveralls": "^3.1.1", | ||
"esbuild": "^0.21.1", | ||
"esbuild": "^0.24.2", | ||
"esbuild-plugin-sass": "^1.0.1", | ||
"eslint": "^8.51.0", | ||
"eslint": "^9.18.0", | ||
"eslint-plugin-jest": "^28.5.0", | ||
"eslint-plugin-react": "^7.34.1", | ||
"globals": "^15.14.0", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^29.7.0", | ||
"jsdoc": "^4.0.3", | ||
"next": "14.2.15", | ||
"next": "15.1.4", | ||
"pre-commit": "^1.2.2", | ||
@@ -54,0 +57,0 @@ "prettier": "^3.2.5", |
@@ -1,6 +0,6 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var child_process_1 = require("child_process"); | ||
var fs_1 = require("fs"); | ||
var path_1 = require("path"); | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var child_process_1 = require('child_process'); | ||
var fs_1 = require('fs'); | ||
var path_1 = require('path'); | ||
// Paths | ||
@@ -14,57 +14,57 @@ var packageJsonPath = (0, path_1.join)(__dirname, '../package.json'); | ||
var _a = currentVersion.split('.').map(Number), major = _a[0], minor = _a[1], patch = _a[2]; | ||
var nextVersion = "".concat(major, ".").concat(minor, ".").concat(patch + 1); | ||
var nextVersion = ''.concat(major, '.').concat(minor, '.').concat(patch + 1); | ||
// Get previous version from git tags | ||
var previousVersion = (0, child_process_1.execSync)('git describe --tags --abbrev=0 HEAD^') | ||
.toString() | ||
.trim(); | ||
.toString() | ||
.trim(); | ||
// Get commit messages between previous version and current version | ||
var commitMessages = (0, child_process_1.execSync)("git log ".concat(previousVersion, "..HEAD --pretty=format:\"- %s\"")) | ||
.toString() | ||
.trim(); | ||
var commitMessages = (0, child_process_1.execSync)('git log '.concat(previousVersion, '..HEAD --pretty=format:"- %s"')) | ||
.toString() | ||
.trim(); | ||
// Get current date | ||
function getOrdinalSuffix(day) { | ||
if (day > 3 && day < 21) | ||
return 'th'; // Covers 11th to 19th | ||
switch (day % 10) { | ||
case 1: | ||
return 'st'; | ||
case 2: | ||
return 'nd'; | ||
case 3: | ||
return 'rd'; | ||
default: | ||
return 'th'; | ||
} | ||
if (day > 3 && day < 21) | ||
return 'th'; // Covers 11th to 19th | ||
switch (day % 10) { | ||
case 1: | ||
return 'st'; | ||
case 2: | ||
return 'nd'; | ||
case 3: | ||
return 'rd'; | ||
default: | ||
return 'th'; | ||
} | ||
} | ||
function formatDateToString() { | ||
var days = [ | ||
'Sunday', | ||
'Monday', | ||
'Tuesday', | ||
'Wednesday', | ||
'Thursday', | ||
'Friday', | ||
'Saturday', | ||
]; | ||
var months = [ | ||
'January', | ||
'February', | ||
'March', | ||
'April', | ||
'May', | ||
'June', | ||
'July', | ||
'August', | ||
'September', | ||
'October', | ||
'November', | ||
'December', | ||
]; | ||
var today = new Date(); | ||
var dayName = days[today.getDay()]; | ||
var day = today.getDate(); | ||
var monthName = months[today.getMonth()]; | ||
var year = today.getFullYear(); | ||
var ordinalSuffix = getOrdinalSuffix(day); | ||
return "".concat(dayName, " ").concat(day).concat(ordinalSuffix, " ").concat(monthName, ", ").concat(year); | ||
var days = [ | ||
'Sunday', | ||
'Monday', | ||
'Tuesday', | ||
'Wednesday', | ||
'Thursday', | ||
'Friday', | ||
'Saturday', | ||
]; | ||
var months = [ | ||
'January', | ||
'February', | ||
'March', | ||
'April', | ||
'May', | ||
'June', | ||
'July', | ||
'August', | ||
'September', | ||
'October', | ||
'November', | ||
'December', | ||
]; | ||
var today = new Date(); | ||
var dayName = days[today.getDay()]; | ||
var day = today.getDate(); | ||
var monthName = months[today.getMonth()]; | ||
var year = today.getFullYear(); | ||
var ordinalSuffix = getOrdinalSuffix(day); | ||
return ''.concat(dayName, ' ').concat(day).concat(ordinalSuffix, ' ').concat(monthName, ', ').concat(year); | ||
} | ||
@@ -75,3 +75,3 @@ var currentDate = formatDateToString(); | ||
// Create new changelog entry | ||
var newChangelogEntry = "### ".concat(nextVersion, " - ").concat(currentDate, "\n\n").concat(commitMessages, "\n"); | ||
var newChangelogEntry = '### '.concat(nextVersion, ' - ').concat(currentDate, '\n\n').concat(commitMessages, '\n'); | ||
// Insert new changelog entry at the top | ||
@@ -78,0 +78,0 @@ // const updatedChangelogContent = newChangelogEntry + changelogContent; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1692987
39658
24