db-migrate 0.11.7 → 0.11.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/lib/commands/generated.js +0 -1
- package/lib/commands/run.js +0 -1
- package/lib/commands/set-default-argv.js +0 -1
- package/package.json +5 -1
- package/.eslintrc +0 -8
- package/.jscsrc +0 -0
- package/.jshintignore +0 -2
- package/.jshintrc +0 -14
- package/.prettierrc +0 -3
- package/.tern-port +0 -1
- package/.tern-project +0 -7
- package/.travis.yml +0 -47
- package/CODE_OF_CONDUCT.md +0 -46
- package/CONTRIBUTING.md +0 -81
- package/Makefile +0 -8
- package/commitlint.config.js +0 -1
- package/coverage.html +0 -17232
- package/generateLoader.js +0 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
## [0.11.7](https://github.com/db-migrate/node-db-migrate/compare/v0.11.6...v0.11.7) (2020-04-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **vuln:** backport [#679](https://github.com/db-migrate/node-db-migrate/issues/679) ([8b5beac](https://github.com/db-migrate/node-db-migrate/commit/8b5beac))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **staticLoader:** a static loader to support packaging ([e183046](https://github.com/db-migrate/node-db-migrate/commit/e183046))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [0.11.6](https://github.com/db-migrate/node-db-migrate/compare/v0.11.5...v0.11.6) (2019-06-08)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **cwd:** addition of cwd missed function definition ([fae85cf](https://github.com/db-migrate/node-db-migrate/commit/fae85cf))
|
|
21
|
+
* **plugin:** allow no package.json ([f27dce0](https://github.com/db-migrate/node-db-migrate/commit/f27dce0))
|
|
22
|
+
* **plugin:** handle non existent dependencies and improve UX ([006ef5e](https://github.com/db-migrate/node-db-migrate/commit/006ef5e)), closes [#628](https://github.com/db-migrate/node-db-migrate/issues/628)
|
|
23
|
+
* **plugin:** respect options cwd ([#618](https://github.com/db-migrate/node-db-migrate/issues/618)) ([3dae762](https://github.com/db-migrate/node-db-migrate/commit/3dae762))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
1
27
|
## [0.11.6](https://github.com/db-migrate/node-db-migrate/compare/v0.11.5...v0.11.6) (2019-06-08)
|
|
2
28
|
|
|
3
29
|
|
|
@@ -17,7 +17,6 @@ const files = {
|
|
|
17
17
|
"index": require('./index.js'),
|
|
18
18
|
"on-complete": require('./on-complete.js'),
|
|
19
19
|
"run": require('./run.js'),
|
|
20
|
-
"run": require('./run.js.orig'),
|
|
21
20
|
"seed": require('./seed.js'),
|
|
22
21
|
"set-default-argv": require('./set-default-argv.js'),
|
|
23
22
|
"sync": require('./sync.js'),
|
package/lib/commands/run.js
CHANGED
|
@@ -124,7 +124,6 @@ module.exports = function (internals, isModule) {
|
|
|
124
124
|
internals.argv.config = internals.argv.configFile || _config;
|
|
125
125
|
|
|
126
126
|
if (internals.argv.version) {
|
|
127
|
-
console.log(internals.argv.version);
|
|
128
127
|
console.log(internals.dbm.version);
|
|
129
128
|
process.exit(0);
|
|
130
129
|
}
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"programable",
|
|
32
32
|
"api"
|
|
33
33
|
],
|
|
34
|
-
"version": "0.11.
|
|
34
|
+
"version": "0.11.11",
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=8.0.0"
|
|
37
37
|
},
|
|
@@ -76,6 +76,10 @@
|
|
|
76
76
|
"rimraf": "^2.6.2",
|
|
77
77
|
"sinon": "^4.1.2"
|
|
78
78
|
},
|
|
79
|
+
"funding": {
|
|
80
|
+
"type": "opencollective",
|
|
81
|
+
"url": "https://opencollective.com/node-db-migrate"
|
|
82
|
+
},
|
|
79
83
|
"scripts": {
|
|
80
84
|
"prepublishOnly": "node generateLoader.js",
|
|
81
85
|
"pretest": "eslint *.js lib/*.js test/*.js bin/*",
|
package/.eslintrc
DELETED
package/.jscsrc
DELETED
|
File without changes
|
package/.jshintignore
DELETED
package/.jshintrc
DELETED
package/.prettierrc
DELETED
package/.tern-port
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
36927
|
package/.tern-project
DELETED
package/.travis.yml
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
language: node_js
|
|
2
|
-
|
|
3
|
-
node_js:
|
|
4
|
-
- 8
|
|
5
|
-
- 10
|
|
6
|
-
- node
|
|
7
|
-
|
|
8
|
-
notifications:
|
|
9
|
-
email:
|
|
10
|
-
recipients:
|
|
11
|
-
- magic@wizardtales.com
|
|
12
|
-
webhooks:
|
|
13
|
-
urls:
|
|
14
|
-
- https://webhooks.gitter.im/e/509c88551a18006fe93f
|
|
15
|
-
on_success: change
|
|
16
|
-
on_failure: always
|
|
17
|
-
on_start: false
|
|
18
|
-
|
|
19
|
-
os:
|
|
20
|
-
- linux
|
|
21
|
-
|
|
22
|
-
matrix:
|
|
23
|
-
allow_failures:
|
|
24
|
-
- node_js: node
|
|
25
|
-
fast_finish: true
|
|
26
|
-
|
|
27
|
-
sudo: false
|
|
28
|
-
|
|
29
|
-
cache:
|
|
30
|
-
npm: true
|
|
31
|
-
directories:
|
|
32
|
-
- node_modules
|
|
33
|
-
|
|
34
|
-
addons:
|
|
35
|
-
apt:
|
|
36
|
-
sources:
|
|
37
|
-
- ubuntu-toolchain-r-test
|
|
38
|
-
packages:
|
|
39
|
-
- g++-4.8
|
|
40
|
-
|
|
41
|
-
before_install:
|
|
42
|
-
- export CXX=g++-4.8; export CC=gcc-4.8;
|
|
43
|
-
|
|
44
|
-
install: npm install
|
|
45
|
-
|
|
46
|
-
before_script:
|
|
47
|
-
- cp test/db.config.ci test/db.config.json
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
6
|
-
|
|
7
|
-
## Our Standards
|
|
8
|
-
|
|
9
|
-
Examples of behavior that contributes to creating a positive environment include:
|
|
10
|
-
|
|
11
|
-
* Using welcoming and inclusive language
|
|
12
|
-
* Being respectful of differing viewpoints and experiences
|
|
13
|
-
* Gracefully accepting constructive criticism
|
|
14
|
-
* Focusing on what is best for the community
|
|
15
|
-
* Showing empathy towards other community members
|
|
16
|
-
|
|
17
|
-
Examples of unacceptable behavior by participants include:
|
|
18
|
-
|
|
19
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
|
20
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
21
|
-
* Public or private harassment
|
|
22
|
-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
|
23
|
-
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
24
|
-
|
|
25
|
-
## Our Responsibilities
|
|
26
|
-
|
|
27
|
-
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
|
|
28
|
-
|
|
29
|
-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
|
30
|
-
|
|
31
|
-
## Scope
|
|
32
|
-
|
|
33
|
-
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
|
|
34
|
-
|
|
35
|
-
## Enforcement
|
|
36
|
-
|
|
37
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at dbmigrate@wizardtales.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
|
|
38
|
-
|
|
39
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
|
|
40
|
-
|
|
41
|
-
## Attribution
|
|
42
|
-
|
|
43
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
|
|
44
|
-
|
|
45
|
-
[homepage]: http://contributor-covenant.org
|
|
46
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
# Contributing by opening an Issue or Discussing
|
|
2
|
-
|
|
3
|
-
Whenever you find a bug, which you do not have the time to fix, it is still important
|
|
4
|
-
to get your input. Same goes for feature suggestions and everything else that helps
|
|
5
|
-
a project to get better.
|
|
6
|
-
|
|
7
|
-
Here are a few points to consider before creating an issue or discussing within one:
|
|
8
|
-
|
|
9
|
-
1. Make sure you have proper description of your problem or what exactly you want:
|
|
10
|
-
|
|
11
|
-
We have issue templates in place that should help you with this one and this is really
|
|
12
|
-
important, since we may not just agree with you, if we don't understand your use case.
|
|
13
|
-
|
|
14
|
-
2. Be constructive and before you post think once more if this is going to waste the maintainers
|
|
15
|
-
time, or if it is going to actually help them.
|
|
16
|
-
|
|
17
|
-
Since being constructive, is a big vague, here some simple points that should help you:
|
|
18
|
-
|
|
19
|
-
2.1. Just stating something is wrong, is not constructive.
|
|
20
|
-
|
|
21
|
-
When you've got the feeling something is wrong, try to understand first if it is really wrong
|
|
22
|
-
and if it is make suggestions on how to improve, or even better open a PR and make the open source
|
|
23
|
-
world once again even better!
|
|
24
|
-
|
|
25
|
-
2.2. "Does not work", is not a proper problem description
|
|
26
|
-
|
|
27
|
-
Neither is, "see title". When you follow the issue template and provide all informations asked for
|
|
28
|
-
you should be pretty fine, in providing us exactly the information we need to help you.
|
|
29
|
-
|
|
30
|
-
2.3. Follow the CoC and contribute, not attack
|
|
31
|
-
|
|
32
|
-
An example when you're not contributing, but attacking is, should you just impose you're right
|
|
33
|
-
and you should be followed. It is always about the dialogue, that makes the difference. After all
|
|
34
|
-
you should be fine, by just using your common sense.
|
|
35
|
-
|
|
36
|
-
# Contributing a Pull Request
|
|
37
|
-
|
|
38
|
-
Without pull requests from generous people like you, this project
|
|
39
|
-
wouldn't be what it is today. You are planning to contribute aren't you?
|
|
40
|
-
If so, here's a quick guide to creating a great pull request for
|
|
41
|
-
this project:
|
|
42
|
-
|
|
43
|
-
1. Fork the repo.
|
|
44
|
-
|
|
45
|
-
2. Copy the test/db.config.example.json to test/db.config.json
|
|
46
|
-
|
|
47
|
-
3. Run the tests. Pull requests without tests are much less likely to be
|
|
48
|
-
merged, and it's great to know you're starting with a clean slate: `npm test`.
|
|
49
|
-
Be sure to check the README for setting up your test databases first.
|
|
50
|
-
|
|
51
|
-
4. Add a test for your change. Refactoring and documentation changes
|
|
52
|
-
require no new tests. If you are adding functionality or fixing a bug,
|
|
53
|
-
please include a test.
|
|
54
|
-
|
|
55
|
-
5. Make the test pass.
|
|
56
|
-
|
|
57
|
-
6. Create a commit that complies with our conventions, which you can view
|
|
58
|
-
[here](https://github.com/conventional-changelog/conventional-changelog/tree/35e60b5be6027fb2784c5103eee111f6f99b045e/packages/conventional-changelog-angular)
|
|
59
|
-
and last but not least also comply to the [DCO](https://github.com/probot/dco#how-it-works).
|
|
60
|
-
Which easiest work with just commiting via `git commit -s -m 'your commit message'`.
|
|
61
|
-
|
|
62
|
-
7. Push to your fork and submit a pull request.
|
|
63
|
-
|
|
64
|
-
At this point you're waiting on me. In a perfect world I'd commit to
|
|
65
|
-
responding to your request in some short period of time. Unfortunately,
|
|
66
|
-
I'm not able to do that. You'll most likely see me work off several pull
|
|
67
|
-
requests in batches. I may suggest some changes or improvements or alternatives
|
|
68
|
-
at that time. Please don't consider the feedback as a lack of
|
|
69
|
-
appreciation for your time and effort. It most certainly is not.
|
|
70
|
-
|
|
71
|
-
Some things that will increase the chance that your pull request is accepted,
|
|
72
|
-
are:
|
|
73
|
-
|
|
74
|
-
* Include good tests
|
|
75
|
-
* Keep the changeset small
|
|
76
|
-
* Stick to existing code conventions
|
|
77
|
-
* Update the documentation, examples elsewhere, guides,
|
|
78
|
-
whatever is affected by your contribution
|
|
79
|
-
|
|
80
|
-
See my [pull request etiquette](http://kunkle.org/blog/2013/07/10/pull-request-etiquette/)
|
|
81
|
-
post for more contribution tips.
|
package/Makefile
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
test:
|
|
2
|
-
@node node_modules/lab/bin/lab -I verbose,dryRun,SharedArrayBuffer,Atomics,BigUint64Array,BigInt64Array,BigInt,URL,URLSearchParams,TextEncoder,TextDecoder,queueMicrotask --coverage-exclude lib/interface --coverage-exclude lib/transitions
|
|
3
|
-
test-cov:
|
|
4
|
-
@node node_modules/lab/bin/lab -t 66 -I verbose,dryRun,SharedArrayBuffer,Atomics,BigUint64Array,BigInt64Array,BigInt,URL,URLSearchParams,TextEncoder,TextDecoder,queueMicrotask --coverage-exclude lib/interface --coverage-exclude lib/transitions
|
|
5
|
-
test-cov-html:
|
|
6
|
-
@node node_modules/lab/bin/lab -r html -o coverage.html -I verbose,dryRun,SharedArrayBuffer,Atomics,BigUint64Array,BigInt64Array,BigInt,URL,URLSearchParams,TextEncoder,TextDecoder,queueMicrotask --coverage-exclude lib/interface --coverage-exclude lib/transitions
|
|
7
|
-
|
|
8
|
-
.PHONY: test test-cov test-cov-html
|
package/commitlint.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = { extends: ['@commitlint/config-angular'] };
|