Skip to content

Commit bc9c0bc

Browse files
authored
Merge pull request #34 from pyodide/chore/update-pyodide-0.28.0
chore: update pyodide 0.28.0
2 parents 6a32da3 + 73e3aba commit bc9c0bc

18 files changed

+2229
-1436
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [18.x, 20.x]
15+
node-version: [22.x, 24.x]
1616

1717
steps:
1818
- uses: actions/checkout@v3

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To contribute code, see the following steps,
1111
`git clone https://github.com/<your-username>/pyodide-webpack-plugin.git`\
1212
and add the upstream remote,\
1313
`git remote add upstream https://github.com/pyodide/pyodide-webpack-plugin.git`
14-
3. Nodejs [18.x+](https://nodejs.org/en/)
14+
3. Nodejs [22.x or 24.x](https://nodejs.org/en/)
1515
4. Install requirements\
1616
`npm i`
1717
5. See Testing and benchmarking documentation.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ A Webpack plugin for integrating pyodide into your project.
66

77
> works with pyodide >=0.21.3
88
9+
For versions of Pyodide older than 0.28.0 please use @pyodide/pyodide-webpack-plugin@1.3.3 or older.
10+
911
## Getting Started
1012

1113
Install pyodide and @pyodide/webpack-plugin
@@ -46,7 +48,7 @@ async function main() {
4648
pyodide.runPython(`
4749
import sys
4850
sys.version
49-
`)
51+
`),
5052
);
5153
}
5254
main();

docs/changelog.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## Changelog
2+
3+
# [1.1.0] - 2023-11-01
4+
5+
### Added
6+
7+
Support for additional configurations.
8+
9+
### Changed
10+
11+
Refactored code for better readability.
12+
13+
### Fixed
14+
15+
Addressed issues reported by users.
16+
17+
# [1.0.1] - 2023-10-15
18+
19+
### Fixed
20+
21+
Minor bug fixes and performance improvements.
22+
23+
# [1.0.0] - 2023-10-01
24+
25+
### Added
26+
27+
Initial release of the pyodide-webpack-plugin.
28+
29+
### Changed
30+
31+
Documentation improvements.
32+
33+
### Fixed
34+
35+
Resolved issues with compatibility.
36+
37+
# [Unreleased]
38+
39+
### Added
40+
41+
New feature to enhance performance.
42+
43+
### Changed
44+
45+
Updated dependencies to the latest versions.
46+
47+
### Fixed
48+
49+
Bug fixes for improved stability.

eslint.config.mjs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import tseslint from "@typescript-eslint/eslint-plugin";
2+
import tsparser from "@typescript-eslint/parser";
3+
import prettierPlugin from "eslint-plugin-prettier";
4+
import prettierConfig from "eslint-config-prettier";
5+
6+
export default [
7+
{ ignores: ["node_modules/", "dist/"] },
8+
{
9+
files: ["**/*.{ts, js}"],
10+
languageOptions: {
11+
parser: tsparser,
12+
sourceType: "module",
13+
globals: {
14+
describe: "readonly",
15+
beforeEach: "readonly",
16+
afterEach: "readonly",
17+
it: "readonly",
18+
},
19+
},
20+
21+
plugins: {
22+
"@typescript-eslint": tseslint,
23+
prettier: prettierPlugin,
24+
},
25+
26+
rules: {
27+
...tseslint.configs.recommended.rules,
28+
...prettierConfig.rules,
29+
"no-constant-condition": 0,
30+
"@typescript-eslint/no-var-requires": 0,
31+
"@typescript-eslint/no-unused-vars": [
32+
"warn",
33+
{
34+
argsIgnorePattern: "^_{1,}$",
35+
varsIgnorePattern: "^_{1,}$",
36+
caughtErrorsIgnorePattern: "^_{1,}$",
37+
},
38+
],
39+
"@typescript-eslint/ban-ts-comment": 0,
40+
},
41+
},
42+
];

examples/commonjs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function main() {
1010
pyodide.runPython(`
1111
import sys
1212
sys.version
13-
`)
13+
`),
1414
);
1515
}
1616
main();

examples/commonjs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"author": "",
1111
"license": "ISC",
1212
"devDependencies": {
13-
"@pyodide/webpack-plugin": "^1.3.1",
13+
"@pyodide/webpack-plugin": "^1.2.0",
1414
"html-webpack-plugin": "^5.5.3",
15-
"webpack": "5.88.x",
15+
"webpack": "^5.101.3",
1616
"webpack-cli": "^5.1.4",
17-
"webpack-dev-server": "4.14.x"
17+
"webpack-dev-server": "^5.2.2"
1818
},
1919
"dependencies": {
20-
"pyodide": "^0.24.1"
20+
"pyodide": "^0.28.0"
2121
},
2222
"description": ""
2323
}

examples/esm/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export async function main() {
1010
pyodide.runPython(`
1111
import sys
1212
sys.version
13-
`)
13+
`),
1414
);
1515
}
1616
main();

0 commit comments

Comments
 (0)