Release 0.0.3 #72
No files matched your search
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'@directory/web': patch
|
||||
---
|
||||
|
||||
Replace sign-in with stateless authentication and fixed seven-day sessions without renewal. Existing sessions require signing in again. OIDC identities must supply an email.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'@directory/web': patch
|
||||
---
|
||||
|
||||
Upgrade the web app to SvelteKit 3, preserving runtime `site.url`, native sign-in, bookmark navigation and container workflows.
|
||||
@@ -1,5 +1,11 @@
|
||||
# @directory/cli
|
||||
|
||||
## 0.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Keep the CLI version aligned with Directory 0.0.3 and report it with `--version`.
|
||||
|
||||
## 0.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@directory/cli",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"bin": {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { ConfigError, loadConfigFile, validateConfig } from '@directory/config';
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import { runCli } from './cli.js';
|
||||
import packageJson from '../package.json' with { type: 'json' };
|
||||
|
||||
vi.mock('@directory/config', async (importOriginal) => ({
|
||||
...(await importOriginal<typeof import('@directory/config')>()),
|
||||
@@ -16,7 +17,16 @@ beforeEach(() => {
|
||||
vi.mocked(loadConfigFile).mockResolvedValue(validateConfig({ links: {} }));
|
||||
});
|
||||
|
||||
describe('directory-cli config validate', () => {
|
||||
describe('directory-cli', () => {
|
||||
it('reports the release version without loading configuration', async () => {
|
||||
const output = createOutput();
|
||||
|
||||
expect(await runCli(['--version'], output)).toBe(0);
|
||||
expect(output.stdout).toHaveBeenCalledExactlyOnceWith(`${packageJson.version}\n`);
|
||||
expect(output.stderr).not.toHaveBeenCalled();
|
||||
expect(loadConfigFile).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it.each([['--help'], ['config', 'validate', '--help']])(
|
||||
'shows help without loading configuration: %j',
|
||||
async (...args) => {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { ConfigError, configurationVersion, loadConfigFile } from '@directory/config';
|
||||
import { cli, define, type CommandContext } from 'gunshi';
|
||||
import packageJson from '../package.json' with { type: 'json' };
|
||||
|
||||
interface CliOutput {
|
||||
stdout: (text: string) => void;
|
||||
@@ -44,6 +45,7 @@ export async function runCli(args: readonly string[], output: CliOutput): Promis
|
||||
try {
|
||||
const result = await cli(forwarded, rootCommand, {
|
||||
name: 'directory-cli',
|
||||
version: packageJson.version,
|
||||
usageSilent: true,
|
||||
renderHeader: async () => header,
|
||||
renderValidationErrors: null,
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"types": ["node"]
|
||||
"types": ["node"],
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"include": ["src/**/*.ts"],
|
||||
"exclude": ["dist"]
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @directory/web
|
||||
|
||||
## 0.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- cdf532e: Replace sign-in with stateless authentication and fixed seven-day sessions without renewal. Existing sessions require signing in again. OIDC identities must supply an email.
|
||||
- 81962e4: Upgrade the web app to SvelteKit 3, preserving runtime `site.url`, native sign-in, bookmark navigation and container workflows.
|
||||
|
||||
## 0.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@directory/web",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"files": [
|
||||
|
||||
Reference in new issue
Block a user