Skip to content

Commit b05c973

Browse files
committed
Merge remote-tracking branch 'origin/master' into release
2 parents 0348b1c + 888b768 commit b05c973

21 files changed

+609
-206
lines changed

Diff for: .github/workflows/publish.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ jobs:
6969
cd lib/loader
7070
npm publish --tag $CHANNEL --access public
7171
cd ../..
72-
- name: Publish to gpr
73-
env:
74-
NPM_REGISTRY: "npm.pkg.github.com"
75-
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
run: |
77-
npm config set "//${NPM_REGISTRY}/:_authToken=${NPM_AUTH_TOKEN}"
78-
sed -i 's/"assemblyscript"/"@assemblyscript\/assemblyscript"/' package.json
79-
sed -i 's/"assemblyscript"/"@assemblyscript\/assemblyscript"/' package-lock.json
80-
npm publish --registry=https://${NPM_REGISTRY}
81-
cd lib/loader
82-
npm publish --registry=https://${NPM_REGISTRY}
83-
cd ../..
72+
# - name: Publish to gpr
73+
# env:
74+
# NPM_REGISTRY: "npm.pkg.github.com"
75+
# NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
# run: |
77+
# npm config set "//${NPM_REGISTRY}/:_authToken=${NPM_AUTH_TOKEN}"
78+
# sed -i 's/"assemblyscript"/"@assemblyscript\/assemblyscript"/' package.json
79+
# sed -i 's/"assemblyscript"/"@assemblyscript\/assemblyscript"/' package-lock.json
80+
# npm publish --registry=https://${NPM_REGISTRY}
81+
# cd lib/loader
82+
# npm publish --registry=https://${NPM_REGISTRY}
83+
# cd ../..

Diff for: NOTICE

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ under the licensing terms detailed in LICENSE:
2323
2424
* Julien Letellier <[email protected]>
2525
* Guido Zuidhof <[email protected]>
26+
2627

2728
Portions of this software are derived from third-party works licensed under
2829
the following terms:

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
<h2 align="center">Contributors</h2>
2323

2424
<p align="center">
25-
<a href="https://assemblyscript.org/#contributors"><img src="https://assemblyscript.org/contributors.svg" alt="Contributor logos" /></a>
25+
<a href="https://assemblyscript.org/#contributors"><img src="https://assemblyscript.org/contributors.svg" alt="Contributor logos" width="720" /></a>
2626
</p>
2727

2828
<h2 align="center">Thanks to our sponsors!</h2>
2929

3030
<p align="justify">Most of the core team members and most contributors do this open source work in their free time. If you use AssemblyScript for a serious task or plan to do so, and you'd like us to invest more time on it, <a href="https://opencollective.com/assemblyscript/donate" target="_blank" rel="noopener">please donate</a> to our <a href="https://opencollective.com/assemblyscript" target="_blank" rel="noopener">OpenCollective</a>. By sponsoring this project, your logo will show up below. Thank you so much for your support!</p>
3131

3232
<p align="center">
33-
<a href="https://assemblyscript.org/#sponsors"><img src="https://assemblyscript.org/sponsors.svg" alt="Sponsor logos" /></a>
33+
<a href="https://assemblyscript.org/#sponsors"><img src="https://assemblyscript.org/sponsors.svg" alt="Sponsor logos" width="720" /></a>
3434
</p>

Diff for: bin/asinit

+3-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ function ensureIndexJs() {
316316
fs.writeFileSync(indexFile, [
317317
"const fs = require(\"fs\");",
318318
"const loader = require(\"@assemblyscript/loader\");",
319-
"module.exports = loader.instantiateSync(fs.readFileSync(__dirname + \"/build/optimized.wasm\"), { /* imports */ })"
319+
"const imports = { /* imports go here */ };",
320+
"const wasmModule = loader.instantiateSync(fs.readFileSync(__dirname + \"/build/optimized.wasm\"), imports);",
321+
"module.exports = wasmModule.exports;"
320322
].join("\n") + "\n");
321323
console.log(colors.green(" Created: ") + indexFile);
322324
} else {

Diff for: lib/parse/src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ export { Type, SectionId, ExternalKind };
55
var compiled: WebAssembly.Module | null = null;
66

77
declare var WASM_DATA: string; // injected by webpack
8-
if (typeof WASM_DATA !== "string") WASM_DATA = require("fs").readFileSync(__dirname + "/../build/index.wasm", "base64");
8+
if (typeof WASM_DATA !== "string") {
9+
// eslint-disable-next-line @typescript-eslint/no-var-requires
10+
WASM_DATA = require("fs").readFileSync(__dirname + "/../build/index.wasm", "base64");
11+
}
912

1013
/** Options specified to the parser. The `onSection` callback determines the sections being evaluated in detail. */
1114
export interface ParseOptions {

Diff for: package-lock.json

+75-84
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)