Skip to content

Conversation

@unicornware
Copy link
Member

Description

  • bumped version to 1.0.0
  • added CHANGELOG entry for 1.0.0

Tests

yarn test

 RUN  v0.26.2
      Coverage enabled with c8

 ✓ src/types/__tests__/node-error-constructor.spec-d.ts > unit-d:types/NodeErrorConstructor > should extract parameters of type any[] if M extends string
 ✓ src/types/__tests__/node-error-constructor.spec-d.ts > unit-d:types/NodeErrorConstructor > should extract parameters of type Parameters<M> if M extends MessageFn
 ✓ src/types/__tests__/node-error-constructor.spec-d.ts > unit-d:types/NodeErrorConstructor > should match [prototype: NodeError<T>]
 ✓ src/enums/__tests__/error-code.spec-d.ts > unit-d:enums/ErrorCode > should have members of type Uppercase<string>
 ✓ src/internal/__tests__/k-is-node-error.spec.ts > unit:internal/kIsNodeError > should have description "kIsNodeError"
 ✓ src/types/__tests__/fn-message.spec-d.ts > unit-d:types/MessageFn > should extract parameters from type parameter
 ✓ src/types/__tests__/fn-message.spec-d.ts > unit-d:types/MessageFn > should return string
 ✓ src/types/__tests__/node-error-constructor.spec-d.ts > unit-d:types/NodeErrorConstructor > should return NodeError<T>
 ✓ src/types/__tests__/node-error.spec-d.ts > unit-d:types/NodeError > should have type param extend Error type
 ✓ src/types/__tests__/node-error.spec-d.ts > unit-d:types/NodeError > should match [code: ErrorCode]
 ✓ src/__tests__/determine-specific-type.spec.ts > unit:determineSpecificType > should detect bigint
 ✓ src/__tests__/determine-specific-type.spec.ts > unit:determineSpecificType > should detect boolean
 ✓ src/__tests__/determine-specific-type.spec.ts > unit:determineSpecificType > should detect function
 ✓ src/__tests__/determine-specific-type.spec.ts > unit:determineSpecificType > should detect instance object
 ✓ src/__tests__/determine-specific-type.spec.ts > unit:determineSpecificType > should detect null
 ✓ src/__tests__/determine-specific-type.spec.ts > unit:determineSpecificType > should detect number
 ✓ src/__tests__/determine-specific-type.spec.ts > unit:determineSpecificType > should detect string
 ✓ src/__tests__/determine-specific-type.spec.ts > unit:determineSpecificType > should detect symbol
 ✓ src/__tests__/determine-specific-type.spec.ts > unit:determineSpecificType > should detect undefined
 ✓ src/internal/__tests__/prepare-stack-trace.spec.ts > unit:internal/prepareStackTrace > should return error with new stack trace
 ✓ src/internal/__tests__/format-message.spec.ts > unit:internal/formatMessage > should return formatted messsage if msg is MessageFn
 ✓ src/internal/__tests__/format-message.spec.ts > unit:internal/formatMessage > should return formatted messsage if msg is string
 ✓ src/internal/__tests__/format-message.spec.ts > unit:internal/formatMessage > should throw if args length is invalid
 ✓ src/__tests__/create-node-error.spec.ts > unit:createNodeError > should return NodeErrorConstructor
 ✓ src/__tests__/create-node-error.spec.ts > unit:createNodeError > NodeError > should return NodeError instance

 Test Files  9 passed (9)
      Tests  25 passed (25)
   Start at  05:33:37
   Duration  3.37s (transform 980ms, setup 6.05s, collect 1.33s, tests 416ms)

 % Coverage report from c8
-----------------------------|---------|----------|---------|---------|-------------------
File                         | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-----------------------------|---------|----------|---------|---------|-------------------
All files                    |     100 |      100 |     100 |     100 |                   
 src                         |     100 |      100 |     100 |     100 |                   
  create-node-error.ts       |     100 |      100 |     100 |     100 |                   
  determine-specific-type.ts |     100 |      100 |     100 |     100 |                   
 src/enums                   |     100 |      100 |     100 |     100 |                   
  error-code.ts              |     100 |      100 |     100 |     100 |                   
 src/internal                |     100 |      100 |     100 |     100 |                   
  format-message.ts          |     100 |      100 |     100 |     100 |                   
  k-is-node-error.ts         |     100 |      100 |     100 |     100 |                   
  prepare-stack-trace.ts     |     100 |      100 |     100 |     100 |                   
-----------------------------|---------|----------|---------|---------|-------------------

yarn pack -o %s-%v.tgz

