diff --git a/.circleci/config.yml b/.circleci/config.yml index 9e43dcdf..0df419fb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ workflows: matrix: parameters: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] - django-version: ["3.2", "4.0", "4.1", "4.2"] + django-version: ["3.2", "4.0", "4.1", "4.2", "5.0"] exclude: - python-version: "3.11" django-version: "3.2" @@ -81,7 +81,7 @@ jobs: coverall: docker: - - image: cimg/python:3.11-node + - image: cimg/python:3.12-node steps: - run: name: Finish Coveralls diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ab3beba..006a795a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ For more general information, view the [readme](README.md). Releases are added to the [github release page](https://github.com/ezhome/django-webpack-loader/releases). +## [3.0.0] -- 2023-12-19 + +- Fix support for `publicPath: auto` in Webpack config, check updated examples at https://github.com/django-webpack/django-webpack-loader/tree/master/examples +- Add support for Python 3.12 +- Add support for Django 5.0 + ## [2.0.1] -- 2023-06-14 - Add support for Django 4.2 diff --git a/LICENSE b/LICENSE index 00c63889..b2f8fc39 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 Owais Lone +Copyright (c) 2023 Vinta Software Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 06929762..216d9343 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ module.exports = { entry: "./assets/js/index", output: { path: path.resolve(__dirname, "assets/webpack_bundles/"), + publicPath: "auto", // necessary for CDNs/S3/blob storages filename: "[name]-[contenthash].js", }, plugins: [ @@ -178,6 +179,7 @@ module.exports = { output: { // Emit bundle files at "assets/webpack_bundles/": path: path.resolve(__dirname, "assets/webpack_bundles/"), + publicPath: "auto", // necessary for CDNs/S3/blob storages filename: "[name]-[contenthash].js", }, plugins: [ @@ -227,11 +229,11 @@ However, production usage for this package is **fairly flexible**, as the entire ### Hot reload -[Hot reload (Hot Module Replacement)](https://webpack.js.org/guides/hot-module-replacement/) is critical for a improving the development workflow. In case you wish to enable for your project, please check out [this example](https://github.com/django-webpack/django-webpack-loader/tree/master/examples/hot-reload), in particular how [webpack.config.js](https://github.com/django-webpack/django-webpack-loader/blob/master/examples/hot-reload/webpack.config.js) is configured. The key is to set the `devServer`. +[Hot reload (Hot Module Replacement)](https://webpack.js.org/guides/hot-module-replacement/) is critical for a improving the development workflow. In case you wish to enable for your project, please check out [this example](https://github.com/django-webpack/django-webpack-loader/tree/master/examples/hot-reload), in particular how [webpack.config.js](https://github.com/django-webpack/django-webpack-loader/blob/master/examples/hot-reload/webpack.config.js) is configured. The key is to set the `publicPath` and `devServer`. ### Dynamic Imports -In case you wish to use [Dynamic Imports](https://webpack.js.org/guides/code-splitting/#dynamic-imports), please check out [this example](https://github.com/django-webpack/django-webpack-loader/tree/master/examples/dynamic-imports), in particular how [webpack.config.js](https://github.com/django-webpack/django-webpack-loader/blob/master/examples/dynamic-imports/webpack.config.js) is configured. The key is to set the `publicPath`. +In case you wish to use [Dynamic Imports](https://webpack.js.org/guides/code-splitting/#dynamic-imports), please check out [this example](https://github.com/django-webpack/django-webpack-loader/tree/master/examples/dynamic-imports), in particular how [webpack.config.js](https://github.com/django-webpack/django-webpack-loader/blob/master/examples/dynamic-imports/webpack.config.js) is configured. ### Extra options for `webpack-bundle-tracker` @@ -469,8 +471,12 @@ To execute a command, run `make ` in the project's root directory. - `ENV`: The name of the virtual environment. (Default: `venv`) - `REPOSITORY`: The repository to publish the distribution packages to. (Default: `pypi`) +### Special Thanks + +Django Webpack Loader was originally created by [Owais Lone](https://github.com/owais) and received contributions from more than 50 developers since its inception, as well as many others who assisted with issues, comments, articles, talks, etc. Thanks for everyone who's been part of Django Webpack Loader community! + ## Commercial Support [![alt text](https://avatars2.githubusercontent.com/u/5529080?s=80&v=4 "Vinta Logo")](https://www.vinta.com.br/) -This project is maintained by [Vinta Software](https://www.vinta.com.br/) and is used in products of Vinta's clients. We are always looking for exciting work, so if you need any commercial support, feel free to get in touch: contact@vinta.com.br +This project is currently maintained by [Vinta Software](https://www.vinta.com.br/) and is used in products of Vinta's clients. We are always looking for exciting work, so if you need any commercial support, feel free to get in touch: contact@vinta.com.br diff --git a/examples/code-splitting/package-lock.json b/examples/code-splitting/package-lock.json index 1183fa07..dacdbeea 100644 --- a/examples/code-splitting/package-lock.json +++ b/examples/code-splitting/package-lock.json @@ -16,7 +16,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "webpack": "^5.88.2", - "webpack-bundle-tracker": "2.0.1", + "webpack-bundle-tracker": "3.0.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1" } @@ -35,12 +35,12 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", "dev": true, "dependencies": { - "@babel/highlight": "^7.22.13", + "@babel/highlight": "^7.23.4", "chalk": "^2.4.2" }, "engines": { @@ -87,12 +87,12 @@ } }, "node_modules/@babel/generator": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.15.tgz", - "integrity": "sha512-Zu9oWARBqeVOW0dZOjXc3JObrzuqothQ3y/n1kUtrjCoCPLkXUwMvOo/F/TCfoHMbWIFlWwpZtkZVb9ga4U2pA==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", + "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", "dev": true, "dependencies": { - "@babel/types": "^7.22.15", + "@babel/types": "^7.23.6", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" @@ -207,13 +207,13 @@ } }, "node_modules/@babel/helper-function-name": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", - "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dev": true, "dependencies": { - "@babel/template": "^7.22.5", - "@babel/types": "^7.22.5" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" }, "engines": { "node": ">=6.9.0" @@ -366,9 +366,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", "dev": true, "engines": { "node": ">=6.9.0" @@ -421,9 +421,9 @@ } }, "node_modules/@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.22.20", @@ -435,9 +435,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.22.16", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.16.tgz", - "integrity": "sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", + "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -1738,20 +1738,20 @@ } }, "node_modules/@babel/traverse": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.20.tgz", - "integrity": "sha512-eU260mPZbU7mZ0N+X10pxXhQFMGTeLb9eFS0mxehS8HZp9o1uSnFeWQuG1UPrlxgA7QoUzFhOnilHDp0AXCyHw==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.6.tgz", + "integrity": "sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.22.15", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.22.5", + "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.22.16", - "@babel/types": "^7.22.19", - "debug": "^4.1.0", + "@babel/parser": "^7.23.6", + "@babel/types": "^7.23.6", + "debug": "^4.3.1", "globals": "^11.1.0" }, "engines": { @@ -1759,13 +1759,13 @@ } }, "node_modules/@babel/types": { - "version": "7.22.19", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.19.tgz", - "integrity": "sha512-P7LAw/LbojPzkgp5oznjE6tQEIWbp4PkkfrZDINTro9zgBRtI324/EYsiSI7lhPbpIQ+DCeR2NNmMWANGGfZsg==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.19", + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, "engines": { @@ -5545,9 +5545,9 @@ } }, "node_modules/webpack-bundle-tracker": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/webpack-bundle-tracker/-/webpack-bundle-tracker-2.0.1.tgz", - "integrity": "sha512-BLPR98I+u/3sExW098tWzmKXeNyOQGMgbLg/eDwYgKKNohde93H2AMmSbRJv4NWn7Ltlryn7gP4XeAG5RP0vGg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-tracker/-/webpack-bundle-tracker-3.0.0.tgz", + "integrity": "sha512-D3b3KSlqKsu5dnlgGJSiZMv6QKW1hTTmygseIDJq+muFN+SW6XCp98yAMvUDCEDt9kgMdujL3jSJKDJetTTniQ==", "dev": true, "dependencies": { "lodash.assign": "^4.2.0", diff --git a/examples/code-splitting/package.json b/examples/code-splitting/package.json index 34420310..80ae3caa 100644 --- a/examples/code-splitting/package.json +++ b/examples/code-splitting/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "description": "", "main": "index.js", - "author": "Owais Lone", + "author": "Vinta Software", "license": "MIT", "devDependencies": { "@babel/core": "^7.22.20", @@ -13,7 +13,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "webpack": "^5.88.2", - "webpack-bundle-tracker": "2.0.1", + "webpack-bundle-tracker": "3.0.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1" } diff --git a/examples/code-splitting/webpack.config.js b/examples/code-splitting/webpack.config.js index 21f9faa8..ebae2f7d 100644 --- a/examples/code-splitting/webpack.config.js +++ b/examples/code-splitting/webpack.config.js @@ -9,6 +9,7 @@ module.exports = { }, output: { path: path.resolve(__dirname, "assets/webpack_bundles/"), + publicPath: "auto", filename: "[name]-[contenthash].js", }, diff --git a/examples/dynamic-imports/package-lock.json b/examples/dynamic-imports/package-lock.json index e7904b73..e231d3ee 100644 --- a/examples/dynamic-imports/package-lock.json +++ b/examples/dynamic-imports/package-lock.json @@ -19,7 +19,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "webpack": "^5.88.2", - "webpack-bundle-tracker": "2.0.1", + "webpack-bundle-tracker": "3.0.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1" } @@ -5553,9 +5553,9 @@ } }, "node_modules/webpack-bundle-tracker": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/webpack-bundle-tracker/-/webpack-bundle-tracker-2.0.1.tgz", - "integrity": "sha512-BLPR98I+u/3sExW098tWzmKXeNyOQGMgbLg/eDwYgKKNohde93H2AMmSbRJv4NWn7Ltlryn7gP4XeAG5RP0vGg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-tracker/-/webpack-bundle-tracker-3.0.0.tgz", + "integrity": "sha512-D3b3KSlqKsu5dnlgGJSiZMv6QKW1hTTmygseIDJq+muFN+SW6XCp98yAMvUDCEDt9kgMdujL3jSJKDJetTTniQ==", "dev": true, "dependencies": { "lodash.assign": "^4.2.0", diff --git a/examples/dynamic-imports/package.json b/examples/dynamic-imports/package.json index 50a8048f..bfbe63bc 100644 --- a/examples/dynamic-imports/package.json +++ b/examples/dynamic-imports/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "description": "", "main": "index.js", - "author": "Owais Lone", + "author": "Vinta Software", "license": "MIT", "devDependencies": { "@babel/core": "^7.22.20", @@ -13,7 +13,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "webpack": "^5.88.2", - "webpack-bundle-tracker": "2.0.1", + "webpack-bundle-tracker": "3.0.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1" }, diff --git a/examples/dynamic-imports/webpack.config.js b/examples/dynamic-imports/webpack.config.js index 8852a238..8cb3a728 100644 --- a/examples/dynamic-imports/webpack.config.js +++ b/examples/dynamic-imports/webpack.config.js @@ -13,7 +13,7 @@ module.exports = { // our chunk generated by the dynamic import from "/" instead of "/static/". // Remember to also add `os.path.join(BASE_DIR, "assets", "webpack_bundles")` to // STATICFILES_DIRS in Django settings: - publicPath: "/static/webpack_bundles/", + publicPath: "auto", // or "/static/webpack_bundles/", filename: "[name]-[contenthash].js", }, diff --git a/examples/hot-reload/package-lock.json b/examples/hot-reload/package-lock.json index 18609e9f..370784ee 100644 --- a/examples/hot-reload/package-lock.json +++ b/examples/hot-reload/package-lock.json @@ -18,7 +18,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "webpack": "^5.88.2", - "webpack-bundle-tracker": "2.0.1", + "webpack-bundle-tracker": "3.0.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1" } @@ -37,12 +37,12 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", "dev": true, "dependencies": { - "@babel/highlight": "^7.22.13", + "@babel/highlight": "^7.23.4", "chalk": "^2.4.2" }, "engines": { @@ -89,12 +89,12 @@ } }, "node_modules/@babel/generator": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.15.tgz", - "integrity": "sha512-Zu9oWARBqeVOW0dZOjXc3JObrzuqothQ3y/n1kUtrjCoCPLkXUwMvOo/F/TCfoHMbWIFlWwpZtkZVb9ga4U2pA==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", + "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", "dev": true, "dependencies": { - "@babel/types": "^7.22.15", + "@babel/types": "^7.23.6", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" @@ -209,13 +209,13 @@ } }, "node_modules/@babel/helper-function-name": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", - "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dev": true, "dependencies": { - "@babel/template": "^7.22.5", - "@babel/types": "^7.22.5" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" }, "engines": { "node": ">=6.9.0" @@ -368,9 +368,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", "dev": true, "engines": { "node": ">=6.9.0" @@ -423,9 +423,9 @@ } }, "node_modules/@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.22.20", @@ -437,9 +437,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.22.16", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.16.tgz", - "integrity": "sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", + "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -1740,20 +1740,20 @@ } }, "node_modules/@babel/traverse": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.20.tgz", - "integrity": "sha512-eU260mPZbU7mZ0N+X10pxXhQFMGTeLb9eFS0mxehS8HZp9o1uSnFeWQuG1UPrlxgA7QoUzFhOnilHDp0AXCyHw==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.6.tgz", + "integrity": "sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.22.15", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.22.5", + "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.22.16", - "@babel/types": "^7.22.19", - "debug": "^4.1.0", + "@babel/parser": "^7.23.6", + "@babel/types": "^7.23.6", + "debug": "^4.3.1", "globals": "^11.1.0" }, "engines": { @@ -1761,13 +1761,13 @@ } }, "node_modules/@babel/types": { - "version": "7.22.19", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.19.tgz", - "integrity": "sha512-P7LAw/LbojPzkgp5oznjE6tQEIWbp4PkkfrZDINTro9zgBRtI324/EYsiSI7lhPbpIQ+DCeR2NNmMWANGGfZsg==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.19", + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, "engines": { @@ -4315,9 +4315,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", "dev": true, "funding": [ { @@ -4594,9 +4594,9 @@ } }, "node_modules/postcss": { - "version": "8.4.30", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.30.tgz", - "integrity": "sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g==", + "version": "8.4.32", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.32.tgz", + "integrity": "sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==", "dev": true, "funding": [ { @@ -4613,7 +4613,7 @@ } ], "dependencies": { - "nanoid": "^3.3.6", + "nanoid": "^3.3.7", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" }, @@ -5782,9 +5782,9 @@ } }, "node_modules/webpack-bundle-tracker": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/webpack-bundle-tracker/-/webpack-bundle-tracker-2.0.1.tgz", - "integrity": "sha512-BLPR98I+u/3sExW098tWzmKXeNyOQGMgbLg/eDwYgKKNohde93H2AMmSbRJv4NWn7Ltlryn7gP4XeAG5RP0vGg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-tracker/-/webpack-bundle-tracker-3.0.0.tgz", + "integrity": "sha512-D3b3KSlqKsu5dnlgGJSiZMv6QKW1hTTmygseIDJq+muFN+SW6XCp98yAMvUDCEDt9kgMdujL3jSJKDJetTTniQ==", "dev": true, "dependencies": { "lodash.assign": "^4.2.0", diff --git a/examples/hot-reload/package.json b/examples/hot-reload/package.json index 0f30c5f1..06d2ad85 100644 --- a/examples/hot-reload/package.json +++ b/examples/hot-reload/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "description": "", "main": "index.js", - "author": "Owais Lone", + "author": "Vinta Software", "license": "MIT", "devDependencies": { "@babel/core": "^7.22.20", @@ -15,7 +15,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "webpack": "^5.88.2", - "webpack-bundle-tracker": "2.0.1", + "webpack-bundle-tracker": "3.0.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1" } diff --git a/examples/hot-reload/webpack.config.js b/examples/hot-reload/webpack.config.js index feb856b2..4bd31d2d 100644 --- a/examples/hot-reload/webpack.config.js +++ b/examples/hot-reload/webpack.config.js @@ -7,6 +7,8 @@ module.exports = { entry: "./assets/js/index", output: { path: path.resolve(__dirname, "assets/webpack_bundles/"), + // Cannot use publicPath: "auto" here because we need to specify the full URL, + // since we're serving the files with the Webpack devServer: publicPath: "http://localhost:3000/frontend/webpack_bundles/", filename: "[name]-[contenthash].js", }, diff --git a/examples/simple/package-lock.json b/examples/simple/package-lock.json index 18609e9f..370784ee 100644 --- a/examples/simple/package-lock.json +++ b/examples/simple/package-lock.json @@ -18,7 +18,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "webpack": "^5.88.2", - "webpack-bundle-tracker": "2.0.1", + "webpack-bundle-tracker": "3.0.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1" } @@ -37,12 +37,12 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", "dev": true, "dependencies": { - "@babel/highlight": "^7.22.13", + "@babel/highlight": "^7.23.4", "chalk": "^2.4.2" }, "engines": { @@ -89,12 +89,12 @@ } }, "node_modules/@babel/generator": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.15.tgz", - "integrity": "sha512-Zu9oWARBqeVOW0dZOjXc3JObrzuqothQ3y/n1kUtrjCoCPLkXUwMvOo/F/TCfoHMbWIFlWwpZtkZVb9ga4U2pA==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", + "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", "dev": true, "dependencies": { - "@babel/types": "^7.22.15", + "@babel/types": "^7.23.6", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" @@ -209,13 +209,13 @@ } }, "node_modules/@babel/helper-function-name": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", - "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dev": true, "dependencies": { - "@babel/template": "^7.22.5", - "@babel/types": "^7.22.5" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" }, "engines": { "node": ">=6.9.0" @@ -368,9 +368,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", "dev": true, "engines": { "node": ">=6.9.0" @@ -423,9 +423,9 @@ } }, "node_modules/@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.22.20", @@ -437,9 +437,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.22.16", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.16.tgz", - "integrity": "sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", + "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -1740,20 +1740,20 @@ } }, "node_modules/@babel/traverse": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.20.tgz", - "integrity": "sha512-eU260mPZbU7mZ0N+X10pxXhQFMGTeLb9eFS0mxehS8HZp9o1uSnFeWQuG1UPrlxgA7QoUzFhOnilHDp0AXCyHw==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.6.tgz", + "integrity": "sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.22.15", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.22.5", + "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.22.16", - "@babel/types": "^7.22.19", - "debug": "^4.1.0", + "@babel/parser": "^7.23.6", + "@babel/types": "^7.23.6", + "debug": "^4.3.1", "globals": "^11.1.0" }, "engines": { @@ -1761,13 +1761,13 @@ } }, "node_modules/@babel/types": { - "version": "7.22.19", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.19.tgz", - "integrity": "sha512-P7LAw/LbojPzkgp5oznjE6tQEIWbp4PkkfrZDINTro9zgBRtI324/EYsiSI7lhPbpIQ+DCeR2NNmMWANGGfZsg==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.19", + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, "engines": { @@ -4315,9 +4315,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", "dev": true, "funding": [ { @@ -4594,9 +4594,9 @@ } }, "node_modules/postcss": { - "version": "8.4.30", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.30.tgz", - "integrity": "sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g==", + "version": "8.4.32", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.32.tgz", + "integrity": "sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==", "dev": true, "funding": [ { @@ -4613,7 +4613,7 @@ } ], "dependencies": { - "nanoid": "^3.3.6", + "nanoid": "^3.3.7", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" }, @@ -5782,9 +5782,9 @@ } }, "node_modules/webpack-bundle-tracker": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/webpack-bundle-tracker/-/webpack-bundle-tracker-2.0.1.tgz", - "integrity": "sha512-BLPR98I+u/3sExW098tWzmKXeNyOQGMgbLg/eDwYgKKNohde93H2AMmSbRJv4NWn7Ltlryn7gP4XeAG5RP0vGg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-tracker/-/webpack-bundle-tracker-3.0.0.tgz", + "integrity": "sha512-D3b3KSlqKsu5dnlgGJSiZMv6QKW1hTTmygseIDJq+muFN+SW6XCp98yAMvUDCEDt9kgMdujL3jSJKDJetTTniQ==", "dev": true, "dependencies": { "lodash.assign": "^4.2.0", diff --git a/examples/simple/package.json b/examples/simple/package.json index 0f30c5f1..06d2ad85 100644 --- a/examples/simple/package.json +++ b/examples/simple/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "description": "", "main": "index.js", - "author": "Owais Lone", + "author": "Vinta Software", "license": "MIT", "devDependencies": { "@babel/core": "^7.22.20", @@ -15,7 +15,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "webpack": "^5.88.2", - "webpack-bundle-tracker": "2.0.1", + "webpack-bundle-tracker": "3.0.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1" } diff --git a/examples/simple/webpack.config.js b/examples/simple/webpack.config.js index 505070e0..dc33dfa4 100644 --- a/examples/simple/webpack.config.js +++ b/examples/simple/webpack.config.js @@ -7,6 +7,7 @@ module.exports = { entry: "./assets/js/index", output: { path: path.resolve(__dirname, "assets/webpack_bundles/"), + publicPath: "auto", filename: "[name]-[contenthash].js", }, diff --git a/setup.py b/setup.py index 54c4ff58..5fab641e 100644 --- a/setup.py +++ b/setup.py @@ -5,44 +5,51 @@ def rel(*parts): - '''returns the relative path to a file wrt to the current directory''' + """returns the relative path to a file wrt to the current directory""" return os.path.abspath(os.path.join(os.path.dirname(__file__), *parts)) -with open('README.md', 'r') as handler: - README = handler.read() -with open(rel('webpack_loader', '__init__.py')) as handler: - INIT_PY = handler.read() +with open("README.md", "r") as handler: + README = handler.read() + +with open(rel("webpack_loader", "__init__.py")) as handler: + INIT_PY = handler.read() VERSION = re.findall("__version__ = '([^']+)'", INIT_PY)[0] setup( - name = 'django-webpack-loader', - packages = ['webpack_loader', 'webpack_loader/templatetags', 'webpack_loader/contrib'], - version = VERSION, - license = "MIT License", - description = 'Transparently use webpack with django', - long_description=README, - long_description_content_type="text/markdown", - author = 'Owais Lone', - author_email = 'hello@owaislone.org', - download_url = 'https://github.com/django-webpack/django-webpack-loader/tarball/{0}'.format(VERSION), - url = 'https://github.com/django-webpack/django-webpack-loader', # use the URL to the github repo - keywords = ['django', 'webpack', 'assets'], # arbitrary keywords - classifiers = [ - 'Programming Language :: Python', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.12', - 'Framework :: Django', - 'Framework :: Django :: 3.2', - 'Framework :: Django :: 4.0', - 'Framework :: Django :: 4.1', - 'Framework :: Django :: 4.2', - 'Environment :: Web Environment', - 'License :: OSI Approved :: MIT License', - ], + name="django-webpack-loader", + packages=[ + "webpack_loader", + "webpack_loader/templatetags", + "webpack_loader/contrib", + ], + version=VERSION, + license="MIT License", + description="Transparently use webpack with django", + long_description=README, + long_description_content_type="text/markdown", + author="Vinta Software", + author_email="contact@vinta.com.br", + download_url="https://github.com/django-webpack/django-webpack-loader/tarball/{0}".format( + VERSION + ), + url="https://github.com/django-webpack/django-webpack-loader", # use the URL to the github repo + keywords=["django", "webpack", "assets"], # arbitrary keywords + classifiers=[ + "Programming Language :: Python", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Framework :: Django", + "Framework :: Django :: 3.2", + "Framework :: Django :: 4.0", + "Framework :: Django :: 4.1", + "Framework :: Django :: 4.2", + "Environment :: Web Environment", + "License :: OSI Approved :: MIT License", + ], ) diff --git a/tests/package-lock.json b/tests/package-lock.json index e16002a8..366b39fa 100644 --- a/tests/package-lock.json +++ b/tests/package-lock.json @@ -18,7 +18,7 @@ "mini-css-extract-plugin": "^0.9.0", "react": "^16.0.0", "webpack": "^4.0.0", - "webpack-bundle-tracker": "2.0.1", + "webpack-bundle-tracker": "3.0.0", "webpack-cli": "^3.3.10", "webpack-dev-server": "^3.0.0" } @@ -9235,9 +9235,9 @@ } }, "node_modules/webpack-bundle-tracker": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/webpack-bundle-tracker/-/webpack-bundle-tracker-2.0.1.tgz", - "integrity": "sha512-BLPR98I+u/3sExW098tWzmKXeNyOQGMgbLg/eDwYgKKNohde93H2AMmSbRJv4NWn7Ltlryn7gP4XeAG5RP0vGg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-tracker/-/webpack-bundle-tracker-3.0.0.tgz", + "integrity": "sha512-D3b3KSlqKsu5dnlgGJSiZMv6QKW1hTTmygseIDJq+muFN+SW6XCp98yAMvUDCEDt9kgMdujL3jSJKDJetTTniQ==", "dev": true, "dependencies": { "lodash.assign": "^4.2.0", diff --git a/tests/package.json b/tests/package.json index 181f63ef..e5f94d0c 100644 --- a/tests/package.json +++ b/tests/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "description": "", "main": "index.js", - "author": "Owais Lone", + "author": "Vinta Software", "license": "MIT", "devDependencies": { "@babel/core": "^7.9.6", @@ -15,7 +15,7 @@ "react": "^16.0.0", "webpack": "^4.0.0", "compression-webpack-plugin": "^6.1.1", - "webpack-bundle-tracker": "2.0.1", + "webpack-bundle-tracker": "3.0.0", "webpack-cli": "^3.3.10", "webpack-dev-server": "^3.0.0" } diff --git a/tests/tox.ini b/tests/tox.ini index bf0ea569..2bae9f05 100644 --- a/tests/tox.ini +++ b/tests/tox.ini @@ -4,7 +4,7 @@ skipsdist = True envlist = py{38,39,310}-django{32,40,41,42} py311-django{41,42} - py312-django42 + py312-django{42,50} py{310,311,312}-djangomain [testenv] @@ -22,6 +22,7 @@ deps = django40: django>=4.0,<4.1 django41: django>=4.1,<4.2 django42: django>=4.2,<4.3 + django50: django>=5.0,<5.1 djangomain: https://github.com/django/django/archive/main.zip commands = coverage run --source=webpack_loader manage.py test {posargs} diff --git a/webpack_loader/__init__.py b/webpack_loader/__init__.py index 6d6b1c71..73133ea7 100644 --- a/webpack_loader/__init__.py +++ b/webpack_loader/__init__.py @@ -1,5 +1,5 @@ -__author__ = 'Owais Lone' -__version__ = '2.0.1' +__author__ = "Vinta Software" +__version__ = "3.0.0" import django