Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | fix: Do not access localStorage in service-preload | 2022-02-08 | |
| | | | | | | | | | | | | loglevel wants to persist the current log level in localStorage, which apparently crashes the network service. We'll need to find another way to log in service preload scripts. The main window preload scripts seems unaffected, even though we use loglevel (and hence localStorage) in both the preload and the renderer script. Maybe related: https://github.com/electron/electron/issues/31689 Signed-off-by: Kristóf Marussy <kristof@marussy.com> | ||
* | chore(deps): update electron to version 17.0.0 | 2022-02-08 | |
| | |||
* | Upgrade 'electron' to '16.0.7' | 2022-01-12 | |
| | |||
* | build: Eslint fixes for multi-module project | 2022-01-09 | |
| | | | | Signed-off-by: Kristóf Marussy <kristof@marussy.com> | ||
* | Upgrade 'electron' to '16.0.6' | 2022-01-04 | |
| | |||
* | build: Fully switch over to ESM | 2021-12-30 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Now we can run with ESM at build and test time and transpile into commonjs for electron. This greatly simplifies testing, since we treat everything as ESM during build with esbuild anyways. Now the test environment and the build scripts match the apparent (but not the actual for the main, preload, and inject modules) runtime environment. Caveats: - We may use top-level async expressions in tests and script, but not in code that gets transpiled into commonjs or scripts that get imported by vite. The limitation w.r.t. commonjs seems fundamental. - Jest only experimentally supports ESM and there are some limitations with mocking. Most limitations (except the lack of automatic mocks) can be worked around by async importing code that uses mocks. - There are packages marked as modules (so that node reads any scripts in them as ESM) that nevertheless get transpiled into commonjs modules. However, these should be clearly marked by using a .cjs extension as their bundle. The worst offender is the root package, which has a .cjs as its main entry point that gets read by electron, but is in fact marked as a module. This doesn't seem to bother electron at all. The service-inject package is an IIFE with a .js extension, but it outputs a fully self-contained bundle, so the choice of module format should be irrelevant. | ||
* | build: Simplify clean script | 2021-12-30 | |
| | |||
* | build: Switch to esbuild | 2021-12-30 | |
| | | | | | | | | | | We will build all packages except the frontend (where vite remains in use) with esbuild. For some reason, the @yarnpkg/esbuild-plugin-pnp doesn't allow esbuild to load esm modules and we fall back to commonjs for dependencies. Hence we had to switch back to node_modules (but still rely on yarn hardlinking for a more efficient install). | ||
* | build: Disable typechecking for tests | 2021-12-28 | |
| | |||
* | build: Simplify type declaration generation | 2021-12-28 | |
| | |||
* | chore: Bump dependency versions | 2021-12-27 | |
| | |||
* | feat: User agent data simulator | 2021-12-24 | |
| | |||
* | feat: Service to main process communication | 2021-12-24 | |