{"_id":"@andrewtest/swc_downgrade","_rev":"1-a2b6c4119a552c782ee17ffb89ab8b4f","name":"@andrewtest/swc_downgrade","description":"glass swc plugin","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.5":{"name":"@andrewtest/swc_downgrade","version":"1.0.5","keywords":[],"license":"Apache-2.0","_id":"@andrewtest/swc_downgrade@1.0.5","maintainers":[{"name":"andrewpareles","email":"andrewpareles@gmail.com"}],"dist":{"shasum":"66e411f4f82ee39c133bc1030f3b1e0eae50c7e2","tarball":"https://registry.npmjs.org/@andrewtest/swc_downgrade/-/swc_downgrade-1.0.5.tgz","fileCount":6,"integrity":"sha512-aDSWgeWeQpqEvBNL/Vpdda6EOGzzfuwP2B7VuyncEECX0yquMha1Boe2Id2y907yb6Q4/SlEuFGfwdRqVMKC3Q==","signatures":[{"sig":"MEQCIAV3w6K3fJQeDEh4lakrKlW+dtx/2YlUxoRnxJGCfj+rAiBB4RpXaK8YkXeAIBia1zECPPjsduFJ0ChZt/1Yvl34AA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3876948},"main":"glass_swc.wasm","gitHead":"bd29649577219381d2f5776bc7e410e11eaadc70","scripts":{},"_npmUser":{"name":"andrewpareles","email":"andrewpareles@gmail.com"},"_npmVersion":"10.8.1","description":"glass swc plugin","directories":{},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"preferUnplugged":true,"peerDependencies":{"@swc/core":"~1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/swc_downgrade_1.0.5_1718580250677_0.1408087942174998","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@andrewtest/swc_downgrade","version":"1.0.6","description":"glass swc plugin","main":"glass_swc.wasm","scripts":{},"keywords":[],"license":"Apache-2.0","preferUnplugged":true,"peerDependencies":{"@swc/core":"~1.4.0"},"_id":"@andrewtest/swc_downgrade@1.0.6","gitHead":"bd29649577219381d2f5776bc7e410e11eaadc70","_nodeVersion":"20.12.2","_npmVersion":"10.8.1","dist":{"integrity":"sha512-SIApSnzD1uHV2H5oazZg1NtI4UMCCL6jjSmQyukZ1x11lobE1+KSbXvEiTquk0J9eNoN+ziDIb1H+6twhSJ6bg==","shasum":"649960c411e61274e8ee3d2b126be42ccd719d8b","tarball":"https://registry.npmjs.org/@andrewtest/swc_downgrade/-/swc_downgrade-1.0.6.tgz","fileCount":6,"unpackedSize":3876905,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEsWrLrsdaXGVkH5zIJv9yb69bxEsPEYGaFroADwco7MAiBmLFHj9VLLAlid+bAN4KtDkImU7EqSiTqDzfjgIRuSzA=="}]},"_npmUser":{"name":"andrewpareles","email":"andrewpareles@gmail.com"},"directories":{},"maintainers":[{"name":"andrewpareles","email":"andrewpareles@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swc_downgrade_1.0.6_1718581187013_0.0905023270305716"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-16T23:24:10.574Z","modified":"2024-06-16T23:39:47.502Z","1.0.5":"2024-06-16T23:24:10.932Z","1.0.6":"2024-06-16T23:39:47.305Z"},"maintainers":[{"name":"andrewpareles","email":"andrewpareles@gmail.com"}],"keywords":[],"license":"Apache-2.0","readme":"## publishing the package\r\n\r\nTo build the .wasm file, run these two commands: \r\n\r\n1. run `cargo build --target wasm32-wasi --release` - this generates the .wasm file using Rust\r\n\r\n2. run `cp ./target/wasm32-wasi/release/glass_swc.wasm .` - this copies the wasm file to the root where package.json expects it\r\n\r\nTo publish the package to npm (the entry point of the package is the .wasm file), do this:\r\n\r\n1. increment package.json's version number\r\n\r\n2. run `npm publish --access public`\r\n\r\n\r\n## updating and versions\r\n\r\nThe @swc/core npm package used in the user's frontend needs to be compatible with the .wasm file generated here. \r\n\r\nWe'll always assume the user is working with the latest version of @swc/core, `npm show @swc/core version`. We must use a compatible version of swc_core in Cargo. See [https://swc.rs/docs/plugin/selecting-swc-core](here). \r\n\r\nCargo.toml contains the `swc_core` version, and package.json here has peerDependencies that indicate the `@swc/core` version. We'll need to update both when new releases are made. To find version of swc_core, we can use `cargo search swc_core` or check the site `crates.io`.\r\n\r\n\r\n## versioning notes\r\n\r\n^1.6.2 means 1.6.2 thru (excluding) 2.0.0\r\n\r\n~1.6.2 means 1.6.2 thru (excluding) 1.7.0\r\n\r\n1.6.x means 1.6.0 thru (excluding) 1.7.0\r\n\r\n","readmeFilename":"README.md"}