Release OpenScript 1.0.2

This commit is contained in:
2026-09-11 14:56:19 -07:00
parent fc941ad9d2
commit cdaba68a59
7 changed files with 25 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
"manifest_version": 3,
"minimum_chrome_version": "138",
"name": "OpenScript",
"version": "1.0.1",
"version": "1.0.2",
"description": "A lightweight user script manager for modern browsers",
"action": {
"default_popup": "src/popup.html",

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "openscript",
"version": "1.0.1",
"version": "1.0.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "openscript",
"version": "1.0.1",
"version": "1.0.2",
"dependencies": {
"lucide": "^0.475.0"
},

View File

@@ -1,6 +1,6 @@
{
"name": "openscript",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"type": "module",
"scripts": {

View File

@@ -4,6 +4,7 @@ import {
import { parseMeta, getBoilerplate } from './utils/parser.js';
import { isUserScriptsAvailable } from './utils/userScripts.js';
import { renderIcons, icon } from './utils/icons.js';
import { VERSION } from './version.js';
// Application State
const state = {
@@ -137,7 +138,7 @@ const renderHeader = () => `
<img src="/icons/icon-16.png" class="w-4 h-4 rounded-sm" />
<span class="font-bold text-sm tracking-tight text-slate-900 flex items-center gap-1.5">
OpenScript
<span class="text-[10px] font-mono px-1 py-0.2 rounded bg-slate-100 text-sky-700 border border-slate-200">1.0</span>
<span class="text-[10px] font-mono px-1 py-0.2 rounded bg-slate-100 text-sky-700 border border-slate-200">${VERSION}</span>
</span>
</div>
<nav class="flex items-center gap-1.5 text-xs font-medium">

View File

@@ -1,5 +1,6 @@
import { getScripts, saveScripts, getSecrets } from './storage.js';
import { normalizeMatch, parseMeta } from './parser.js';
import { VERSION } from '../version.js';
const STORAGE_MESSAGE = 'OPEN_SCRIPT_STORAGE';
@@ -33,7 +34,7 @@ ${code}
delete: key => call('delete', key).then(() => undefined),
list: () => call('list').then(result => result.keys),
});
const OpenScript = Object.freeze({ version: '1.0.0', env, storage });
const OpenScript = Object.freeze({ version: '${VERSION}', env, storage });
globalThis.OpenScript = OpenScript;
globalThis.env = env;
return [OpenScript, env];

1
src/version.js Normal file
View File

@@ -0,0 +1 @@
export const VERSION = '1.0.2';

16
tests/version.test.js Normal file
View File

@@ -0,0 +1,16 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import { VERSION } from '../src/version.js';
const read = file => readFile(new URL(`../${file}`, import.meta.url), 'utf8').then(JSON.parse);
test('release versions stay synchronized', async () => {
const [manifest, pkg, lock] = await Promise.all(
['manifest.json', 'package.json', 'package-lock.json'].map(read)
);
assert.equal(VERSION, manifest.version);
assert.equal(VERSION, pkg.version);
assert.equal(VERSION, lock.version);
assert.equal(VERSION, lock.packages[''].version);
});