Skip to content

Commit

Permalink
4.0 Beta 2 (#578)
Browse files Browse the repository at this point in the history
- Removes jquery-ui dependency (replaced with SortableJS). No improvements to bundle size, but removes one more jQuery dependency
- Uses dynamic imports so the JS is now chunked
- Fixes a subtle versioning info that prevents PyPi from flagging beta releases
- Adds back support for Django 3.2 (no code changes required - simply added back to tox tests and setup.py)
- Fixes a few styling bugs
  • Loading branch information
chrisclark authored Feb 1, 2024
1 parent 304affd commit 18cb7d8
Show file tree
Hide file tree
Showing 13 changed files with 67 additions and 2,728 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/explorer/static/js/src/jquery-ui.js
/explorer/static/js/src/pivot.js
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Change Log
This document records all notable changes to `django-sql-explorer <https://github.com/chrisclark/django-sql-explorer>`_.
This project adheres to `Semantic Versioning <https://semver.org/>`_.

`4.0.0.beta1`_ (2024-01-31)
`4.0b2`_ (2024-02-01)
---------------------
* `#565`_: Front-end modernization. Code completion via CodeMirror 6. Bootstrap5. Vite-based build
* `#566`_: Django 5 support & tests
Expand Down
8 changes: 5 additions & 3 deletions docs/dependencies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ Name Version
- boto is required for snapshots
- xlsxwriter is required for Excel export (csv still works fine without it)

JavaScript
JavaScript & CSS
----------

Please see package.json for the full list of JavaScript dependencies.

Vite builds a single JS bundle for SQL Explorer. The bundle is larger than ideal, at ~600kb due primarily to CodeMirror and the pivot-table functionality (which, regrettably, requires jQuery UI for it's 'sortable' feature).
Vite builds the JS and CSS bundles for SQL Explorer.
The bundle for the SQL editor is fairly large at ~400kb, due primarily to CodeMirror. There is opportunity to reduce this by removing jQuery, which we hope to do in a future release.

The bundle is distributed in the PyPi release (and will be found by collectstatic) or can be built via `npm run build`.
The built front-end files are distributed in the PyPi release (and will be found by collectstatic). Instructions for building the front-end files are in :doc:`install.rst`.

Tests
-----
Expand Down
2 changes: 1 addition & 1 deletion explorer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"minor": 0,
"patch": 0,
"releaselevel": "beta",
"serial": 1
"serial": 2
}


Expand Down
Loading

0 comments on commit 18cb7d8

Please sign in to comment.