Skip to content

Commit 16a0506

Browse files
merge: release 0.3.2 (#538)
2 parents 7020a72 + 7906c4e commit 16a0506

File tree

64 files changed

+2299
-1138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2299
-1138
lines changed

.eslintrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ rules:
2222
'@typescript-eslint/no-inferrable-types': off
2323
'@typescript-eslint/no-explicit-any': off
2424
'@typescript-eslint/member-ordering': 'error'
25+
'@typescript-eslint/no-unused-vars':
26+
- 'error'
27+
- args: 'none'
2528
# TODO: Remove these and fixed issues once we merged all the current PRs.
2629
'@typescript-eslint/ban-types': off
2730
'@typescript-eslint/no-unsafe-return': off

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "10:00"
8+
timezone: Europe/Budapest
9+
open-pull-requests-limit: 5
10+
versioning-strategy: increase
11+
commit-message:
12+
prefix: build
13+
include: scope

.github/semantic.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
titleAndCommits: true
2+
allowMergeCommits: false
3+
scopes:
4+
- deps
5+
- deps-dev
6+
types:
7+
- feat
8+
- fix
9+
- docs
10+
- style
11+
- refactor
12+
- perf
13+
- test
14+
- build
15+
- ci
16+
- chore
17+
- revert
18+
- merge
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Auto approve PRs
2+
on:
3+
pull_request
4+
jobs:
5+
dependabot:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: hmarr/[email protected]
9+
if: github.actor == 'dependabot[bot]'
10+
with:
11+
github-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/continuous-deployment-workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
- run: npm run prettier:check
1616
- run: npm run lint:check
1717
- run: npm run test:ci
18-
- run: npm run build
18+
- run: npm run build:es2015
19+
- run: npm run build:esm5
20+
- run: npm run build:cjs
21+
- run: npm run build:umd
22+
- run: npm run build:types
1923
- run: cp LICENSE build/LICENSE
2024
- run: cp README.md build/README.md
2125
- run: jq 'del(.devDependencies) | del(.scripts)' package.json > build/package.json

.github/workflows/continuous-integration-workflow.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: CI
2-
on: push
2+
on: [push, pull_request]
33
jobs:
44
checks:
55
name: Linters
@@ -15,21 +15,29 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
node-version: [8.x, 10.x, 12.x, 14.x]
18+
node-version: ['10.x', '12.x', '14.x']
19+
fail-fast: false
1920
steps:
2021
- uses: actions/checkout@v1
21-
- name: Setting up Node.js ${{ matrix.node-version }}
22+
- name: Setting up Node.js (v${{ matrix.node-version }}.x)
2223
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
2326
- run: npm ci --ignore-scripts
2427
- run: npm run test:ci
2528
- run: npm install codecov -g
26-
- run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }}
29+
if: ${{ matrix.node-version == '14.x' }}
30+
- run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/}
31+
if: ${{ matrix.node-version == '14.x' }}
2732
build:
2833
name: Build
29-
needs: [tests, checks]
3034
runs-on: ubuntu-latest
3135
steps:
3236
- uses: actions/checkout@v1
3337
- uses: actions/setup-node@v1
3438
- run: npm ci --ignore-scripts
35-
- run: npm run build
39+
- run: npm run build:es2015
40+
- run: npm run build:esm5
41+
- run: npm run build:cjs
42+
- run: npm run build:umd
43+
- run: npm run build:types
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'Lock inactive threads'
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
jobs:
6+
lock:
7+
name: Lock closed issues
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: dessant/lock-threads@v2
11+
with:
12+
github-token: ${{ github.token }}
13+
issue-lock-inactive-days: 30
14+
pr-lock-inactive-days: 30
15+
issue-lock-comment: >
16+
This issue has been automatically locked since there
17+
has not been any recent activity after it was closed.
18+
Please open a new issue for related bugs.
19+
pr-lock-comment: >
20+
This pull request has been automatically locked since there
21+
has not been any recent activity after it was closed.
22+
Please open a new issue for related bugs.

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
_This changelog follows the [keep a changelog][keep-a-changelog]_ format to maintain a human readable changelog.
44

5+
### [0.3.2][v0.3.2] - 2021-01-14
6+
7+
#### Added
8+
9+
- `exposeDefaultValues` option has been added, when enabled properties will use their default values when no value is present for the property
10+
- the name of the currently transformed parameter is exposed in the `@Transform` decorator
11+
12+
#### Fixed
13+
14+
- fixed an issue with transforming `Map` (#319)
15+
- fixed an issue with sourcemap generation (#472)
16+
17+
#### Changed
18+
19+
- various internal refactors
20+
- various changes to the project tooling
21+
- various dev-dependencies has been updated
22+
523
### [0.3.1][v0.3.1] - 2020-07-29
624

725
#### Added
@@ -21,8 +39,9 @@ _This changelog follows the [keep a changelog][keep-a-changelog]_ format to main
2139

2240
- circular dependency fixed
2341
- dev dependencies removed from package.json before publishing (no more security warnings)
24-
- transformer oder is deterministic now (#231)
42+
- transformer order is deterministic now (#231)
2543
- fix prototype pollution issue (#367)
44+
- various fixes in documentation
2645

2746
### [0.2.3][v0.2.3] [BREAKING CHANGE]
2847

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2015-2020 Umed Khudoiberdiev
3+
Copyright (c) 2015-2020 TypeStack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)