Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fork #1

Merged
merged 61 commits into from
Sep 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
c0f6e38
Update all non-major dependencies
renovate-bot May 25, 2020
59e3d50
Update typescript-eslint monorepo to v3 (major) (#634)
renovate[bot] May 25, 2020
1b433d1
Update all non-major dependencies
renovate-bot Jun 1, 2020
cafa509
Keep this bind in logger methods (#638)
dolezel Jun 2, 2020
d1454ec
Updated changelog
dolezel Jun 2, 2020
4e640e3
5.0.1
dolezel Jun 2, 2020
f18d32b
Fix alter column collation (#641)
dolezel Jun 5, 2020
75aabfb
Updated changelog
dolezel Jun 5, 2020
545fe7d
5.0.2
dolezel Jun 5, 2020
c552488
Ability to specify own template file (#642)
dolezel Jun 5, 2020
bd68b10
Updated changelog
dolezel Jun 5, 2020
470ee0b
5.1.0
dolezel Jun 5, 2020
333cd4a
Update all non-major dependencies
renovate-bot Jun 8, 2020
075c681
Fix creating migration (#646)
dolezel Jun 8, 2020
afedbfe
Updated changelog
dolezel Jun 8, 2020
6c6f1e5
5.1.1
dolezel Jun 8, 2020
638def7
Update all non-major dependencies
renovate-bot Jun 15, 2020
e0eebff
Update dependency mocha to v8 (#650)
renovate[bot] Jun 15, 2020
4d3e84d
Update all non-major dependencies
renovate-bot Jun 22, 2020
9a6380c
View options (#656)
dolezel Jun 26, 2020
00564fd
Updated changelog
dolezel Jun 26, 2020
2f93dff
5.2.0
dolezel Jun 26, 2020
97c5d36
Update all non-major dependencies
renovate-bot Jun 29, 2020
fe796dc
Update all non-major dependencies
renovate-bot Jul 6, 2020
925f7fa
Update all non-major dependencies
renovate-bot Jul 13, 2020
7b60acb
Update dependency @types/mocha to v8 (#662)
renovate[bot] Jul 13, 2020
9937845
let console.error display all the properties on an err object, which …
jhillacre Jul 13, 2020
09fb554
Updated changelog
dolezel Jul 13, 2020
f8c5f90
5.3.0
dolezel Jul 13, 2020
4275b83
Updated dependencies (#663)
dolezel Jul 13, 2020
4a8a006
Update all non-major dependencies
renovate-bot Jul 20, 2020
5a2a660
Update all non-major dependencies
renovate-bot Jul 27, 2020
058a70a
Update all non-major dependencies
renovate-bot Aug 3, 2020
0b355e0
docs: fixed small error (#666)
0xflotus Aug 3, 2020
1ba6609
Update isExternalClient check (#664)
jondb Aug 5, 2020
7c65595
Updated changelog
dolezel Aug 5, 2020
92503ef
5.4.0
dolezel Aug 5, 2020
99661f5
Update all non-major dependencies
renovate-bot Aug 10, 2020
9d931e6
Regenerated package-lock.json (#674)
dolezel Aug 10, 2020
f6e8213
Allow opclass and sort per column in indexes (#671)
dolezel Aug 10, 2020
3742a40
Updated changelog
dolezel Aug 10, 2020
7982295
5.5.0
dolezel Aug 10, 2020
84c8220
Update all non-major dependencies
renovate-bot Aug 17, 2020
b8e9594
Update all non-major dependencies Docker tags
renovate-bot Aug 17, 2020
813c956
Do not try to unlock DB if connection failed (#677)
dolezel Aug 18, 2020
f304c83
Updated changelog
dolezel Aug 18, 2020
f02fffa
5.5.1
dolezel Aug 18, 2020
05be999
PgLiteral can be serialized (#678)
dolezel Aug 19, 2020
f87992e
Updated changelog
dolezel Aug 19, 2020
47aac05
5.6.0
dolezel Aug 19, 2020
9db481b
Using pg client in custom runner test (#679)
dolezel Aug 19, 2020
8896c95
Update all non-major dependencies
renovate-bot Aug 24, 2020
b0b2b40
Update dependency ts-node to v9 (#681)
renovate[bot] Aug 24, 2020
f79c1d7
Update dependency typescript to v4 (#682)
renovate[bot] Aug 24, 2020
4d255c5
Update all non-major dependencies
renovate-bot Aug 31, 2020
6c8fbb1
Update all non-major dependencies
renovate-bot Sep 7, 2020
74f3664
Update all non-major dependencies
renovate-bot Sep 14, 2020
8decc89
Update dependency yargs to v16 (#691)
renovate[bot] Sep 14, 2020
5783b6f
Eslint config (#692)
dolezel Sep 15, 2020
a6a43c5
Update all non-major dependencies
renovate-bot Sep 21, 2020
9b72b62
Bump node-fetch from 2.6.0 to 2.6.1 (#689)
dependabot[bot] Sep 21, 2020
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
70 changes: 54 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
- <<: *node-image
environment:
- DATABASE_URL=postgres://ubuntu:ubuntu@localhost:5432/circle_test
- image: postgres:10.13-alpine
- image: postgres:10.14-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=ubuntu
Expand All @@ -106,7 +106,7 @@ jobs:
- <<: *node-image
environment:
- DATABASE_URL=postgres://ubuntu:ubuntu@localhost:5432/circle_test
- image: postgres:11.8-alpine
- image: postgres:11.9-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=ubuntu
Expand All @@ -120,7 +120,7 @@ jobs:
- <<: *node-image
environment:
- DATABASE_URL=postgres://ubuntu:ubuntu@localhost:5432/circle_test
- image: postgres:12.3-alpine
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=ubuntu
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
- image: circleci/node:10
environment:
- DATABASE_URL=postgres://ubuntu:ubuntu@localhost:5432/circle_test
- image: postgres:12.3-alpine
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=ubuntu
Expand All @@ -174,7 +174,7 @@ jobs:
- image: circleci/node:14
environment:
- DATABASE_URL=postgres://ubuntu:ubuntu@localhost:5432/circle_test
- image: postgres:12.3-alpine
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=ubuntu
Expand All @@ -186,7 +186,7 @@ jobs:
test-config:
docker:
- <<: *node-image
- image: postgres:12.3-alpine
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=ubuntu
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
environment:
# can't use characters @#?/ in password - they have special meaning in url
- DATABASE_URL=postgres://ubuntu:123456abcdefghABCDEFGH~\`\!$%^\&*-_=+{}[]\(\)\<\>,.\;:\"\'\|\\@localhost:5432/circle_test
- image: postgres:12.3-alpine
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=123456abcdefghABCDEFGH~\`\!$%^\&*-_=+{}[]\(\)\<\>,.\;:\"\'\|\\
Expand All @@ -228,7 +228,7 @@ jobs:
test-password-2:
docker:
- <<: *node-image
- image: postgres:12.3-alpine
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=123456abcdefghABCDEFGH~\`\!@#$%^\&*-_=+{}[]\(\)\<\>,.\;:\"\'?\|/\\
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
- PGUSER=ubuntu
- PGPASSWORD=123456abcdefghABCDEFGH~\`\!@#$%^\&*-_=+{}[]\(\)\<\>,.\;:\"\'?\|/\\
- PGDATABASE=circle_test
- image: postgres:12.3-alpine
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=123456abcdefghABCDEFGH~\`\!@#$%^\&*-_=+{}[]\(\)\<\>,.\;:\"\'?\|/\\
Expand All @@ -275,7 +275,7 @@ jobs:
- DATABASE_URL=postgres://ubuntu:ubuntu@localhost:5432/circle_test
# used in tests
- SCHEMA=myschema
- image: postgres:12.3-alpine
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=ubuntu
Expand All @@ -293,7 +293,7 @@ jobs:
- DATABASE_URL=postgres://ubuntu:ubuntu@localhost:5432/circle_test
# used in tests
- SCHEMA=myschema
- image: postgres:12.3-alpine
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=ubuntu
Expand All @@ -309,7 +309,7 @@ jobs:
- <<: *node-image
environment:
- DATABASE_URL=postgres://ubuntu:ubuntu@localhost:5432/circle_test
- image: postgres:12.3-alpine
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=ubuntu
Expand All @@ -320,12 +320,12 @@ jobs:
- run:
name: test
command: npm run migrate up -- --tsconfig tsconfig.json -m test/ts/migrations && npm run migrate down 0 -- --tsconfig tsconfig.json -m test/ts/migrations --timestamps
test-typescript-customrunner:
test-typescript-customrunner-url:
docker:
- <<: *node-image
environment:
- DATABASE_URL=postgres://ubuntu:ubuntu@localhost:5432/circle_test
- image: postgres:12.3-alpine
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=ubuntu
Expand All @@ -335,7 +335,39 @@ jobs:
- <<: *postgres-wait
- run:
name: test
command: $(npm bin)/ts-node test/ts/customRunner.ts
command: $(npm bin)/ts-node test/ts/customRunnerDBUrl.ts
test-typescript-customrunner-client:
docker:
- <<: *node-image
environment:
- DATABASE_URL=postgres://ubuntu:ubuntu@localhost:5432/circle_test
- image: postgres:12.4-alpine
environment:
- POSTGRES_USER=ubuntu
- POSTGRES_PASSWORD=ubuntu
- POSTGRES_DB=circle_test
steps:
- <<: *restore
- <<: *postgres-wait
- run:
name: test
command: $(npm bin)/ts-node test/ts/customRunnerDBClient.ts
test-create-migration:
docker:
- <<: *node-image
steps:
- <<: *restore
- run:
name: check dir does not exists
command: |
[ ! -d migrations ]
- run:
name: create migration
command: npm run migrate create test
- run:
name: check file was created
command: |
[ $(ls -1 migrations | wc -l) -eq 1 ]

workflows:
version: 2
Expand Down Expand Up @@ -393,6 +425,12 @@ workflows:
- test-typescript-migration:
requires:
- install
- test-typescript-customrunner:
- test-typescript-customrunner-url:
requires:
- install
- test-typescript-customrunner-client:
requires:
- install
- test-create-migration:
requires:
- install
21 changes: 7 additions & 14 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,27 @@ module.exports = {
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'import', 'security'],
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {},
},
},
env: {
node: true,
mocha: true,
},
rules: {
'no-underscore-dangle': 0,
'security/detect-object-injection': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-explicit-any': 0,
'no-underscore-dangle': 'off',
'security/detect-object-injection': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'import/extensions': ['error', 'never'],
},
overrides: [
{
files: ['*.js', 'node-pg-migrate'],
rules: {
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/camelcase': 'off',
},
},
],
Expand Down
11 changes: 0 additions & 11 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
module.exports = {
parser: 'typescript',
semi: false,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
overrides: [
{
files: '*.json',
options: { parser: 'json' },
},
{
files: '*.md',
options: { parser: 'markdown' },
},
],
}
60 changes: 60 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,65 @@
# Change Log

## [5.6.0](2020-08-19)

### PgLiteral can be serialized

- Do not try to unlock DB if connection failed [#678](https://github.com/salsita/node-pg-migrate/pull/678)

## [5.5.1](2020-08-18)

### Fixed

- Do not try to unlock DB if connection failed [#677](https://github.com/salsita/node-pg-migrate/pull/677)

## [5.5.0](2020-08-10)

### Changed

- Allow opclass and sort per column in indexes [#671](https://github.com/salsita/node-pg-migrate/pull/671)

## [5.4.0](2020-08-05)

### Changed

- Update isExternalClient check [#664](https://github.com/salsita/node-pg-migrate/pull/664)

## [5.3.0](2020-07-13)

### Added

- Display additional details when logging errors [#660](https://github.com/salsita/node-pg-migrate/pull/660)

## [5.2.0](2020-06-26)

### Added

- View options [#656](https://github.com/salsita/node-pg-migrate/pull/656)

## [5.1.1](2020-06-08)

### Fixed

- Fix creating migration [#646](https://github.com/salsita/node-pg-migrate/pull/646)

## [5.1.0](2020-06-05)

### Added

- Ability to specify own template file [#642](https://github.com/salsita/node-pg-migrate/pull/642)

## [5.0.2](2020-06-05)

### Fixed

- Fix alter column collation [#641](https://github.com/salsita/node-pg-migrate/pull/641)

## [5.0.1](2020-06-02)

### Fixed

- Keep `this` bind in logger methods [#638](https://github.com/salsita/node-pg-migrate/pull/638)

## [5.0.0](2020-05-19)

### Breaking changes
Expand Down
Loading