Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v13: Merge feat/next into main #347

Merged
merged 387 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
387 commits
Select commit Hold shift + click to select a range
847be22
Add extra methods on Address, wrt. specs.
andreibancioiu Feb 15, 2024
0dd4a3a
Adjust some deprecations.
andreibancioiu Feb 15, 2024
fc954bd
Breaking change: Address constructor cannot be called with no paramet…
andreibancioiu Feb 15, 2024
29bf7db
Breaking change (fixing change): when address is required, but detect…
andreibancioiu Feb 15, 2024
db67192
Fix comments.
andreibancioiu Feb 15, 2024
26be467
first part of replacing BigNumber with BigInt
popenta Feb 15, 2024
42498c3
Minor refactoring. Additional tests.
andreibancioiu Feb 16, 2024
57a6e19
fixes after replacing BigNumber with BigInt
popenta Feb 16, 2024
eca0221
Merge pull request #383 from multiversx/address-01
andreibancioiu Feb 16, 2024
e76a3c2
fixes after review
popenta Feb 16, 2024
4680e99
fixes after review
popenta Feb 16, 2024
80a4fce
fixes after review
popenta Feb 16, 2024
fcc1021
use toFixed instead of toString
popenta Feb 16, 2024
2a7ca04
Merge branch 'feat/next' into message-and-msg-computer
popenta Feb 16, 2024
ab0488b
started to modify tests
popenta Feb 20, 2024
b3ce9ae
add space around operator
popenta Feb 20, 2024
2647a16
Merge pull request #384 from multiversx/replace-bignumber-with-bigint
popenta Feb 20, 2024
495dcb7
Merge pull request #378 from multiversx/message-and-msg-computer
popenta Feb 20, 2024
7aa2931
Merge branch 'feat/next' into token-management-tx-parser
popenta Feb 20, 2024
23a75ed
atempt to undo formatting
popenta Feb 20, 2024
15bf006
fix indentation
popenta Feb 20, 2024
6710739
Merge branch 'feat/next' into use-factories-in-tests
popenta Feb 20, 2024
f325af9
Merge pull request #381 from multiversx/token-management-tx-parser
popenta Feb 20, 2024
6862413
Merge branch 'feat/next' into use-factories-in-tests
popenta Feb 20, 2024
1becc4e
Bump version.
andreibancioiu Feb 20, 2024
657d41e
Merge pull request #385 from multiversx/beta-20-feb
andreibancioiu Feb 20, 2024
9910946
refactor transaction watcher & unit tests fixes
popenta Feb 20, 2024
1206019
export token management transactions parser
popenta Feb 20, 2024
a5240ac
fixes after review
popenta Feb 21, 2024
56541ae
Merge pull request #386 from multiversx/use-factories-in-tests
popenta Feb 21, 2024
f3862ed
change constructor parameter for the transactions factory config
popenta Feb 21, 2024
8b04049
Merge pull request #387 from multiversx/tx-factory-config
popenta Feb 21, 2024
67ffcaf
duplicate localnet tests to use the transaction factories
popenta Feb 23, 2024
ef8c7ca
remove commented code
popenta Feb 23, 2024
f2ec87a
change factories constructor to ensure consistency
popenta Feb 23, 2024
3605c69
Define BigNumber as peer dependency.
andreibancioiu Feb 26, 2024
c50f9bd
Merge pull request #391 from multiversx/optimize-deps-next
andreibancioiu Feb 26, 2024
114ccd5
Sketch queries controller.
andreibancioiu Mar 5, 2024
9c1b5c7
Additional test.
andreibancioiu Mar 5, 2024
832cb08
Fix after review.
andreibancioiu Mar 5, 2024
2f0d036
Merge pull request #394 from multiversx/queries-05
andreibancioiu Mar 5, 2024
69a8156
adapter for executing smart contract queries
popenta Mar 6, 2024
127937c
refactoring
popenta Mar 7, 2024
f921d34
renamings
popenta Mar 7, 2024
7cd9085
Merge pull request #395 from multiversx/sc-query-adapter
popenta Mar 7, 2024
67eb371
Merge branch 'feat/next' into duplicate-local-tests
popenta Mar 7, 2024
f0cbe0a
use smart contract query controller in localnet tests
popenta Mar 8, 2024
16c81fd
Merge TransactionNext into existing Transaction.
andreibancioiu Mar 10, 2024
4ee60b4
Use existing Transaction instead of NextTransaction.
andreibancioiu Mar 11, 2024
7f55dd5
No more "TransactionNext".
andreibancioiu Mar 11, 2024
21ff0ee
No more transactionNext.
andreibancioiu Mar 11, 2024
413c388
Merge tests.
andreibancioiu Mar 11, 2024
4506ee0
Adjust / rename tests.
andreibancioiu Mar 11, 2024
73f989e
Re-write type expression parser.
andreibancioiu Mar 12, 2024
7cabc3a
Adjust package lock.
andreibancioiu Mar 12, 2024
df7c920
Fix after self-review.
andreibancioiu Mar 12, 2024
a527543
Add extra comments.
andreibancioiu Mar 12, 2024
32c3d59
Refactor (extract method).
andreibancioiu Mar 12, 2024
372135a
Refactoring.
andreibancioiu Mar 12, 2024
adf72ef
Refactoring.
andreibancioiu Mar 12, 2024
531281f
Refactoring.
andreibancioiu Mar 12, 2024
4039cb4
Minor refactoring.
andreibancioiu Mar 13, 2024
7b9fc9e
Merge branch 'main' into merge-main-13-03
popenta Mar 13, 2024
286fdef
Merge pull request #400 from multiversx/merge-main-13-03
popenta Mar 13, 2024
228a881
Merge branch 'feat/next' into same-tx
andreibancioiu Mar 13, 2024
a87efbe
Merge pull request #398 from multiversx/better-type-expression-parser
andreibancioiu Mar 13, 2024
05bdafe
Merge branch 'feat/next' into same-tx
andreibancioiu Mar 13, 2024
c47cb8e
Fix after review (partial).
andreibancioiu Mar 13, 2024
82f088c
Fix after review (partial).
andreibancioiu Mar 13, 2024
a1d4abd
fix token managent transactions parser according to specs
popenta Mar 13, 2024
6ddacc4
Fix after review.
andreibancioiu Mar 13, 2024
023ffa4
SerializeForSigning() now calls TransactionComputer.
andreibancioiu Mar 13, 2024
c16e60e
Refactor getHash(), mark it as legacy.
andreibancioiu Mar 13, 2024
20def8a
Simplify toPlainObject() for signing.
andreibancioiu Mar 13, 2024
d19f4b0
Minor refactoring.
andreibancioiu Mar 13, 2024
6a6a810
Move conversion logic to converters package.
andreibancioiu Mar 13, 2024
313a452
delegation transactions outcome parser
popenta Mar 14, 2024
4985058
Add test.
andreibancioiu Mar 14, 2024
7c1b80b
fix address extraction
popenta Mar 14, 2024
dc1c193
export delegation transactions outcome parser
popenta Mar 14, 2024
4dc94e3
Fix after review.
andreibancioiu Mar 14, 2024
abeed4a
Merge pull request #402 from multiversx/delegation-tx-parser
popenta Mar 14, 2024
afad158
Fix after review.
andreibancioiu Mar 14, 2024
3bcf620
refactoring
popenta Mar 14, 2024
6192725
Merge pull request #401 from multiversx/fix-token-management-txs-parser
popenta Mar 14, 2024
ea1499a
Merge pull request #396 from multiversx/same-tx
andreibancioiu Mar 14, 2024
f9a978b
Merge branch 'feat/next' into sc-outcome-parser
andreibancioiu Mar 14, 2024
f9834c2
constructor refactor for transaction factories
popenta Mar 14, 2024
6df2983
bump version
popenta Mar 14, 2024
7e4f7f5
Sketch SC outcome parser.
andreibancioiu Mar 14, 2024
52fdbf7
Merge pull request #403 from multiversx/tx-factories-constructors-ref…
popenta Mar 15, 2024
56ae79d
Merge branch 'feat/next' into duplicate-local-tests
popenta Mar 15, 2024
c089a05
fix tests
popenta Mar 15, 2024
91e81c7
refactor tx watcher to accept either transaction or hash
popenta Mar 18, 2024
a3e71f5
small refactoring
popenta Mar 18, 2024
d5a847f
move hash extraction to a private method
popenta Mar 19, 2024
f823244
check if transaction hash length is correct
popenta Mar 19, 2024
dad51f8
fix typo
popenta Mar 19, 2024
ee7e2d4
Merge pull request #404 from multiversx/tx-watcher-for-old-transactions
popenta Mar 19, 2024
c1971bd
merge TransferTransactionsFactory in NextTransferTransactionsFactory
popenta Mar 19, 2024
8f032d0
Merge branch 'feat/next' into sc-outcome-parser
andreibancioiu Mar 20, 2024
42337c9
TransactionOutcome: renaming, plus new field for direct contract outc…
andreibancioiu Mar 20, 2024
c6ac6c8
transaction signing by hash
popenta Mar 20, 2024
35d9efb
explicitly add gas price on test transaction
popenta Mar 20, 2024
b1d7896
change error message for invalid sender or receiver
popenta Mar 20, 2024
2ecacdf
change error message
popenta Mar 20, 2024
e834948
Renaming.
andreibancioiu Mar 20, 2024
3e2147c
Proto as optional dependency (experiment).
andreibancioiu Mar 20, 2024
625da33
Without protobuf.
andreibancioiu Mar 20, 2024
290ddaa
Temporarily skip tests.
andreibancioiu Mar 20, 2024
bc43a51
Fix workflow.
andreibancioiu Mar 20, 2024
5959080
fixes after review
popenta Mar 20, 2024
afa4f6f
Simplifications.
andreibancioiu Mar 20, 2024
1437c60
Undo changes in workflow.
andreibancioiu Mar 20, 2024
f991fc5
Run audit fix.
andreibancioiu Mar 20, 2024
3b143d5
more fixes after review
popenta Mar 20, 2024
74a0cc1
Outcome parser - work in progress.
andreibancioiu Mar 20, 2024
c4a265c
Refactoring, adjust result.
andreibancioiu Mar 20, 2024
ec60521
Merge branch 'feat/next' into proto-optional
andreibancioiu Mar 20, 2024
8fb14f5
Bump version.
andreibancioiu Mar 20, 2024
1b43cb6
Fix field names.
andreibancioiu Mar 20, 2024
7106a5f
Merge pull request #407 from multiversx/proto-optional
andreibancioiu Mar 20, 2024
ae3e389
Merge branch 'feat/next' into sc-outcome-parser
andreibancioiu Mar 21, 2024
fbbf0fb
Merge pull request #405 from multiversx/merge-transfer-txs-factories
popenta Mar 21, 2024
c72db77
Reference newer network providers & wallet (dev-dependencies, for tes…
andreibancioiu Mar 21, 2024
137503e
Allow one to pass a legacy, but custom ResultsParser to the new SC tr…
andreibancioiu Mar 21, 2024
d682f56
Add some tests.
andreibancioiu Mar 21, 2024
403bcdb
Extra tests.
andreibancioiu Mar 21, 2024
b6cc98a
Merge pull request #406 from multiversx/sign-tx-by-hash
popenta Mar 21, 2024
dead1be
Handle missing function.
andreibancioiu Mar 21, 2024
afd4c11
More robust conversion of plain object to Transaction (same as v12).
andreibancioiu Mar 21, 2024
b9415c6
Merge pull request #409 from multiversx/same-robustness-converter
andreibancioiu Mar 21, 2024
5d366fe
Test converter, fix converter.
andreibancioiu Mar 22, 2024
c04b3ea
Return typed values from SC txs outcome parser, as well.
andreibancioiu Mar 22, 2024
6d250c2
Merge branch 'feat/next' into sc-outcome-parser
andreibancioiu Mar 22, 2024
f985169
Sketch parse events.
andreibancioiu Mar 22, 2024
f0e4c39
Extract common operations on resources.
andreibancioiu Mar 22, 2024
0ce47a7
Merge pull request #410 from multiversx/minor-refactor-tx-outcome
andreibancioiu Mar 22, 2024
fffd65d
Merge branch 'feat/next' into sc-outcome-parser
andreibancioiu Mar 22, 2024
df0780a
add apply options for hash signing
popenta Mar 22, 2024
651bd20
Bit of cleanup.
andreibancioiu Mar 22, 2024
cfca1e7
fixes after review
popenta Mar 22, 2024
678c46e
AdditionalData on events.
andreibancioiu Mar 22, 2024
80381c2
Fix after self review.
andreibancioiu Mar 22, 2024
7a625ed
change type of event topics from string to UInt8Array
popenta Mar 22, 2024
b52b511
fixes after review
popenta Mar 22, 2024
afd326e
small refactoring
popenta Mar 22, 2024
5f4d58a
Merge pull request #412 from multiversx/change-topics-type
popenta Mar 22, 2024
0085207
findEventsByPredicate.
andreibancioiu Mar 22, 2024
9997b5b
Merge pull request #411 from multiversx/apply-options-hash-signing
popenta Mar 22, 2024
67ea865
Merge branch 'feat/next' into sc-outcome-parser
andreibancioiu Mar 22, 2024
7fe17c0
Undo change.
andreibancioiu Mar 22, 2024
09e396e
Undo change.
andreibancioiu Mar 22, 2024
348c13f
Fix after review / fix tests.
andreibancioiu Mar 22, 2024
1735e12
Merge branch 'feat/next' into sc-outcome-parser
andreibancioiu Mar 22, 2024
c2c7e16
Sketch events parser.
andreibancioiu Mar 23, 2024
c0f9178
Event.data, event.additionalData -> "dataItems".
andreibancioiu Mar 24, 2024
3d4b044
ResultsParser - some refactoring. Kept logic as it was.
andreibancioiu Mar 24, 2024
4e1abcd
TransactionEventsParser: handle (omit) first topic (event identifier).
andreibancioiu Mar 24, 2024
68ded95
Add TODO.
andreibancioiu Mar 24, 2024
b6624ad
Add tests for event parser.
andreibancioiu Mar 24, 2024
0388311
Adjust constructor of the new "TokenTransfer" class.
andreibancioiu Mar 24, 2024
3d82525
Minor constraints on fields: readonly.
andreibancioiu Mar 24, 2024
72da628
Adjust constructor. Use "options" pattern.
andreibancioiu Mar 24, 2024
0ec447f
Merge legacy "TokenTransfer" into "NextTokenTransfer".
andreibancioiu Mar 24, 2024
9773a3a
Fix after self review.
andreibancioiu Mar 24, 2024
fd3d90b
instantiate version and options using Number
popenta Mar 25, 2024
a87c47f
Minor refactoring.
andreibancioiu Mar 25, 2024
fdd968a
Merge pull request #415 from multiversx/ensure-version-and-options-ar…
popenta Mar 25, 2024
b070f26
Merge pull request #408 from multiversx/sc-outcome-parser
andreibancioiu Mar 25, 2024
17b3cc1
Fix after review.
andreibancioiu Mar 25, 2024
3a27c9f
Merge branch 'events-parser' into drop-next-prefix
andreibancioiu Mar 25, 2024
442992a
Merge branch 'feat/next' into duplicate-local-tests
popenta Mar 25, 2024
650d989
remove check for hash signing
popenta Mar 25, 2024
f13877c
Merge pull request #416 from multiversx/remove-options-check-for-hash…
andreibancioiu Mar 25, 2024
0f26e7b
Bump version.
andreibancioiu Mar 25, 2024
0fbfc31
Merge pull request #417 from multiversx/beta-9
andreibancioiu Mar 25, 2024
131464d
Merge pull request #413 from multiversx/events-parser
andreibancioiu Mar 25, 2024
cf0a7c1
Merge branch 'feat/next' into drop-next-prefix
andreibancioiu Mar 25, 2024
10677df
Merge pull request #414 from multiversx/drop-next-prefix
andreibancioiu Mar 25, 2024
d3665d3
Bump version.
andreibancioiu Mar 25, 2024
1ab9bac
Merge pull request #418 from multiversx/beta-10
andreibancioiu Mar 25, 2024
f371102
Merge branch 'feat/next' into duplicate-local-tests
popenta Mar 25, 2024
4dd2727
Fix exports.
andreibancioiu Mar 25, 2024
66b682a
Merge pull request #419 from multiversx/fix-exports-25
andreibancioiu Mar 25, 2024
4c73862
fix localnet tests
popenta Mar 25, 2024
386fda1
Fix regressions in Interaction (legacy).
andreibancioiu Mar 25, 2024
a562ed3
Merge branch 'feat/next' into hotfix-interaction-transfer
andreibancioiu Mar 25, 2024
dfd288c
Bump version.
andreibancioiu Mar 25, 2024
aac81b4
Undo change.
andreibancioiu Mar 25, 2024
51b9a7a
Refactor / rename.
andreibancioiu Mar 25, 2024
64abb79
In TokenTransferDataBuilders, use the argsSerializer.
andreibancioiu Mar 25, 2024
7fcad8f
Extra unit tests.
andreibancioiu Mar 25, 2024
28163ad
Merge pull request #420 from multiversx/hotfix-interaction-transfer
andreibancioiu Mar 26, 2024
fb979bf
revert interaction error to warning & use arg serializer in transacti…
popenta Mar 26, 2024
4af4ce1
bump version
popenta Mar 26, 2024
45c036b
mark nonce as optional when instantiating a Token
popenta Mar 26, 2024
c50abf9
fixes after review
popenta Mar 26, 2024
7122d21
fixes after re-review
popenta Mar 27, 2024
abe77cf
Merge pull request #421 from multiversx/revert-error-to-warning
popenta Mar 27, 2024
3d45e21
remove dependency from smart contract transactions factory
popenta Mar 27, 2024
07a06e1
Merge pull request #422 from multiversx/remove-sc-factory-tx-computer…
popenta Mar 27, 2024
a3e8e0c
Merge branch 'feat/next' into duplicate-local-tests
popenta Mar 27, 2024
98cd6a3
implement address computer
popenta Mar 28, 2024
f9eae9f
Sketch parsing of deploy transaction.
andreibancioiu Mar 28, 2024
316e439
fixes after review
popenta Mar 28, 2024
215ea7a
Remove arbitrary constraint in "findEventsByIdentifier".
andreibancioiu Mar 28, 2024
be4ecc3
use new approach to instantiate address
popenta Mar 28, 2024
6549d63
Merge pull request #423 from multiversx/address-computer
popenta Mar 28, 2024
4c601f1
Parse deploy events.
andreibancioiu Mar 28, 2024
144d95a
Merge branch 'feat/next' into parse-deploy
andreibancioiu Mar 28, 2024
6bac436
Extra tests.
andreibancioiu Mar 28, 2024
d97cce8
Fix tests.
andreibancioiu Mar 28, 2024
4d6aa6e
Address constructor: accept Uint8Array, as well.
andreibancioiu Mar 28, 2024
7980fec
Additional tests.
andreibancioiu Mar 28, 2024
0932d36
Undo "it.only()".
andreibancioiu Mar 28, 2024
900a8b8
Merge pull request #424 from multiversx/parse-deploy
andreibancioiu Mar 29, 2024
1ba2a1d
Additional exports.
andreibancioiu Mar 30, 2024
2405585
Re-generate docs (as for v12).
andreibancioiu Mar 30, 2024
58bd52b
Attempt to fix exports.
andreibancioiu Mar 30, 2024
8d8206b
Fix workflow.
andreibancioiu Mar 30, 2024
36ed4fb
Fix indent.
andreibancioiu Apr 1, 2024
ca160d7
Merge branch 'main' into main-into-next-04-01
andreibancioiu Apr 1, 2024
a52ecb3
Merge pull request #427 from multiversx/main-into-next-04-01
andreibancioiu Apr 1, 2024
f462875
Merge branch 'feat/next' into fixes-30
andreibancioiu Apr 1, 2024
ceb860c
Undo formatting.
andreibancioiu Apr 1, 2024
60f2279
Undo formatting.
andreibancioiu Apr 1, 2024
e76ff2b
Undo formatting.
andreibancioiu Apr 1, 2024
9a3a7dd
Merge pull request #426 from multiversx/fixes-30
andreibancioiu Apr 1, 2024
841d0ef
Export SmartContractQueriesController.
andreibancioiu Apr 2, 2024
06cfa01
Merge pull request #428 from multiversx/fix-exports-04-02
andreibancioiu Apr 2, 2024
c326211
Rename parameters wrt. specs: function, arguments.
andreibancioiu Apr 2, 2024
1eaa100
Merge pull request #429 from multiversx/fix-naming-wrt-specs
andreibancioiu Apr 2, 2024
5820ce4
Adjust output of queries controller.
andreibancioiu Apr 2, 2024
d9697c6
Merge pull request #430 from multiversx/adjust-output-query
andreibancioiu Apr 2, 2024
1175542
Fix decision on event identifier to be used for parsing.
andreibancioiu Apr 3, 2024
09cac50
Rename file.
andreibancioiu Apr 3, 2024
65453ce
Use latest multisig for tests.
andreibancioiu Apr 3, 2024
1bea5fd
Adjust naming convention for integration tests.
andreibancioiu Apr 3, 2024
68ea74e
Fix test to work with newer multisig data.
andreibancioiu Apr 3, 2024
726542f
Find by first topic. Additional tests.
andreibancioiu Apr 3, 2024
72e5ca5
Merge pull request #431 from multiversx/fix-events-parsing
andreibancioiu Apr 4, 2024
1daf55c
Merge branch 'feat/next' into duplicate-local-tests
popenta Apr 4, 2024
4aa5df4
fix tests after merge
popenta Apr 4, 2024
febf376
add method to compute bytes for verifying transaction signature
popenta Apr 5, 2024
2ecda7d
small fix & bump version
popenta Apr 5, 2024
6da6721
Merge pull request #432 from multiversx/compute-bytes-for-verifying-s…
popenta Apr 5, 2024
c43efdd
Merge branch 'feat/next' into duplicate-local-tests
popenta Apr 5, 2024
db7d81d
merge From feat & small refactoring
popenta Apr 5, 2024
86c06a4
Merge pull request #389 from multiversx/duplicate-local-tests
popenta Apr 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# See: https://EditorConfig.org
# VSCode plugin: https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
35 changes: 35 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["tsconfig.json", "tsconfig.tests.json"],
sourceType: "module",
},
plugins: ["@typescript-eslint/eslint-plugin"],
extends: ["plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "prettier"],
root: true,
env: {
node: true,
},
ignorePatterns: [".eslintrc.js", "node_modules", "out", "out-tests", "out-browser", "out-browser-tests"],
rules: {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-namespace": "warn",
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"prefer-const": "off",
},
};
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm run compile
- run: npm run compile-browser
- run: npm test
12 changes: 6 additions & 6 deletions .github/workflows/publish-not-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
channel:
type: choice
description: NPM channel
options:
- alpha
- beta
- previous
options:
- alpha
- beta
- previous

permissions:
contents: write
Expand All @@ -23,7 +23,7 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -33,7 +33,7 @@ jobs:

- run: npm ci
- run: npm test

- name: Publish to npmjs
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Expand Down
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": false,
"trailingComma": "all",
"tabWidth": 4,
"printWidth": 120
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
{
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
Loading
Loading