@atproto/common-web
Advanced tools
Comparing version 0.2.4 to 0.3.0
# @atproto/common-web | ||
## 0.3.0 | ||
### Minor Changes | ||
- [#2169](https://github.com/bluesky-social/atproto/pull/2169) [`f689bd51a`](https://github.com/bluesky-social/atproto/commit/f689bd51a2f4e02d4eca40eb2568a1fcb95494e9) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Build system rework, stop bundling dependencies. | ||
## 0.2.4 | ||
@@ -4,0 +10,0 @@ |
export declare const keyBy: <T>(arr: T[], key: string) => Record<string, T>; | ||
export declare const mapDefined: <T, S>(arr: T[], fn: (obj: T) => S | undefined) => S[]; | ||
//# sourceMappingURL=arrays.d.ts.map |
@@ -31,1 +31,2 @@ export declare const readFromGenerator: <T>(gen: AsyncGenerator<T, any, unknown>, isDone: (last?: T | undefined) => Promise<boolean> | boolean, waitFor?: Promise<unknown>, maxLength?: number) => Promise<T[]>; | ||
export declare const handleAllSettledErrors: (results: PromiseSettledResult<unknown>[]) => void; | ||
//# sourceMappingURL=async.d.ts.map |
@@ -19,1 +19,2 @@ import { ZodError } from 'zod'; | ||
export declare const isObject: (obj: unknown) => obj is Record<string, unknown>; | ||
//# sourceMappingURL=check.d.ts.map |
@@ -97,1 +97,2 @@ import { z } from 'zod'; | ||
export type DidDocument = z.infer<typeof didDocument>; | ||
//# sourceMappingURL=did-doc.d.ts.map |
@@ -13,1 +13,2 @@ export * as check from './check'; | ||
export * from './did-doc'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -11,1 +11,2 @@ import { CID } from 'multiformats/cid'; | ||
export declare const ipldEquals: (a: IpldValue, b: IpldValue) => boolean; | ||
//# sourceMappingURL=ipld.d.ts.map |
@@ -8,1 +8,2 @@ export type RetryOptions = { | ||
export declare function backoffMs(n: number, multiplier?: number, max?: number): number; | ||
//# sourceMappingURL=retry.d.ts.map |
@@ -17,1 +17,2 @@ export declare const utf8Len: (str: string) => number; | ||
}; | ||
//# sourceMappingURL=strings.d.ts.map |
@@ -21,1 +21,2 @@ export declare class TID { | ||
export default TID; | ||
//# sourceMappingURL=tid.d.ts.map |
@@ -7,1 +7,2 @@ export declare const SECOND = 1000; | ||
export declare const addHoursToDate: (hours: number, startingDate?: Date) => Date; | ||
//# sourceMappingURL=times.d.ts.map |
@@ -21,1 +21,2 @@ import { CID } from 'multiformats/cid'; | ||
export type NotEmptyArray<T> = [T, ...T[]]; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -21,1 +21,2 @@ /// <reference types="node" /> | ||
export declare const parseIntWithFallback: <T>(value: string | undefined, fallback: T) => number | T; | ||
//# sourceMappingURL=util.d.ts.map |
@@ -1,6 +0,6 @@ | ||
const base = require('../../jest.config.base.js') | ||
/** @type {import('jest').Config} */ | ||
module.exports = { | ||
...base, | ||
displayName: 'Common Web', | ||
transform: { '^.+\\.(t|j)s$': '@swc/jest' }, | ||
setupFiles: ['<rootDir>/../../jest.setup.ts'], | ||
} |
{ | ||
"name": "@atproto/common-web", | ||
"version": "0.2.4", | ||
"version": "0.3.0", | ||
"license": "MIT", | ||
@@ -16,2 +16,3 @@ "description": "Shared web-platform-friendly code for atproto libraries", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"dependencies": { | ||
@@ -23,9 +24,9 @@ "graphemer": "^1.4.0", | ||
}, | ||
"devDependencies": { | ||
"jest": "^28.1.2" | ||
}, | ||
"scripts": { | ||
"test": "jest", | ||
"build": "node ./build.js", | ||
"postbuild": "tsc --build tsconfig.build.json", | ||
"update-main-to-dist": "node ../../update-main-to-dist.js packages/common-web" | ||
}, | ||
"types": "dist/index.d.ts" | ||
"build": "tsc --build tsconfig.build.json" | ||
} | ||
} |
{ | ||
"extends": "./tsconfig.json", | ||
"exclude": ["**/*.spec.ts", "**/*.test.ts"] | ||
"extends": "../../tsconfig/isomorphic.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist" | ||
}, | ||
"include": ["./src"] | ||
} |
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist", // Your outDir, | ||
"emitDeclarationOnly": true | ||
}, | ||
"include": ["./src", "__tests__/**/**.ts"] | ||
"include": [], | ||
"references": [ | ||
{ "path": "./tsconfig.build.json" }, | ||
{ "path": "./tsconfig.tests.json" } | ||
] | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
73
0
115651
1
2459