mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
* fix: update mise to 2026.5.11 * test: update snapshots * chore: update mise upgrade task to run locally Use the --local flag for the mise upgrade task to ensure consistency with local environment configurations during dependency updates. Generated-by: aiautocommit * chore: update go, mise, and bun packages * chore: update go, mise, and bun packages * chore: update mise to 2026.5.15 - Update build plan snapshots to use mise version 2026.5.15 across all test examples. Generated-by: aiautocommit * chore: update mise to 2026.5.15 Generated-by: aiautocommit * chore: ignore .antigravitycli directory Generated-by: aiautocommit * chore: update mise 2026.5.11 Generated-by: aiautocommit * chore: update better-sqlite3 dependency version Generated-by: aiautocommit * feat(test): add example for testing npm native dependencies with node-lts Generated-by: aiautocommit * fix: do not run rdoc when compiling ruby this fixes a locale issue which causes the build to fail * chore: update python version in examples to 3.13.3 no GH attestations for 3.13.1 Generated-by: aiautocommit * chore: bump better-sqlite3 in examples Generated-by: aiautocommit * chore(node): update pnpm path to include bin directory Generated-by: aiautocommit * chore: update railpack-builder and runtime to mise 2026.5.16 Generated-by: aiautocommit * chore: bump mise version to 2026.5.16 Generated-by: aiautocommit * chore: update mise to 2026.5.16 - Update mise CLI command structure for improved task execution. - Includes upstream bug fixes and stability improvements. Generated-by: aiautocommit * feat(node): update pnpm path layout for version 11+ - Adjust the pnpm binary path detection to account for changes in pnpm v11, which uses a /pnpm/bin directory layout. - Introduce version checking to ensure backward compatibility for older pnpm versions. - Add unit tests to verify path resolution for various version scenarios. Generated-by: aiautocommit * chore(node): update pnpm home paths and versioning logic Generated-by: aiautocommit * chore: update python-freethreaded example configuration Generated-by: aiautocommit * feat: add mise-builder-shell task - Adds a new task to facilitate debugging by spawning a shell inside the published builder container image. Generated-by: aiautocommit * test(python): fix fasthtml example I have no idea why this wasn't caught before... * chore: update mise configuration to 2026.5.16 - Set MISE_MINIMUM_RELEASE_AGE to match the builder default. - Correct the mise setting key from `install_before` to `minimum_release_age`. Generated-by: aiautocommit * chore: ensure uv is installed when using pipx.uvx in mise Generated-by: aiautocommit * chore: update mise 2026.5.16 - Sync environment variables from the Elixir provider to the mise installation step to ensure installation consistency. Generated-by: aiautocommit * feat(node): prioritize mise-managed package manager versions - Allow mise to override inferred package manager versions for pnpm, bun, and yarn. - Ensure consistent version resolution between Railpack and user-defined mise environment settings. - Update node provider logic to correctly identify and use package manager tool names from mise. Generated-by: aiautocommit * chore: update test configuration for pnpm 11 compatibility - Enable stderr allowance in tests to accommodate pnpm 11 command logging behavior. Generated-by: aiautocommit * chore: update example env configuration for mise compatibility - Replace python3-venv with dnsutils for build-time apt testing. - Add python to RAILPACK_PACKAGES to ensure pipx and other requirements function correctly within the mise environment. - Update build and start commands to verify the availability of the new packages and validate expected scoping. Generated-by: aiautocommit * chore: update test snapshots for mise 2026.5.16 - Update snapshot files to reflect changes in build plan generation, including the addition of `uv` to Python environments, corrected pathing for pnpm, and updated environment variables for Elixir configurations. - Reflect renaming of `install_before` to `minimum_release_age` in configuration settings. Generated-by: aiautocommit
34 lines
1.0 KiB
JavaScript
34 lines
1.0 KiB
JavaScript
const Database = require('better-sqlite3');
|
|
const bcrypt = require('bcrypt');
|
|
|
|
console.log('Node version:', process.version);
|
|
console.log('Testing better-sqlite3 and bcrypt (native modules)...');
|
|
|
|
// Create an in-memory database
|
|
const db = new Database(':memory:');
|
|
|
|
// Create a simple table
|
|
db.exec('CREATE TABLE test (id INTEGER PRIMARY KEY, name TEXT)');
|
|
|
|
// Insert some data
|
|
const insert = db.prepare('INSERT INTO test (name) VALUES (?)');
|
|
insert.run('npm');
|
|
insert.run('node-gyp');
|
|
|
|
// Query the data
|
|
const rows = db.prepare('SELECT * FROM test').all();
|
|
|
|
console.log('Database test successful!');
|
|
console.log('Rows:', rows);
|
|
|
|
db.close();
|
|
|
|
console.log('Testing bcrypt (native module)...');
|
|
const saltRounds = 10;
|
|
const hash = bcrypt.hashSync('npm-native-deps', saltRounds);
|
|
const match = bcrypt.compareSync('npm-native-deps', hash);
|
|
console.log('Bcrypt hash generated:', hash.substring(0, 20) + '...');
|
|
console.log('Bcrypt compare result:', match);
|
|
|
|
console.log('✓ better-sqlite3 and bcrypt native modules working correctly with npm');
|