Skip to content

Commit

Permalink
update to version and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
skurdindev committed Jul 20, 2024
1 parent 47e6b61 commit 64ea08e
Show file tree
Hide file tree
Showing 7 changed files with 185 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"updateInternalDependencies": "patch"
}
5 changes: 0 additions & 5 deletions .changeset/polite-pants-watch.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# pastebar-app

## 0.5.0

### Minor Changes

- Free and Open Source Release

## 0.3.0

### Minor Changes
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pastebar-app",
"version": "0.3.0",
"version": "0.5.0",
"private": true,
"scripts": {
"dev": "tauri dev",
Expand All @@ -17,7 +17,8 @@
"taze:minor": "taze minor -w",
"preview": "vite preview",
"changeset": "changeset",
"version": "changeset version"
"version:sync": "node scripts/sync-version.js",
"version": "changeset version && npm run version:sync"
},
"dependencies": {
"@codastic/react-positioning-portal": "^0.7.0",
Expand Down Expand Up @@ -142,7 +143,7 @@
"zustand-logger-middleware": "^1.0.9"
},
"workspaces": [
"packages/*"
"packages/pastebar-app-ui"
],
"devDependencies": {
"@changesets/cli": "^2.27.1",
Expand Down Expand Up @@ -183,4 +184,4 @@
"vite": "^5.0.11",
"vite-plugin-tauri": "^3.3.0"
}
}
}
131 changes: 131 additions & 0 deletions packages/pastebar-app-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# pastebar-app

## 0.5.0

### Minor Changes

- Free and Open Source Release

## 0.3.0

### Minor Changes

- New: Integrated Audio Player with playlist support for both local and remote MP3 files.
New: Clipboard history now accessible in a separate window from the main interface.
New: Automatically generate card links in clipboard history.
New: Auto preview for X.com (Twitter) links in clips.
New: Auto preview for Instagram links in clips.
New: Auto preview for YouTube links in clipboard history and clips.
Fixed: Issue with clearing clipboard history, now includes option to delete recent items.

## 0.2.5

### Patch Changes

- Added Application Submission Error Report Page

## 0.2.4

### Patch Changes

- Added Application Submission Error Report Page

## 0.2.3

### Patch Changes

- New Version Release Notes Markdown View

## 0.2.2

### Patch Changes

- React compiler added to build frontend ui

## 0.2.1

### Patch Changes

- Contact Form and Pro Support Form added

## 0.2.0

### Minor Changes

- Added Application Guided Tours

### Patch Changes

- Window size auto update in min size detection
- Move to position added to context menu for clips and boards
- Updated hardware uuid detection for Mac and Windows

## 0.0.22

### Patch Changes

- Larger view for board with expand/collapse functionality

## 0.0.21

### Patch Changes

- Code viewer for markdown added render HTML view

## 0.0.20

### Patch Changes

- Save clip saves clip name if edit active

## 0.0.19

### Patch Changes

- Added user preferences for clip notes hover delay
- Edit clip name direct context menu
- Auto check for system permissions in accessibility preferences on Mac OSX

## 0.0.18

### Patch Changes

- Code viewer for markdown added render HTML view
- Clip notes popup maximum dimensions user preferences

## 0.0.15

### Patch Changes

- Added user preferences for clip notes hover delay

## 0.0.14

### Patch Changes

- Prioritized languages list settings
- History and Menu panel size adaptive change

## 0.0.13

### Patch Changes

- Prioritized languages list settings

## 0.0.12

### Patch Changes

- History and Menu panel size adaptive change

## 0.0.8

### Patch Changes

- Update to Dark Theme for Global Search

## 0.0.5

### Patch Changes

- Added Lock Screen and Security Settings for Applcation
8 changes: 3 additions & 5 deletions packages/pastebar-app-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pastebar/ui",
"version": "0.3.1",
"name": "pastebar-app-ui",
"version": "0.5.0",
"private": true,
"scripts": {
"dev": "vite",
Expand All @@ -11,9 +11,7 @@
"taze": "taze major -I",
"taze:minor": "taze minor -w",
"preview": "vite preview",
"audit:prod": "npm audit --omit=dev",
"changeset": "changeset",
"version": "changeset version"
"audit:prod": "npm audit --omit=dev"
},
"dependencies": {
"@codastic/react-positioning-portal": "^0.7.0",
Expand Down
39 changes: 39 additions & 0 deletions scripts/sync-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const fs = require('fs')
const path = require('path')

// Read the submodule's package.json
const submodulePath = path.join(
__dirname,
'..',
'packages',
'pastebar-app-ui',
'package.json'
)
const submodulePackage = JSON.parse(fs.readFileSync(submodulePath, 'utf8'))

// Read the root package.json
const rootPath = path.join(__dirname, '..', 'package.json')
const rootPackage = JSON.parse(fs.readFileSync(rootPath, 'utf8'))

// Update the version in the root package.json
rootPackage.version = submodulePackage.version

// Write the updated root package.json
fs.writeFileSync(rootPath, JSON.stringify(rootPackage, null, 2))

// Sync CHANGELOG.md if it exists
const submoduleChangelogPath = path.join(
__dirname,
'..',
'packages',
'pastebar-app-ui',
'CHANGELOG.md'
)
const rootChangelogPath = path.join(__dirname, '..', 'CHANGELOG.md')

if (fs.existsSync(submoduleChangelogPath)) {
fs.copyFileSync(submoduleChangelogPath, rootChangelogPath)
console.log('CHANGELOG.md synced')
}

console.log(`Version synced to ${submodulePackage.version}`)

0 comments on commit 64ea08e

Please sign in to comment.