Skip to content

Commit 63e4ed6

Browse files
authored
Merge pull request #566 from privy-open-source/release/0.14.1
release: `0.15.0`
2 parents 6dca7f0 + 94b69d8 commit 63e4ed6

File tree

14 files changed

+533
-42995
lines changed

14 files changed

+533
-42995
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@privyid/design-system",
3-
"version": "0.14.0",
3+
"version": "0.15.0",
44
"packageManager": "yarn@3.6.0",
55
"private": true,
66
"scripts": {
@@ -20,7 +20,7 @@
2020
"packages:prepare": "yarn workspaces foreach -v --topological-dev run prepare",
2121
"packages:build": "yarn workspaces foreach -v --topological-dev run build",
2222
"release": "yarn workspaces foreach -v --topological-dev --no-private npm publish --tolerate-republish",
23-
"release:prepare": "yarn workspaces foreach -v --topological-dev version minor --deferred",
23+
"release:prepare": "yarn workspaces foreach -v --topological-dev version",
2424
"icon:sync": "yarn workspace @privyid/persona-icon sync"
2525
},
2626
"devDependencies": {
@@ -45,8 +45,8 @@
4545
"@types/testing-library__jest-dom": "5.14.6",
4646
"@types/webfontloader": "1.6.35",
4747
"@types/zxcvbn": "^4",
48-
"@typescript-eslint/eslint-plugin": "5.59.7",
49-
"@typescript-eslint/parser": "5.59.7",
48+
"@typescript-eslint/eslint-plugin": "5.59.9",
49+
"@typescript-eslint/parser": "5.59.9",
5050
"@vitejs/plugin-vue": "4.2.3",
5151
"@vitest/browser": "^0.25.3",
5252
"@vitest/coverage-c8": "0.24.5",
@@ -73,7 +73,7 @@
7373
"postcss": "8.4.24",
7474
"postcss-nested": "6.0.1",
7575
"tailwindcss": "3.2.7",
76-
"typescript": "5.0.4",
76+
"typescript": "5.1.3",
7777
"ufo": "^1.0.1",
7878
"vitepress": "1.0.0-beta.1",
7979
"vitest": "0.24.5",
@@ -92,7 +92,7 @@
9292
"@zxing/library": "0.20.0",
9393
"chart.js": "4.3.0",
9494
"core-js": "3",
95-
"date-fns": "2.29.3",
95+
"date-fns": "2.30.0",
9696
"defu": "6.1.2",
9797
"fast-equals": "^4.0.3",
9898
"fuse.js": "6.6.2",

packages/browserslist-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@privyid/browserslist-config",
33
"description": "Browserslist shareable config for Persona project",
4-
"version": "0.14.0",
4+
"version": "0.15.0",
55
"packageManager": "yarn@3.6.0",
66
"license": "MIT",
77
"repository": {

packages/eslint-config-persona/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@privyid/eslint-config-persona",
33
"description": "Eslint shareable config for Persona project",
4-
"version": "0.14.0",
4+
"version": "0.15.0",
55
"packageManager": "yarn@3.6.0",
66
"license": "MIT",
77
"repository": {

packages/persona-icon/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
temp/
2+
/sync-lock.json

packages/persona-icon/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@privyid/persona-icon",
33
"description": "Persona icon package",
4-
"version": "0.14.0",
4+
"version": "0.15.0",
55
"packageManager": "yarn@3.6.0",
66
"type": "module",
77
"main": "./dist/module.cjs",
@@ -41,10 +41,11 @@
4141
"prepack": "yarn build",
4242
"build": "nuxt-module-build",
4343
"lint": "jiti scripts/lint.ts",
44-
"sync": "jiti scripts/sync.ts"
44+
"sync": "jiti scripts/sync.ts",
45+
"changelog": "jiti scripts/changelog.ts"
4546
},
4647
"devDependencies": {
47-
"@nuxt/module-builder": "^0.3.1",
48+
"@nuxt/module-builder": "^0.4.0",
4849
"@types/download": "^8",
4950
"@types/fs-extra": "^11",
5051
"@types/minimist": "^1",
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/* eslint-disable no-console */
2+
/* eslint-disable unicorn/no-await-expression-member */
3+
/* eslint-disable unicorn/prefer-top-level-await */
4+
/* eslint-disable unicorn/prefer-module */
5+
import { resolve } from 'node:path'
6+
import { readJSON } from 'fs-extra'
7+
import { name } from '../package.json'
8+
import { MetaData } from './types'
9+
import got from 'got'
10+
import ohash from 'ohash'
11+
import minimist from 'minimist'
12+
import {
13+
groupBy,
14+
sortBy,
15+
startCase,
16+
} from 'lodash'
17+
18+
const argv = minimist(process.argv.slice(2))
19+
const META_FILE = resolve(__dirname, '../svg/meta.json')
20+
21+
type CompareMeta = MetaData['files'][number]
22+
23+
function getFilesData (metadata: MetaData[]): Record<string, CompareMeta> {
24+
return Object.fromEntries(
25+
metadata.flatMap((item) => item.files)
26+
.map((item) => [item.name, item]),
27+
)
28+
}
29+
30+
async function getMeta (version: string): Promise<MetaData[]> {
31+
try {
32+
if (version === 'local')
33+
return await readJSON(META_FILE)
34+
35+
const response = await got(`https://unpkg.io/${name}@${version}/svg/meta.json`)
36+
37+
return JSON.parse(response.body)
38+
} catch {
39+
return []
40+
}
41+
}
42+
43+
async function main () {
44+
const sourceMeta = getFilesData(await getMeta(argv.from ?? 'latest'))
45+
const targetMeta = getFilesData(await getMeta(argv.to ?? 'local'))
46+
const diffs = ohash.diff(sourceMeta, targetMeta)
47+
const changelogs = groupBy(sortBy(diffs, ['type', 'key']), 'type')
48+
49+
if (Object.keys(changelogs).length > 0) {
50+
for (const [type, items] of Object.entries(changelogs)) {
51+
console.log(`\n### ${startCase(type)}\n`)
52+
53+
const logs = groupBy(items, (item) => item.key.split('/').at(0))
54+
55+
for (const [group, items] of Object.entries(logs)) {
56+
if (items.length === 4)
57+
console.log(`- ${group}`)
58+
else {
59+
for (const item of items)
60+
console.log(`- ${item.key.replace('.hash', '')}`)
61+
}
62+
}
63+
}
64+
} else
65+
console.log('Nothing Changed')
66+
}
67+
68+
void main()

0 commit comments

Comments
 (0)