Commit Graph

64 Commits

Author SHA1 Message Date
Luke Hagar
17aa9a3941 Merge pull request #14 from LukeHagar/add-mrmime 2025-10-18 22:57:36 -05:00
Luke Hagar
09ed4a8d3b Merge branch 'main' into add-mrmime 2025-10-18 22:57:24 -05:00
Luke Hagar
ffaf66ec91 Bump version to 1.0.7 in package.json 2025-10-07 23:56:14 -05:00
Luke Hagar
324f74ba05 Rename package title in README.md 2025-10-07 23:55:42 -05:00
Luke Hagar
cc40622a02 Update setupHandler.js 2025-10-07 23:53:43 -05:00
Luke Hagar
590e049930 Update MIME type handling for JavaScript files in tests 2025-09-02 15:16:24 +00:00
Luke Hagar
bb5b016a5e Refactor away from default import 2025-09-02 15:12:16 +00:00
Luke Hagar
470c642dd3 Added mrmime, implemented it 2025-09-02 15:08:54 +00:00
Luke Hagar
19e195bc98 Update dependencies and scripts in adapter-electron for improved functionality
- Added `nodemon` and `wait-on` as dependencies in the electron example's package.json for better development experience.
- Updated the `dev` script to utilize `wait-on` for ensuring the Vite server is running before starting Electron.
- Enhanced the README.md with clearer instructions and examples for configuring the adapter and its options.
- Removed the `functions` option from the TypeScript definition to simplify the interface.
- Cleaned up unused imports in setupHandler.js to streamline the code.
2025-07-23 23:24:00 -05:00
Luke Hagar
ef082c2acd Enhance README.md with structured sections for adapters
- Added a new section for Adapters with subsections for Appwrite and Electron adapters.
- Improved navigation by including links to examples and package details for each adapter.
- Clarified the descriptions for both Appwrite and Electron adapters to enhance user understanding.
2025-07-23 16:55:49 -05:00
Luke Hagar
da7e368a9a Merge pull request #12 from LukeHagar/swap-to-handler 2025-07-23 16:49:23 -05:00
Luke Hagar
197a2e3f1d Enhance README.md for adapter-electron with detailed features and integration notes
- Updated the description to highlight native protocol handling and Vite integration.
- Added key features of the adapter, including development integration and production readiness.
- Clarified example app usage and provided detailed setup instructions for better user guidance.
2025-07-23 16:48:35 -05:00
Luke Hagar
7174ad6c54 Update test workflow to check for main/index.cjs instead of main/index.js
- Modified the file existence check in the GitHub Actions workflow to validate the presence of main/index.cjs, reflecting recent changes in the build output structure.
2025-07-23 16:44:20 -05:00
Luke Hagar
76986d18eb Update protocol integration tests to validate HTTP request handling
- Modified tests to expect a 400 response with a clear message for unsupported HTTP requests instead of throwing an assertion error.
- Enhanced clarity in error handling for external HTTP requests in the protocol handler.
2025-07-23 16:43:15 -05:00
Luke Hagar
da48f2314b adjusted test 2025-07-23 16:40:28 -05:00
Luke Hagar
80fd315db5 Integrate @rollup/plugin-typescript into adapter-electron for TypeScript support
- Added @rollup/plugin-typescript as a dependency in package.json for TypeScript integration.
- Updated index.js to include typescript in the Rollup build process.
- Reflected the new dependency in pnpm-lock.yaml to ensure proper versioning and compatibility.
2025-07-23 16:38:42 -05:00
Luke Hagar
bb685e1328 Update dependencies in adapter-electron and pnpm-lock.yaml for improved compatibility
- Added @rollup/plugin-commonjs, @rollup/plugin-json, and @rollup/plugin-node-resolve as dependencies in package.json.
- Updated pnpm-lock.yaml to reflect the new dependencies and their versions.
- Removed unused import from index.js to streamline the code.
2025-07-23 16:29:16 -05:00
Luke Hagar
4d669414d2 Update pnpm-lock.yaml to remove duplicate electron dependency and maintain version consistency
- Removed duplicate electron entry from pnpm-lock.yaml to streamline dependency management.
- Ensured that the correct version specifications are maintained for other dependencies.
2025-07-23 16:27:33 -05:00
Luke Hagar
41f34e4de7 Update GitHub Actions workflow to install dependencies without frozen lockfile
- Modified the dependency installation step in the CI workflow to remove the frozen lockfile option, allowing for more flexibility during installations.
2025-07-23 16:24:22 -05:00
Luke Hagar
645ccf1109 Update pnpm-lock.yaml and package.json for dependency upgrades and workflow improvements
- Upgraded rollup to version 4.45.1 and turbo to version 2.5.5 in pnpm-lock.yaml.
- Modified GitHub Actions workflow to install dependencies without the frozen lockfile option for better flexibility.
- Updated package.json in adapter-electron to include rollup as a dependency and adjusted devDependencies for consistency.
2025-07-23 16:22:44 -05:00
Luke Hagar
2835a8847e Update package.json scripts in examples/electron to use pnpm for improved consistency and performance
- Replaced npm commands with pnpm in the dev and build scripts.
- Added a sync script to ensure proper synchronization before starting the development server or building the project.
2025-07-23 16:14:01 -05:00
Luke Hagar
baee9dced8 Update GitHub Actions workflows to use Node.js 22 and pnpm 10
- Replaced the Node.js setup step to use version 22 for improved compatibility.
- Updated pnpm version in both CI and test workflows to 10 for consistency and performance.
- Removed redundant pnpm installation step in the CI workflow.
2025-07-23 16:12:19 -05:00
Luke Hagar
59bcd5b3a7 Enhance error handling in setupHandler.js for improved robustness
- Replaced assertions with explicit error throwing for missing mainWindow and session.
- Updated protocol handler to return a 400 response for unsupported HTTP requests, enhancing security and clarity.
- Improved internal server error response formatting.
2025-07-23 16:00:31 -05:00
Luke Hagar
cfd43bac1c Refactor GitHub Actions workflow for clarity and consistency
- Renamed job from 'Run workspace tests' to 'run-workspace-tests' for consistency with naming conventions.
- Updated step name from 'Type check adapter-electron' to 'Run workspace tests' to better reflect its purpose.
2025-07-14 12:05:34 -05:00
Luke Hagar
73691e2b6a Refactor CI workflow and enhance protocol handler in adapter-electron
- Updated GitHub Actions workflow to streamline testing and type checking processes.
- Consolidated test steps and improved error handling for better clarity.
- Enhanced protocol handler functions in setupHandler.js to support additional features and security measures.
- Added new utility functions for file handling and path validation to improve robustness.
- Updated integration tests to cover new functionality and ensure proper request handling.
2025-07-14 11:50:31 -05:00
Luke Hagar
fef066e29e Update GitHub Actions workflow to use pnpm v4.1.0 and improve error handling in test scripts
- Upgraded pnpm action version in the CI workflow.
- Enhanced error messages for missing test and typecheck scripts in adapter-appwrite and examples.
- Cleaned up conditional checks for better readability.
2025-07-13 10:30:21 -05:00
Luke Hagar
26b1f98523 Remove unnecessary closing brace in examples/electron/src/main.ts 2025-07-13 02:10:11 -05:00
Luke Hagar
cd56593295 Merge branch 'swap-to-handler' of https://github.com/LukeHagar/sveltekit-adapters into swap-to-handler 2025-07-13 02:09:21 -05:00
Luke Hagar
90d204edf3 chore: Bump version to 1.0.6 and update package.json for adapter-electron
- Added placeholders.d.ts to the files list.
- Updated dependencies for electron and cookie.
- Introduced new scripts for testing and type checking.
- Adjusted devDependencies for compatibility with TypeScript and testing tools.
2025-07-13 02:09:19 -05:00
Luke Hagar
57d18fb369 Update examples/electron/src/routes/sverdle/+page.server.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-13 01:42:55 -05:00
Luke Hagar
ed51cca599 Update packages/adapter-electron/functions/setupHandler.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-13 01:42:22 -05:00
Luke Hagar
b6c91da2e3 Update packages/adapter-electron/functions/setupHandler.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-13 01:42:08 -05:00
Luke Hagar
9e4e3abc87 Update examples/electron/src/main.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-13 01:41:56 -05:00
Luke Hagar
3a1d7565b1 Update examples/electron/src/main.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-13 01:41:21 -05:00
Luke Hagar
196fc9d774 chore: Update package dependencies and configuration for Electron adapter
- Removed package manager and engines from package.json.
- Updated pnpm-lock.yaml to reflect new versions of dependencies.
- Modified pnpm-workspace.yaml to include only built dependencies for Electron.
- Adjusted electron-builder.yaml to exclude unnecessary files and added output directory.
- Deleted obsolete electron.vite.config.ts file.
- Updated main entry point in examples/electron/package.json to use CommonJS format.
- Refactored scripts in examples/electron/package.json for better development experience.
- Enhanced error handling and logging in game logic within examples/electron/src/routes/sverdle/+page.server.ts.
- Updated adapter-electron to support new protocol handling and build processes.
2025-07-12 23:45:12 -05:00
Luke Hagar
e2eda959b0 testing out a swap to a handler for electron 2025-07-03 13:50:39 -05:00
Luke Hagar
87c8ceb458 Merge pull request #11 from Karechta/main 2024-06-16 07:45:25 -05:00
Karechta
4f3fcf4157 chore: Update load function in adapter-electron to include optional path parameter 2024-06-16 05:42:39 +02:00
Luke Hagar
d0539519c4 Merge pull request #9 from LukeHagar/changeset-release/main
Version Packages
2024-03-11 12:15:17 -04:00
github-actions[bot]
cc911599ba Version Packages 2024-03-11 16:15:04 +00:00
Luke Hagar
1006c9fd3e Adjusted origin 2024-03-11 11:14:20 -05:00
Luke Hagar
5ed105bd09 Merge pull request #8 from LukeHagar/changeset-release/main
Version Packages
2024-03-05 14:51:19 -05:00
github-actions[bot]
da29585fdd Version Packages 2024-03-05 19:49:51 +00:00
Luke Hagar
0ab4be1104 Fixed exports 2024-03-05 13:48:32 -06:00
Luke Hagar
b38ecde2b9 Merge pull request #5 from LukeHagar/changeset-release/main
Version Packages
2024-02-23 11:31:16 -06:00
github-actions[bot]
a531c7d424 Version Packages 2024-02-23 17:27:44 +00:00
Luke Hagar
5c9c021a3a Blocking PR merged, updating readmes, and bumping package versions 2024-02-23 11:26:53 -06:00
Luke Hagar
df6aa2289a Updated readme 2024-02-20 14:55:26 -06:00
Luke Hagar
c86fff4a72 Merge pull request #4 from LukeHagar/changeset-release/main
Version Packages
2024-02-19 11:24:55 -06:00
github-actions[bot]
31701fd4e3 Version Packages 2024-02-19 17:23:15 +00:00