➤ YN0036: Calling the "prepack" lifecycle script
➤ YN0000: @flex-development/errnode@workspace:. STDOUT ℹ Building @flex-development/errnode
➤ YN0000: @flex-development/errnode@workspace:. STDOUT ✔ Build succeeded for @flex-development/errnode
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   dist (total size: 70 kB)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/create-node-error.mjs.map (777 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/create-node-error.mjs (1.19 kB)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/create-node-error.d.mts (1.24 kB)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/determine-specific-type.mjs.map (586 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/determine-specific-type.mjs (935 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/determine-specific-type.d.mts (438 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/index.mjs.map (165 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/index.mjs (288 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/index.d.mts (260 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/enums/error-code.mjs.map (8.64 kB)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/enums/error-code.mjs (26.3 kB)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/enums/error-code.d.mts (22.1 kB)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/enums/index.mjs.map (128 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/enums/index.mjs (123 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/enums/index.d.mts (115 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/internal/format-message.mjs.map (620 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/internal/format-message.mjs (925 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/internal/format-message.d.mts (1.1 kB)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/internal/k-is-node-error.mjs.map (151 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/internal/k-is-node-error.mjs (183 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/internal/k-is-node-error.d.mts (215 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/internal/prepare-stack-trace.mjs.map (298 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/internal/prepare-stack-trace.mjs (377 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/internal/prepare-stack-trace.d.mts (515 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/fn-message.mjs.map (69 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/fn-message.mjs (40 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/fn-message.d.mts (357 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/index.mjs.map (69 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/index.mjs (35 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/index.d.mts (270 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/node-error-constructor.mjs.map (69 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/node-error-constructor.mjs (52 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/node-error-constructor.d.mts (854 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/node-error.mjs.map (69 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/node-error.mjs (40 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT   └─ dist/types/node-error.d.mts (352 B)
➤ YN0000: @flex-development/errnode@workspace:. STDOUT Σ Total build size: 70 kB
➤ YN0000: CHANGELOG.md
➤ YN0000: LICENSE.md
➤ YN0000: README.md
➤ YN0000: changelog.config.cts
➤ YN0000: dist/create-node-error.d.mts
➤ YN0000: dist/create-node-error.mjs
➤ YN0000: dist/create-node-error.mjs.map
➤ YN0000: dist/determine-specific-type.d.mts
➤ YN0000: dist/determine-specific-type.mjs
➤ YN0000: dist/determine-specific-type.mjs.map
➤ YN0000: dist/enums/error-code.d.mts
➤ YN0000: dist/enums/error-code.mjs
➤ YN0000: dist/enums/error-code.mjs.map
➤ YN0000: dist/enums/index.d.mts
➤ YN0000: dist/enums/index.mjs
➤ YN0000: dist/enums/index.mjs.map
➤ YN0000: dist/index.d.mts
➤ YN0000: dist/index.mjs
➤ YN0000: dist/index.mjs.map
➤ YN0000: dist/internal/format-message.d.mts
➤ YN0000: dist/internal/format-message.mjs
➤ YN0000: dist/internal/format-message.mjs.map
➤ YN0000: dist/internal/k-is-node-error.d.mts
➤ YN0000: dist/internal/k-is-node-error.mjs
➤ YN0000: dist/internal/k-is-node-error.mjs.map
➤ YN0000: dist/internal/prepare-stack-trace.d.mts
➤ YN0000: dist/internal/prepare-stack-trace.mjs
➤ YN0000: dist/internal/prepare-stack-trace.mjs.map
➤ YN0000: dist/types/fn-message.d.mts
➤ YN0000: dist/types/fn-message.mjs
➤ YN0000: dist/types/fn-message.mjs.map
➤ YN0000: dist/types/index.d.mts
➤ YN0000: dist/types/index.mjs
➤ YN0000: dist/types/index.mjs.map
➤ YN0000: dist/types/node-error-constructor.d.mts
➤ YN0000: dist/types/node-error-constructor.mjs
➤ YN0000: dist/types/node-error-constructor.mjs.map
➤ YN0000: dist/types/node-error.d.mts
➤ YN0000: dist/types/node-error.mjs
➤ YN0000: dist/types/node-error.mjs.map
➤ YN0000: package.json
➤ YN0000: src/create-node-error.ts
➤ YN0000: src/determine-specific-type.ts
➤ YN0000: src/enums/error-code.ts
➤ YN0000: src/enums/index.ts
➤ YN0000: src/index.ts
➤ YN0000: src/internal/format-message.ts
➤ YN0000: src/internal/k-is-node-error.ts
➤ YN0000: src/internal/prepare-stack-trace.ts
➤ YN0000: src/types/fn-message.ts
➤ YN0000: src/types/index.ts
➤ YN0000: src/types/node-error-constructor.ts
➤ YN0000: src/types/node-error.ts
➤ YN0036: Calling the "postpack" lifecycle script
➤ YN0000: Package archive generated in ./@flex-development-errnode-1.0.0.tgz
➤ YN0000: Done in 4s 231ms

Additional context

N/A

Linked issues

N/A

Submission checklist

  • self-review performed
  • tests added and/or updated
  • documentation added or updated
  • new, tolerable vulnerabilities and/or warnings documented, if any
  • pr naming conventions

Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
@unicornware unicornware added the scope:release package release label Dec 28, 2022
@unicornware unicornware self-assigned this Dec 28, 2022
@unicornware unicornware enabled auto-merge (squash) December 28, 2022 10:36
Copy link
Contributor

@flexdevelopment flexdevelopment left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍🏾

@codecov
Copy link

codecov bot commented Dec 28, 2022

Codecov Report

Merging #2 (14b7826) into main (87b3a7f) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #2   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          659       659           
  Branches        13        13           
=========================================
  Hits           659       659           
Flag Coverage Δ
node14 100.00% <ø> (ø)
node16 100.00% <ø> (ø)
node18 100.00% <ø> (ø)
node19 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87b3a7f...14b7826. Read the comment docs.

@unicornware unicornware merged commit a012b75 into main Dec 28, 2022
@unicornware unicornware temporarily deployed to production December 28, 2022 10:38 — with GitHub Actions Inactive
@github-actions github-actions bot deleted the release/1.0.0 branch December 28, 2022 10:40
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent
activity after it was closed. Please open a new issue for related bugs or features. Be
sure to reference this issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

scope:release package release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants