@coderspirit/nominal
Advanced tools
Comparing version 3.0.0 to 3.1.0
export type { KeepProperties, KeepPropertyIfValueMatches, PropertyTypeDefinition, WithStrictProperty, WithProperty, } from './Properties'; | ||
export { WithBrand, WithFlavor, WithoutBrand } from './Brands'; | ||
export type { WithBrand, WithFlavor, WithoutBrand } from './Brands'; | ||
export type { BrandMarker as FastBrand, FlavorMarker as FastFlavor, } from './internal/Markers'; |
@@ -1,8 +0,1 @@ | ||
export declare const __BaseType: unique symbol; | ||
export declare const __Properties: unique symbol; | ||
export declare const __Brand: unique symbol; | ||
export declare const __PropertyName: unique symbol; | ||
export declare const __PropertyValues: unique symbol; | ||
declare const __ImpossibleSymbol: unique symbol; | ||
export declare type __Impossible = typeof __ImpossibleSymbol; | ||
export {}; | ||
export { __BaseType, __Properties, __Brand, __PropertyName, __PropertyValues, type __Impossible } from '@coderspirit/nominal-symbols'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.__PropertyValues = exports.__PropertyName = exports.__Brand = exports.__Properties = exports.__BaseType = void 0; | ||
exports.__BaseType = Symbol('__BaseType'); | ||
exports.__Properties = Symbol('__Properties'); | ||
exports.__Brand = Symbol('__Brand'); | ||
exports.__PropertyName = Symbol('__PropertyName'); | ||
exports.__PropertyValues = Symbol('__PropertyValues'); | ||
// Some Nominal tricks rely on the fact that this symbol and its type won't be | ||
// exported as public to the library's users. | ||
const __ImpossibleSymbol = Symbol('__Impossible'); | ||
// We re-export, instead of directly importing from the package, for | ||
// compatibility with ES modules & Deno. Typescript and NodeJS are still in very | ||
// early stages when it comes to ES modules support. | ||
var nominal_symbols_1 = require("@coderspirit/nominal-symbols"); | ||
Object.defineProperty(exports, "__BaseType", { enumerable: true, get: function () { return nominal_symbols_1.__BaseType; } }); | ||
Object.defineProperty(exports, "__Properties", { enumerable: true, get: function () { return nominal_symbols_1.__Properties; } }); | ||
Object.defineProperty(exports, "__Brand", { enumerable: true, get: function () { return nominal_symbols_1.__Brand; } }); | ||
Object.defineProperty(exports, "__PropertyName", { enumerable: true, get: function () { return nominal_symbols_1.__PropertyName; } }); | ||
Object.defineProperty(exports, "__PropertyValues", { enumerable: true, get: function () { return nominal_symbols_1.__PropertyValues; } }); |
export type { KeepProperties, KeepPropertyIfValueMatches, PropertyTypeDefinition, WithStrictProperty, WithProperty, } from './Properties'; | ||
export { WithBrand, WithFlavor, WithoutBrand } from './Brands'; | ||
export type { WithBrand, WithFlavor, WithoutBrand } from './Brands'; | ||
export type { BrandMarker as FastBrand, FlavorMarker as FastFlavor, } from './internal/Markers'; |
{ | ||
"name": "@coderspirit/nominal", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Powerful nominal types for your project", | ||
@@ -25,4 +25,4 @@ "main": "./dist/cjs/index.js", | ||
"build:cjs": "tsc -p ./tsconfig.json", | ||
"build:deno": "mkdir -p ./deno && cp -r ./src/* ./deno/ && rm -rf ./deno/__tests__ && ts-node ./scripts/adaptDeno.ts", | ||
"build:esm": "tsc -p ./tsconfig.esm.json && ts-node ./scripts/adaptESM.ts", | ||
"build:deno": "./scripts/build_deno.sh", | ||
"build:esm": "./scripts/build_esm.sh", | ||
"build:npm": "yarn build:cjs && yarn build:esm", | ||
@@ -40,19 +40,19 @@ "clean": "yarn clean:dist && yarn clean:deno", | ||
}, | ||
"peerDependencies": { | ||
"typescript": ">=4.0" | ||
"dependencies": { | ||
"@coderspirit/nominal-symbols": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^26.0.22", | ||
"@types/jest": "^27.4.0", | ||
"@types/node": "^14.14.37", | ||
"@typescript-eslint/eslint-plugin": "^4.19.0", | ||
"@typescript-eslint/parser": "^4.19.0", | ||
"eslint": "^7.23.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-jest": "^24.3.2", | ||
"@typescript-eslint/eslint-plugin": "^5.10.0", | ||
"@typescript-eslint/parser": "^5.10.0", | ||
"eslint": "^8.7.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-jest": "^25.7.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.2.1", | ||
"ts-jest": "^26.5.4", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.2.3" | ||
"jest": "^27.4.7", | ||
"prettier": "^2.5.1", | ||
"ts-jest": "^27.1.3", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.5.5" | ||
}, | ||
@@ -64,3 +64,3 @@ "engines": { | ||
"jest": { | ||
"version": 26 | ||
"version": 27 | ||
} | ||
@@ -67,0 +67,0 @@ }, |
# @coderspirit/nominal | ||
`Nominal` provides a powerful toolking to apply | ||
`Nominal` provides a powerful toolkit to apply | ||
[nominal typing](https://en.wikipedia.org/wiki/Nominal_type_system) on | ||
@@ -5,0 +5,0 @@ [Typescript](https://www.typescriptlang.org/) with zero runtime overhead. |
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
27501
0
318
+ Added@coderspirit/nominal-symbols@1.0.1(transitive)