Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0e5ed5

Browse files
committed
Released v5.0.0
1 parent 48d6bfe commit f0e5ed5

6 files changed

Lines changed: 13 additions & 26 deletions

File tree

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# History
22

3-
## not yet released, version 5.0.0
3+
## 2018-06-16, version 5.0.0
44

55
!!! BE CAREFUL: BREAKING CHANGES !!!
66

misc/how_to_publish.md

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Update the date and version number in the file HISTORY.md. Verify whether all
1414
changes in the new version are described.
1515

1616

17-
## Build library
17+
## Build and test
1818

19-
Build the distribution files ./dist/math.js and ./dist/math.min.js by running:
19+
Build the distribution files in folders `dist` and `lib`, and test everything by running:
2020

21-
npm run build
21+
npm run build-and-test
2222

2323
After the build is complete, verify if the files are created and contain the
2424
correct date and version number in the header.
@@ -27,20 +27,6 @@ Check whether there are new markdown files generated in `./docs` and add if
2727
so add them to git.
2828

2929

30-
## Test
31-
32-
Test whether the library works correctly by running the tests:
33-
34-
npm test
35-
36-
Test whether the npm library is ok by installing it locally:
37-
38-
cd ../tmp-folder
39-
npm install ../mathjs
40-
41-
Check whether the library works and looks ok.
42-
43-
4430
## Commit
4531

4632
- Commit the final code.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mathjs",
3-
"version": "4.4.2",
3+
"version": "5.0.0",
44
"description": "Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices.",
55
"author": "Jos de Jong <[email protected]> (https://github.com/josdejong)",
66
"contributors": [
@@ -158,7 +158,7 @@
158158
],
159159
"scripts": {
160160
"build": "gulp",
161-
"build-and-test": "npm run build && npm run test:dist",
161+
"build-and-test": "npm run build && npm run test:src && npm run test:dist && npm run lint",
162162
"compile": "gulp compile",
163163
"watch": "gulp watch",
164164
"docs": "gulp docs",
@@ -169,7 +169,7 @@
169169
"test:browser": "karma start ./browser-test-config/local-karma.js",
170170
"test:browserstack": "karma start ./browser-test-config/browserstack-karma.js",
171171
"coverage": "nyc --reporter=lcov --reporter=text-summary mocha test test-node --recursive --require babel-core/register; echo \"\nDetailed coverage report is available at ./coverage/lcov-report/index.html\"",
172-
"prepublishOnly": "npm test && npm run build-and-test"
172+
"prepublishOnly": "npm run build-and-test"
173173
},
174174
"bin": {
175175
"mathjs": "./bin/cli.js"

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = '4.4.2'
1+
module.exports = '5.0.0'
22
// Note: This file is automatically generated when building math.js.
33
// Changes made in this file will be overwritten.

test-dist/lib.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ describe('lib', function () {
66
const math = require('../lib/main')
77

88
assert.equal(math.add(2, 3), 5)
9+
})
10+
11+
it('should have the correct version number', function () {
12+
const math = require('../lib/main')
13+
914
assert.equal(math.version, version)
1015
})
1116
})

test/constants.test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,6 @@ describe('constants', function () {
139139
assert.strictEqual(math['null'], null)
140140
})
141141

142-
it('should have version number', function () {
143-
assert.equal(math.version, require('../package.json').version)
144-
})
145-
146142
it('should return message when uninitialized', function () {
147143
assert.equal(math.uninitialized, 'Error: Constant uninitialized is removed since v4.0.0. Use null instead')
148144
})

0 commit comments

Comments
 (0)