Skip to content

Commit 49db078

Browse files
authored
Merge pull request #974 from mathjax/v4.0-beta.3
Update version to beta.3
2 parents 6331c82 + 5de5ce0 commit 49db078

File tree

15 files changed

+36
-26
lines changed

15 files changed

+36
-26
lines changed

components/mjs/node-main/node-main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ if (path.basename(dir) === 'node-main') {
5858
return REQUIRE(name.charAt(0) === '.' ? path.resolve(ROOT, name) :
5959
name.charAt(0) === '[' ? Package.resolvePath(name) : name);
6060
};
61+
} else {
62+
CONFIG.paths.mathjax = dir;
6163
}
6264

6365
/*

components/root-pack.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//
2+
// Do what __dirname does in webpack
3+
//
4+
export const esRoot = () => '/';

components/webpack.common.cjs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,16 @@ function fullPath(resource) {
6666
*/
6767
const PLUGINS = function (js, dir, target, font, jax, name) {
6868
//
69-
// Replace a11y/util with the webpack version
69+
// Replace a11y/util and components/mjs/root with the webpack versions
7070
//
7171
const plugins = [
7272
new webpack.NormalModuleReplacementPlugin(
7373
/components\/[cm]js\/a11y\/util\.js/,
7474
'./util-pack.js'
75+
),
76+
new webpack.NormalModuleReplacementPlugin(
77+
/mjs\/components\/mjs\/root\.js/,
78+
'../../../components/root-pack.js'
7579
)
7680
];
7781

@@ -185,7 +189,7 @@ const RESOLVE = function (js, dir, target, libs) {
185189
// The resolve object to use
186190
//
187191
return {
188-
plugins: [new ResolveReplacementPlugin()],
192+
plugins: [new ResolveReplacementPlugin()]
189193
};
190194
}
191195

@@ -197,10 +201,12 @@ const RESOLVE = function (js, dir, target, libs) {
197201
* @param {{
198202
* name: string, // The name of the component to create
199203
* js: string, // The path to the compiled .js files (default is mathjax js directory)
204+
* target: string, // 'mjs' or 'cjs' (defaults to 'mjs')
205+
* bundle: string, // name of sub-directory where packed files go (defaults to 'bundle')
200206
* libs: string[], // Array of paths to component lib directories to link against
201207
* dir: string, // The directory of the component being built
202208
* dist: string, // The path to the directory where the component .js file will be placed
203-
* (defaults to es5 or es6 in the same directory as the js directory)
209+
* (defaults to the bundle directory in the same directory as the js directory)
204210
* font: boolean, // false to replace default font with no font
205211
* jax: string, // the jax whose default font should be redirected
206212
* }} options

components/webpack.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*************************************************************
22
*
3-
* Copyright (c) 2023-2023 The MathJax Consortium
3+
* Copyright (c) 2023 The MathJax Consortium
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

components/webpack.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*************************************************************
22
*
3-
* Copyright (c) 2023-2023 The MathJax Consortium
3+
* Copyright (c) 2023 The MathJax Consortium
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

package-lock.json

Lines changed: 8 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mathjax-full",
3-
"version": "4.0.0-beta.2",
3+
"version": "4.0.0-beta.3",
44
"description": "Beautiful and accessible math in all browsers. MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all browsers and in server-side node applications. This package includes the source code as well as the packaged components.",
55
"keywords": [
66
"MathJax",
@@ -134,7 +134,7 @@
134134
"webpack-cli": "^5.1.1"
135135
},
136136
"dependencies": {
137-
"mathjax-modern-font": "^4.0.0-beta.1",
137+
"mathjax-modern-font": "^4.0.0-beta.3",
138138
"mhchemparser": "^4.2.1",
139139
"mj-context-menu": "^0.9.1",
140140
"speech-rule-engine": "^4.1.0-beta.7"

ts/components/cjs/root.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*************************************************************
22
*
3-
* Copyright (c) 2023-2023 The MathJax Consortium
3+
* Copyright (c) 2023 The MathJax Consortium
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

ts/components/mjs/root.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*************************************************************
22
*
3-
* Copyright (c) 2023-2023 The MathJax Consortium
3+
* Copyright (c) 2023 The MathJax Consortium
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

ts/components/version.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*************************************************************
22
*
3-
* Copyright (c) 2022-2023 The MathJax Consortium
3+
* Copyright (c) 2023 The MathJax Consortium
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -22,4 +22,4 @@
2222
* @author [email protected] (Davide Cervone)
2323
*/
2424

25-
export const VERSION = '4.0.0-beta.1';
25+
export const VERSION = '4.0.0-beta.3';

ts/input/mathml/mml3/cjs/xsltFilename.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*************************************************************
22
*
3-
* Copyright (c) 2023-2023 The MathJax Consortium
3+
* Copyright (c) 2023 The MathJax Consortium
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

ts/input/mathml/mml3/mjs/xsltFilename.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*************************************************************
22
*
3-
* Copyright (c) 2023-2023 The MathJax Consortium
3+
* Copyright (c) 2023 The MathJax Consortium
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

ts/output/svg/Wrappers/zero.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*************************************************************
22
*
3-
* Copyright (c) 2023-2023 The MathJax Consortium
3+
* Copyright (c) 2023 The MathJax Consortium
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

ts/ui/menu/mj-context-menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*************************************************************
22
*
3-
* Copyright (c) 2023-2023 The MathJax Consortium
3+
* Copyright (c) 2023 The MathJax Consortium
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

ts/util/asyncLoad/esm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*************************************************************
22
*
3-
* Copyright (c) 2023-2023 The MathJax Consortium
3+
* Copyright (c) 2023 The MathJax Consortium
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)