Raphael von der Grün [Mon, 14 Oct 2019 14:20:50 +0000 (16:20 +0200)]
Target next major version 6.0.0 (#217)
Raphael von der Grün [Mon, 14 Oct 2019 14:20:30 +0000 (16:20 +0200)]
Minor formatting improvements in cordova.js (#218)
Raphael von der Grün [Sun, 13 Oct 2019 15:36:42 +0000 (17:36 +0200)]
ESLint improvements (#204)
* Add proper ESLint configuration
* Move test-build script for easier linting
* Fix ESLint violations instead of ignoring them
* Remove unused function
* Remove node-only code
* Check that we only use ES5 in our browser code
Raphael von der Grün [Sun, 13 Oct 2019 10:52:02 +0000 (12:52 +0200)]
Drop unused test helpers (#214)
* Remove unused module mockxhr
* Remove unnecessary test utils
* Remove unused placeholders
* Inline testmodule fixture
* Move test-platform modules to test/
Raphael von der Grün [Mon, 22 Jul 2019 09:44:05 +0000 (11:44 +0200)]
Collect & report test coverage for our browser code (#209)
Raphael von der Grün [Mon, 22 Jul 2019 09:38:27 +0000 (11:38 +0200)]
Make built JS output a bit prettier (#208)
In #205 I took great care to preserve the _exact_ format of the built
JS code, so the build refactoring could be verified by diffing the
build output. However, some of the existing formatting is sub-optimal
so this commit optimizes it a little.
Most notably, this commit will change file path comments to be relative
paths, not absolute ones. An example for this:
```diff
-// file: /home/raphinesse/code/cordova-android/cordova-js-src/exec.js
+// file: ../cordova-android/cordova-js-src/exec.js
```
Raphael von der Grün [Mon, 22 Jul 2019 09:36:59 +0000 (11:36 +0200)]
Add platforms used during tests as devDependencies (#207)
Raphael von der Grün [Thu, 18 Jul 2019 11:15:08 +0000 (13:15 +0200)]
Completely refactor build system (#205)
The goals of this refactoring are the following:
- Improve code quality of the build system
- Prepare code base for adding code coverage
- Prepare code base for exposing the build system as a package export,
so platforms can build their `cordova.js` during their build (or
creation) process. This would make the JS build using coho obsolete.
- Prepare code base to remove dependency on Grunt
The build process now lives under `build-tools` (was `tasks`). It does
not depend on Grunt anymore but is written in plain Node.js.
The original Grunt interface for building (as used by coho) was
preserved and is implemented in `Gruntfile.js` using the new build
system. The `platformName` option and support for getting platform paths
from the `cordova-platforms` key in `package.json` have been removed
from the Grunt interface, but neither of those are used in coho.
The logic that is specific to the test build has been extracted from
the rest of the build. It now lives in `test/build.js` and is run
automatically during `npm test`.
The following dependencies have been added:
- execa
- fs-extra
- globby
I have taken extra care to preserve the exact format of the built file.
This means that the correctness of the refactoring can be verified by
simply diffing the build artifacts in `pkg` created with and without
this change.
エリス [Tue, 25 Jun 2019 02:18:34 +0000 (11:18 +0900)]
Add Node.js 12 to CI Services (#199)
Raphael von der Grün [Thu, 20 Jun 2019 19:29:59 +0000 (21:29 +0200)]
Document argscheck.checkArgs (#198)
Jan Piotrowski [Sat, 4 May 2019 16:38:09 +0000 (18:38 +0200)]
Improve README (#201)
- add title
- fix headline levels
- fix typo
- fix indentation
Raphael von der Grün [Thu, 2 May 2019 22:19:23 +0000 (00:19 +0200)]
Fix parsing of some parameter formats in argscheck.checkArgs (#200)
Raphael von der Grün [Mon, 29 Apr 2019 22:27:30 +0000 (00:27 +0200)]
Use .gitgnore as .eslintignore (#197)
Raphael von der Grün [Sun, 28 Apr 2019 20:37:47 +0000 (22:37 +0200)]
Allow to define modules whose name appears on `Object.prototype` (#196)
One of the CommonJS tests adopted in #195 exposed a defect in Cordova's module system:
When trying to define a module with a name that also is a property of Object.prototype, an exception would occur.
Raphael von der Grün [Sun, 28 Apr 2019 18:55:27 +0000 (20:55 +0200)]
Integrate unused CommonJS tests where applicable (#195)
There has been an unused copy of [The Official Specs for CommonJS][1]
lying around in our repository for who knows how long. They needed to be
built using a python script and then manually executed in a browser.
This commit integrates all of those tests that also apply to our module
system into our existing test suite for `require` & `define`.
Adds adapted versions of the following CommonJs tests to our
`test.require.js`:
absolute, transitive, determinism, method, nested, hasOwnProperty
The hasOwnProperty test actually uncovered a bug in our module system
implementation and thus is deactivated right now.
The following CommonJS tests were not applicable to Cordova's module
system since it does not support cyclic dependencies at all:
cyclic, monkeys
The following CommonJS tests were already covered by tests in
`test.require.js`:
- missing: covered by Test#005
- relative: covered by Test#012
- exactExports: covered by multiple tests
[1]: https://github.com/commonjs/commonjs
Raphael von der Grün [Sun, 28 Apr 2019 07:54:37 +0000 (09:54 +0200)]
Minor cleanup of require/define tests (#194)
* Remove Test#012 which duplicated Test#008
* Fix/Improve some test descriptions
* Reset modules after each require/define test
* Be more specific in Test#008 & Test#011
* Cosmetic changes
Raphael von der Grün [Sat, 27 Apr 2019 14:50:42 +0000 (16:50 +0200)]
Update README (#193)
* Remove outdated section about `contextify` from README
* Update test instructions
* Advocate `npx` instead of global `grunt-cli` installation
Darryl Pogue [Wed, 3 Apr 2019 17:52:40 +0000 (10:52 -0700)]
Merge pull request #192 from raphinesse/update-dependencies
Update dependencies & fix resulting ESLint violations
Raphael von der Grün [Wed, 3 Apr 2019 08:50:40 +0000 (10:50 +0200)]
Fix new ESLint object-curly-spacing violations
Raphael von der Grün [Wed, 3 Apr 2019 08:01:59 +0000 (10:01 +0200)]
Update dependencies
Raphael von der Grün [Wed, 3 Apr 2019 15:08:05 +0000 (17:08 +0200)]
Drop build/test support for Node.js 6 (#190)
Some npm packages, including some of our build/test dependencies have
begun dropping support for Node.js 6 in their latest versions. To
facilitate dependency updates, we remove support for Node.js 6 here.
This package is usually not built and tested on our user's machines,
but is instead bundled with the platforms by us. Thus, this change
should not be considered a breaking change.
Raphael von der Grün [Wed, 3 Apr 2019 14:23:48 +0000 (16:23 +0200)]
Lint (almost) all JS files (#191)
* Lint (almost) all commited JS files
* Fix all new ESLint violations
Raphael von der Grün [Wed, 3 Apr 2019 08:16:32 +0000 (10:16 +0200)]
Remove obsolete stuff from AppVeyor CI config (#189)
エリス [Fri, 22 Feb 2019 06:20:46 +0000 (15:20 +0900)]
Add Electron Support (#188)
Jan Piotrowski [Mon, 11 Feb 2019 17:37:29 +0000 (18:37 +0100)]
Add or update GitHub pull request and issue template
エリス [Thu, 20 Dec 2018 02:28:28 +0000 (11:28 +0900)]
GH-10 Incremented package version to -dev
エリス [Thu, 20 Dec 2018 01:48:16 +0000 (10:48 +0900)]
GH-10 Updated version and RELEASENOTES.md for release 5.0.0
Raphael von der Grün [Thu, 25 Oct 2018 08:29:32 +0000 (10:29 +0200)]
Merge pull request #176 from raphinesse/karma
Migrate tests to Jasmine 3 driven by Karma
Jan Piotrowski [Wed, 3 Oct 2018 23:24:21 +0000 (01:24 +0200)]
remove JIRA link
Raphael von der Grün [Fri, 28 Sep 2018 08:08:33 +0000 (10:08 +0200)]
Remove test & cover tasks + orphaned dependencies
Raphael von der Grün [Fri, 28 Sep 2018 08:08:32 +0000 (10:08 +0200)]
Run tests in browser using Karma
Raphael von der Grün [Fri, 28 Sep 2018 08:08:31 +0000 (10:08 +0200)]
Fix access to Cordova's define & require in tests
Raphael von der Grün [Wed, 19 Sep 2018 01:54:51 +0000 (03:54 +0200)]
Fix test cleanup to not break other tests
Raphael von der Grün [Wed, 19 Sep 2018 01:06:42 +0000 (03:06 +0200)]
Jasmine 3: Replace usage of Spec#after
Raphael von der Grün [Wed, 19 Sep 2018 00:49:59 +0000 (02:49 +0200)]
Jasmine 3: Replace usage of `waitsFor` and `runs`
audreyso [Thu, 29 Dec 2016 01:32:35 +0000 (17:32 -0800)]
Jasmine 3: Use Spy#calls to access call data
Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
audreyso [Thu, 29 Dec 2016 01:32:35 +0000 (17:32 -0800)]
Jasmine 3: Use Spy#and to access SpyStrategy
audreyso [Thu, 29 Dec 2016 01:32:35 +0000 (17:32 -0800)]
Jasmine 3: Use `toThrowError` to match error messages
Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
Raphael von der Grün [Wed, 19 Sep 2018 18:54:03 +0000 (20:54 +0200)]
Merge pull request #175 from raphinesse/remove-unused-stuff
Remove unused stuff
Raphael von der Grün [Wed, 19 Sep 2018 11:29:11 +0000 (13:29 +0200)]
Remove unused task whitespace-check
Raphael von der Grün [Wed, 19 Sep 2018 14:53:59 +0000 (16:53 +0200)]
Remove unused dependency `express`
Raphael von der Grün [Wed, 19 Sep 2018 11:39:00 +0000 (13:39 +0200)]
Remove unused jasmine suite template
Raphael von der Grün [Wed, 19 Sep 2018 11:20:57 +0000 (13:20 +0200)]
Remove unused util for drawing require-graph
Raphael von der Grün [Wed, 19 Sep 2018 01:24:49 +0000 (03:24 +0200)]
Remove unused module `modulereplacer`
Raphael von der Grün [Wed, 19 Sep 2018 11:36:23 +0000 (13:36 +0200)]
Remove unused vendor/jasmine folder
Raphael von der Grün [Wed, 19 Sep 2018 11:42:33 +0000 (13:42 +0200)]
Remove leftover JSHint stuff
Raphael von der Grün [Wed, 19 Sep 2018 11:58:03 +0000 (13:58 +0200)]
Remove support for deprecated platforms
Raphael von der Grün [Wed, 19 Sep 2018 14:59:21 +0000 (16:59 +0200)]
Add test labels from #140 that were missed in #172 (#174)
Chris Brody [Wed, 19 Sep 2018 09:55:44 +0000 (05:55 -0400)]
Remove task that depended on browserify (#173)
Chris Brody [Tue, 18 Sep 2018 17:39:50 +0000 (13:39 -0400)]
add test labels (GH-140) (#172)
Co-authored-by: audreyso <auso@adobe.com>
Co-authored-by: Christopher J. Brody <chris.brody@gmail.com>
Chris Brody [Tue, 18 Sep 2018 15:37:59 +0000 (11:37 -0400)]
Merge pull request #162 from brodybits/cb-remove-browserify
[CB-14156] Remove browserify
Raphael von der Grün [Tue, 18 Sep 2018 15:31:12 +0000 (11:31 -0400)]
Remove browserify instructions from README.md
Raphael von der Grün [Tue, 11 Sep 2018 21:07:30 +0000 (23:07 +0200)]
Remove module to write license header for browserify build
Christopher J. Brody [Thu, 21 Jun 2018 01:16:27 +0000 (21:16 -0400)]
Remove dependency on browserify
Christopher J. Brody [Thu, 21 Jun 2018 01:17:42 +0000 (21:17 -0400)]
Remove browserify sources src/**/*_b.js
Christopher J. Brody [Thu, 21 Jun 2018 19:15:56 +0000 (15:15 -0400)]
Remove browserify tasks tasks/**/*--browserify.js
Christopher J. Brody [Thu, 21 Jun 2018 01:15:36 +0000 (21:15 -0400)]
Remove browserify tasks from Gruntfile & scripts
Chris Brody [Tue, 18 Sep 2018 15:22:47 +0000 (11:22 -0400)]
Mark 5.0.0-dev (#170)
Needed since we did already drop Node.js 4 support and are planning to remove browserify
Darryl Pogue [Tue, 11 Sep 2018 14:05:07 +0000 (07:05 -0700)]
Merge pull request #168 from erisu/CB-14071
CB-14071: Drop Node 4 Support
エリス [Tue, 11 Sep 2018 08:15:49 +0000 (17:15 +0900)]
CB-14071: Drop Node 4 Support
Don Lampert [Fri, 6 Jul 2018 16:58:19 +0000 (11:58 -0500)]
readme fixes (#166)
* Add quote
* Fix spelling in readme
Christopher J. Brody [Fri, 22 Jun 2018 04:08:33 +0000 (00:08 -0400)]
CB-14152 Increment package version to 4.2.5-dev
Christopher J. Brody [Fri, 22 Jun 2018 03:51:40 +0000 (23:51 -0400)]
CB-14152 Update version, RELEASENOTES.md for 4.2.4
Christopher J. Brody [Thu, 21 Jun 2018 15:04:37 +0000 (11:04 -0400)]
CB-14155 fix btest part 2: export npm script
Followup to btest fix in PR #160
Nikhil Khandelwal [Tue, 14 Jul 2015 18:18:02 +0000 (11:18 -0700)]
CB-9366 Log error.stack ...
as it helps with diagnosing the source of the error
JavaScript fixed by @brodybits (Christopher J. Brody)
Fixes #118
Co-authored-by: Nikhil Khandelwal <nikhilkh@microsoft.com>
Co-authored-by: Christopher J. Brody <chris.brody@gmail.com>
Christopher J. Brody [Mon, 18 Jun 2018 21:29:16 +0000 (17:29 -0400)]
Fix btest by using express (instead of connect...)
THANKS for GUIDANCE:
https://medium.freecodecamp.org/getting-off-the-ground-with-expressjs-
89ada7ef4e59
Christopher J. Brody [Wed, 20 Jun 2018 16:24:12 +0000 (12:24 -0400)]
CB-14145: package.json use jasmine-node@^1.14.6
resolve npm audit issues
Christopher J. Brody [Wed, 20 Jun 2018 20:24:49 +0000 (16:24 -0400)]
CB-14145 drop open & other deps for broken btest
resolves some npm audit issues
Christopher J. Brody [Wed, 20 Jun 2018 16:21:36 +0000 (12:21 -0400)]
CI add Node.js 10
Christopher J. Brody [Sun, 17 Jun 2018 20:00:49 +0000 (16:00 -0400)]
appveyor.yml use npm@5
(QUICK FIX WORKAROUND for Node.js 4.x)
Christopher J. Brody [Mon, 18 Jun 2018 15:12:11 +0000 (11:12 -0400)]
Increment package version to 4.2.4-dev
Christopher J. Brody [Mon, 18 Jun 2018 11:59:11 +0000 (07:59 -0400)]
Update version & RELEASENOTES.md for release 4.2.3
Christopher J. Brody [Sun, 17 Jun 2018 18:35:41 +0000 (14:35 -0400)]
.travis.yml add spacing
Christopher J. Brody [Sun, 17 Jun 2018 18:58:44 +0000 (14:58 -0400)]
remove grunt jshint artifacts not needed
resolves some of the npm audit warnings
Audrey [Mon, 30 Oct 2017 23:06:58 +0000 (16:06 -0700)]
Merge pull request #150 from audreyso/CB-13501
CB-13501 : added support for node 8
Audrey So [Mon, 30 Oct 2017 17:27:04 +0000 (10:27 -0700)]
CB-13501 : added support for node 8
Steve Gill [Fri, 6 Oct 2017 22:28:29 +0000 (15:28 -0700)]
CB-13380 Incremented package version to -dev
Steve Gill [Thu, 5 Oct 2017 19:18:29 +0000 (12:18 -0700)]
CB-13380 Updated version and RELEASENOTES.md for release 4.2.2
Steve Gill [Wed, 4 Oct 2017 05:46:11 +0000 (22:46 -0700)]
updated browserify to 14.4.0
Audrey So [Fri, 3 Feb 2017 23:05:03 +0000 (15:05 -0800)]
CB-12017 : updated dependencies for browserify
This closes #141
Audrey So [Thu, 1 Jun 2017 18:27:41 +0000 (11:27 -0700)]
CB-12762 : point package.json repo items to github mirrors instead of apache repos
This closes #145
Audrey So [Mon, 25 Sep 2017 21:06:08 +0000 (14:06 -0700)]
CB-12895 : added eslint to repo
Steve Gill [Thu, 31 Aug 2017 00:47:09 +0000 (17:47 -0700)]
CB-13232: added test for cordova's unique local style require
This closes #148
Steve Gill [Fri, 25 Aug 2017 00:34:13 +0000 (17:34 -0700)]
Revert "CB-13163: fix using relative paths in calls to require."
This reverts commit
65fd0f61cca4d979e653ab5cf2dbc32b50416ba9.
filmaj [Wed, 23 Aug 2017 09:45:41 +0000 (11:45 +0200)]
CB-8990: bump nodejs requirement to 4.0.0+
filmaj [Thu, 10 Aug 2017 03:08:51 +0000 (20:08 -0700)]
CB-13163: fix using relative paths in calls to require.
filmaj [Thu, 25 May 2017 10:30:06 +0000 (12:30 +0200)]
CB-12847: fixed `bugs` entry in package.json.
filmaj [Wed, 24 May 2017 17:58:28 +0000 (19:58 +0200)]
CB-12847: added `bugs` entry to package.json.
Shazron Abdullah [Mon, 1 May 2017 23:11:28 +0000 (16:11 -0700)]
CB-12748 - Update CI to test node 4 and 6
This closes #142
Steve Gill [Wed, 18 Jan 2017 01:54:41 +0000 (17:54 -0800)]
CB-12358 Incremented package version to -dev
Steve Gill [Tue, 17 Jan 2017 23:33:04 +0000 (15:33 -0800)]
CB-12358 Updated version and RELEASENOTES.md for release 4.2.1
Steve Gill [Tue, 17 Jan 2017 21:00:12 +0000 (13:00 -0800)]
CB-12358: updated deps for release
Steve Gill [Sun, 23 Oct 2016 02:27:19 +0000 (19:27 -0700)]
CB-12039 Incremented package version to -dev
Steve Gill [Sat, 22 Oct 2016 18:15:26 +0000 (11:15 -0700)]
CB-12039 added license to package.json
Steve Gill [Sat, 22 Oct 2016 06:01:15 +0000 (23:01 -0700)]
CB-12039 Updated version and RELEASENOTES.md for release 4.2.0
Steve Gill [Fri, 14 Oct 2016 03:00:59 +0000 (20:00 -0700)]
CB-12017: updated dependencies in package.json
This closes #139
Shazron Abdullah [Wed, 12 Oct 2016 20:39:57 +0000 (13:39 -0700)]
Update connect dependency to 1.9.2 for node version incompatibility
Steve Gill [Fri, 7 Oct 2016 01:31:24 +0000 (18:31 -0700)]
this closes #136
Ray Shan [Sat, 19 Dec 2015 00:32:08 +0000 (16:32 -0800)]
Fix CB-3785
Enable support of EventListener interface for
Channel.prototype.subscribe / unsubscribe
This closes #130
Shazron Abdullah [Wed, 5 Oct 2016 05:01:57 +0000 (22:01 -0700)]
Add github pull request template