Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ These GitHub repositories provide supplementary resources for Rush Stack:
| [/heft-plugins/heft-webpack4-plugin](./heft-plugins/heft-webpack4-plugin/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Fheft-webpack4-plugin.svg)](https://badge.fury.io/js/%40rushstack%2Fheft-webpack4-plugin) | [changelog](./heft-plugins/heft-webpack4-plugin/CHANGELOG.md) | [@rushstack/heft-webpack4-plugin](https://www.npmjs.com/package/@rushstack/heft-webpack4-plugin) |
| [/heft-plugins/heft-webpack5-plugin](./heft-plugins/heft-webpack5-plugin/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Fheft-webpack5-plugin.svg)](https://badge.fury.io/js/%40rushstack%2Fheft-webpack5-plugin) | [changelog](./heft-plugins/heft-webpack5-plugin/CHANGELOG.md) | [@rushstack/heft-webpack5-plugin](https://www.npmjs.com/package/@rushstack/heft-webpack5-plugin) |
| [/libraries/api-extractor-model](./libraries/api-extractor-model/) | [![npm version](https://badge.fury.io/js/%40microsoft%2Fapi-extractor-model.svg)](https://badge.fury.io/js/%40microsoft%2Fapi-extractor-model) | [changelog](./libraries/api-extractor-model/CHANGELOG.md) | [@microsoft/api-extractor-model](https://www.npmjs.com/package/@microsoft/api-extractor-model) |
| [/libraries/credential-cache](./libraries/credential-cache/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Fcredential-cache.svg)](https://badge.fury.io/js/%40rushstack%2Fcredential-cache) | [changelog](./libraries/credential-cache/CHANGELOG.md) | [@rushstack/credential-cache](https://www.npmjs.com/package/@rushstack/credential-cache) |
| [/libraries/debug-certificate-manager](./libraries/debug-certificate-manager/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Fdebug-certificate-manager.svg)](https://badge.fury.io/js/%40rushstack%2Fdebug-certificate-manager) | [changelog](./libraries/debug-certificate-manager/CHANGELOG.md) | [@rushstack/debug-certificate-manager](https://www.npmjs.com/package/@rushstack/debug-certificate-manager) |
| [/libraries/heft-config-file](./libraries/heft-config-file/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Fheft-config-file.svg)](https://badge.fury.io/js/%40rushstack%2Fheft-config-file) | [changelog](./libraries/heft-config-file/CHANGELOG.md) | [@rushstack/heft-config-file](https://www.npmjs.com/package/@rushstack/heft-config-file) |
| [/libraries/load-themed-styles](./libraries/load-themed-styles/) | [![npm version](https://badge.fury.io/js/%40microsoft%2Fload-themed-styles.svg)](https://badge.fury.io/js/%40microsoft%2Fload-themed-styles) | [changelog](./libraries/load-themed-styles/CHANGELOG.md) | [@microsoft/load-themed-styles](https://www.npmjs.com/package/@microsoft/load-themed-styles) |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "Extract CredentialCache API out into \"@rushstack/credential-cache\". Reference directly in plugins to avoid pulling in all of \"@rushstack/rush-sdk\" unless necessary.",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/credential-cache",
"comment": "Create dedicated package for the Rush \"CredentialCache\" API. This API manages credential persistence on the local machine.",
"type": "minor"
}
],
"packageName": "@rushstack/credential-cache"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/node-core-library",
"comment": "Add \"Objects.areDeepEqual\" and \"User.getHomeFolder\" APIs.",
"type": "minor"
}
],
"packageName": "@rushstack/node-core-library"
}
4 changes: 4 additions & 0 deletions common/config/rush/nonbrowser-approved-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@
"name": "@rspack/dev-server",
"allowedCategories": [ "libraries" ]
},
{
"name": "@rushstack/credential-cache",
"allowedCategories": [ "libraries" ]
},
{
"name": "@rushstack/debug-certificate-manager",
"allowedCategories": [ "libraries", "vscode-extensions" ]
Expand Down
35 changes: 23 additions & 12 deletions common/config/subspaces/build-tests-subspace/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
{
"pnpmShrinkwrapHash": "1dc2b69423ca353582cec8716410a0b8a8210aff",
"pnpmShrinkwrapHash": "c9e998d8d98c587075f2380a11aa0816aecfd2fc",
"preferredVersionsHash": "550b4cee0bef4e97db6c6aad726df5149d20e7d9",
"packageJsonInjectedDependenciesHash": "7bf222162008849ca931709cbaa90632d56766da"
"packageJsonInjectedDependenciesHash": "9c50330f156d5d74c5dd1fb2e3aa6b9c2a2403c7"
}
31 changes: 31 additions & 0 deletions common/config/subspaces/default/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions common/reviews/api/credential-cache.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
## API Report File for "@rushstack/credential-cache"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts

// @public (undocumented)
export class CredentialCache implements Disposable {
// Warning: (ae-forgotten-export) The symbol "SYMBOL_DISPOSE" needs to be exported by the entry point index.d.ts
//
// (undocumented)
[SYMBOL_DISPOSE](): void;
// (undocumented)
deleteCacheEntry(cacheId: string): void;
// (undocumented)
dispose(): void;
// (undocumented)
static initializeAsync(options: ICredentialCacheOptions): Promise<CredentialCache>;
// (undocumented)
saveIfModifiedAsync(): Promise<void>;
// (undocumented)
setCacheEntry(cacheId: string, entry: ICredentialCacheEntry): void;
// (undocumented)
trimExpiredEntries(): void;
// (undocumented)
tryGetCacheEntry(cacheId: string): ICredentialCacheEntry | undefined;
// (undocumented)
static usingAsync(options: ICredentialCacheOptions, doActionAsync: (credentialCache: CredentialCache) => Promise<void> | void): Promise<void>;
}

// @public (undocumented)
export interface ICredentialCacheEntry {
// (undocumented)
credential: string;
// (undocumented)
credentialMetadata?: object;
// (undocumented)
expires?: Date;
}

// @public (undocumented)
export interface ICredentialCacheOptions {
// (undocumented)
cacheFilePath?: string;
// (undocumented)
supportEditing: boolean;
}

```
28 changes: 24 additions & 4 deletions common/reviews/api/node-core-library.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// <reference types="node" />

import * as child_process from 'node:child_process';
import * as nodeFs from 'node:fs';
import * as fs from 'node:fs';
import * as nodePath from 'node:path';

// @public
Expand All @@ -24,6 +24,9 @@ export class AlreadyReportedError extends Error {
constructor();
}

// @public
function areDeepEqual<TObject>(a: TObject, b: TObject): boolean;

// @public
export class Async {
static forEachAsync<TEntry>(iterable: Iterable<TEntry> | AsyncIterable<TEntry>, callback: (entry: TEntry, arrayIndex: number) => Promise<void>, options?: (IAsyncParallelismOptions & {
Expand Down Expand Up @@ -216,7 +219,7 @@ export type FileSystemCopyFilesAsyncFilter = (sourcePath: string, destinationPat
export type FileSystemCopyFilesFilter = (sourcePath: string, destinationPath: string) => boolean;

// @public
export type FileSystemStats = nodeFs.Stats;
export type FileSystemStats = fs.Stats;

// @public
export class FileWriter {
Expand All @@ -234,7 +237,10 @@ export const FolderConstants: {
};

// @public
export type FolderItem = nodeFs.Dirent;
export type FolderItem = fs.Dirent;

// @public
function getHomeFolder(): string;

// @public
export interface IAsyncParallelismOptions {
Expand Down Expand Up @@ -628,7 +634,7 @@ export interface IReadLinesFromIterableOptions {
// @public
export interface IRealNodeModulePathResolverOptions {
// (undocumented)
fs?: Partial<Pick<typeof nodeFs, 'lstatSync' | 'readlinkSync'>>;
fs?: Partial<Pick<typeof fs, 'lstatSync' | 'readlinkSync'>>;
ignoreMissingPaths?: boolean;
// (undocumented)
path?: Partial<Pick<typeof nodePath, 'isAbsolute' | 'join' | 'resolve' | 'sep'>>;
Expand Down Expand Up @@ -791,6 +797,13 @@ export enum NewlineKind {
OsDefault = "os"
}

declare namespace Objects {
export {
areDeepEqual
}
}
export { Objects }

// @public
export class PackageJsonLookup {
constructor(parameters?: IPackageJsonLookupParameters);
Expand Down Expand Up @@ -932,4 +945,11 @@ export class TypeUuid {
static registerClass(targetClass: any, typeUuid: string): void;
}

declare namespace User {
export {
getHomeFolder
}
}
export { User }

```
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
```ts

import { AzureAuthorityHosts } from '@azure/identity';
import { CredentialCache } from '@rushstack/rush-sdk';
import { CredentialCache } from '@rushstack/credential-cache';
import { DeviceCodeCredentialOptions } from '@azure/identity';
import type { ICredentialCacheEntry } from '@rushstack/rush-sdk';
import type { ICredentialCacheEntry } from '@rushstack/credential-cache';
import { InteractiveBrowserCredentialNodeOptions } from '@azure/identity';
import type { IRushPlugin } from '@rushstack/rush-sdk';
import type { ITerminal } from '@rushstack/terminal';
Expand Down
Loading