Commit Graph

29 Commits

Author SHA1 Message Date
Gyeongjae Choi a11f72e145
Simplify the version bump process (#2587) 2022-05-30 10:26:40 +09:00
Hood Chatham 50af355e8c
Rename 'build' directory to 'dist' (#2387)
dist is both more accurate (the 'build' directory is normally where you do the build,
and normally consists of intermediate build artifacts no one cares about). dist also
occurs less frequently in the code base: after this change \bbuild\b has 466 matches,
whereas \bdist\b has 101 matches. build has 1072 matches whereas dist has 362.
2022-04-11 16:01:40 -07:00
Hood Chatham 952d9092a9 v0.21.0dev0 2022-04-09 13:50:07 -07:00
Hood Chatham 7a9273dd6c v0.20.0 2022-04-09 13:44:32 -07:00
Hood Chatham 7f908beb4c
ENH Calculate indexURL from error stack trace (#2292)
If no indexURL is provided, we throw and catch an error and
then use ErrorStackParser to calculate where pyodide.js has
been loaded from. Resolves #2290.

Question: But getting the URL from error stack trace is well... really
hacky. Can't we use
[`document.currentScript`](https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript)
or
[`import.meta.url`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import.meta)
instead?
Answer: `document.currentScript` works for the browser main thread.
`import.meta` works for es6 modules. In a classic webworker, I think there
is no approach that works. Also we would need some third approach for node
when loading a commonjs module using `require`. On the other hand, this
stack trace approach works for every case without any feature detection
code.
2022-03-20 22:44:54 -07:00
Hood Chatham cd1971ca0f Revert "Version 0.19.0 (#2099)"
This reverts commit 276d396fff.
2022-01-10 15:48:30 -08:00
Hood Chatham 276d396fff
Version 0.19.0 (#2099) 2022-01-10 15:17:53 -08:00
Hood Chatham 1f4f3e2b85
MAINT Apply prettier to everything by default (#2095) 2022-01-10 13:47:59 -08:00
Liumeo b6b1191fd5
DOC Fix web worker api doc with concurrent Promises [skip ci] (#1998) 2021-11-28 15:23:11 +01:00
Roman Yurchak 20d760ea7c
Typo and grammar fixes (#1959) 2021-11-14 21:47:49 +01:00
Grimmer 89682dabfe
DOC Replace "Javascript" with "JavaScript" in documents and comments [skip ci] (#1860) 2021-09-29 10:01:53 +02:00
etienne 822194c3c9
DOCS Fix typo in webworker example (#1794) 2021-08-14 19:52:26 +02:00
Roman Yurchak 2e7ccfc23d
Bump main to 0.19.0dev0 [skip ci] (#1786) 2021-08-11 12:16:48 +02:00
Hood Chatham 250c48038b
Release 0.18.0 (#1775) 2021-08-03 21:34:14 +02:00
Teon L Brooks cd3c052ee6
Update webworker.md (#1755) [skip ci] 2021-07-29 04:50:16 +02:00
Hood Chatham 6074ca26ca
Some edits to the documentation (#1751) 2021-07-27 06:31:59 +02:00
Hood Chatham ef88ceeb5d
Run prettier to format documentation source files [skip ci] (#1752) 2021-07-27 01:00:27 +02:00
Hood Chatham 962140981a
API Don't expose pyodide as a global variable in loadPyodide (#1597) 2021-05-22 18:54:27 -07:00
Hood Chatham ffa99153cc
API Remove loadPackagesFromImports from runPythonAsync (#1538) 2021-04-28 08:47:00 +02:00
Roman Yurchak 5a8e235489
Bump main to 0.18.0dev0 (#1523) 2021-04-21 23:19:37 +02:00
Roman Yurchak c49dd7ad5f
Version 0.17.0 (#1515) 2021-04-21 21:51:28 +02:00
Roman Yurchak cae11abf78
DOC Make dev documentation consistent + version warnings (#1479)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2021-04-17 19:18:52 +02:00
Hood Chatham 7716755d0e
DOCS Update readme, index and about page, edits to usage docs (#1420) 2021-04-07 00:11:00 +02:00
Hood Chatham 150c1f6b45
API Add "loadPyodide" function (#1363)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-04-01 00:43:46 +02:00
Roman Yurchak afb522ed59
Release 0.17.0a2 (#1356) 2021-03-21 19:03:09 +01:00
Mireille Raad 4a770ffb0c
DOC update docs/usage/webworker (#1298)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2021-03-03 19:03:43 +01:00
Hood Chatham f8bb138fa7
DOC Normalize capitalization of Python, Pyodide, and Javascript (#1297) 2021-03-03 09:11:50 +01:00
wojsam c8fb97723d
DOC Update webworker.md (#1270) 2021-02-21 11:22:54 +01:00
Hood Chatham dbc60a8abf
DOCS: Move docs into three subfolders based on top level sections (#1149) 2021-01-18 20:56:47 +01:00