@audius/sdk 0.0.25 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/legacy.js +2 -2
- package/examples/initAudiusLibs.js +1 -1
- package/package.json +2 -2
- package/scripts/release.sh +26 -13
package/dist/index.cjs.js
CHANGED
|
@@ -50874,9 +50874,9 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(sdk$1);
|
|
|
50874
50874
|
var libs$1 = createModule("/$$rollup_base$$/src");
|
|
50875
50875
|
|
|
50876
50876
|
var name = "@audius/sdk";
|
|
50877
|
-
var version = "0.0.
|
|
50877
|
+
var version = "0.0.28";
|
|
50878
50878
|
var audius = {
|
|
50879
|
-
releaseSHA: "
|
|
50879
|
+
releaseSHA: "76faa173b2027dac9a81adef16a072197a84daec"
|
|
50880
50880
|
};
|
|
50881
50881
|
var description = "";
|
|
50882
50882
|
var main = "dist/index.cjs.js";
|
package/dist/index.esm.js
CHANGED
|
@@ -50828,9 +50828,9 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(sdk$1);
|
|
|
50828
50828
|
var libs$1 = createModule("/$$rollup_base$$/src");
|
|
50829
50829
|
|
|
50830
50830
|
var name = "@audius/sdk";
|
|
50831
|
-
var version = "0.0.
|
|
50831
|
+
var version = "0.0.28";
|
|
50832
50832
|
var audius = {
|
|
50833
|
-
releaseSHA: "
|
|
50833
|
+
releaseSHA: "76faa173b2027dac9a81adef16a072197a84daec"
|
|
50834
50834
|
};
|
|
50835
50835
|
var description = "";
|
|
50836
50836
|
var main = "dist/index.cjs.js";
|
package/dist/legacy.js
CHANGED
|
@@ -50874,9 +50874,9 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(sdk$1);
|
|
|
50874
50874
|
var libs$1 = createModule("/$$rollup_base$$/src");
|
|
50875
50875
|
|
|
50876
50876
|
var name = "@audius/sdk";
|
|
50877
|
-
var version = "0.0.
|
|
50877
|
+
var version = "0.0.28";
|
|
50878
50878
|
var audius = {
|
|
50879
|
-
releaseSHA: "
|
|
50879
|
+
releaseSHA: "76faa173b2027dac9a81adef16a072197a84daec"
|
|
50880
50880
|
};
|
|
50881
50881
|
var description = "";
|
|
50882
50882
|
var main = "dist/index.cjs.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const Web3 = require('../src/web3')
|
|
2
2
|
|
|
3
|
-
const { libs: AudiusLibs } = require('../dist/index')
|
|
3
|
+
const { libs: AudiusLibs } = require('../dist/index.cjs.js')
|
|
4
4
|
const dataContractsConfig = require('../data-contracts/config.json')
|
|
5
5
|
const ethContractsConfig = require('../eth-contracts/config.json')
|
|
6
6
|
|
package/package.json
CHANGED
package/scripts/release.sh
CHANGED
|
@@ -73,30 +73,35 @@ function bump-npm () {
|
|
|
73
73
|
# Publishing dry run, prior to pushing a branch
|
|
74
74
|
npm publish . --access public --dry-run
|
|
75
75
|
|
|
76
|
-
# Commit to a new branch
|
|
76
|
+
# Commit to a new branch
|
|
77
77
|
git checkout -b ${STUB}-${VERSION}
|
|
78
78
|
git add .
|
|
79
79
|
git commit -m "$(commit-message)"
|
|
80
|
-
git tag -a @audius/${STUB}@${VERSION} -m "$(commit-message)"
|
|
81
80
|
|
|
82
|
-
# Push branch
|
|
81
|
+
# Push branch to remote
|
|
83
82
|
git push -u origin ${STUB}-${VERSION}
|
|
84
|
-
git push origin --tags
|
|
85
83
|
}
|
|
86
84
|
|
|
87
85
|
# Merge the created branch into master, then delete the branch
|
|
88
86
|
function merge-bump () {
|
|
89
|
-
|
|
87
|
+
(
|
|
88
|
+
git checkout master -f
|
|
90
89
|
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
# pull in any additional commits that may have trickled in
|
|
91
|
+
git pull
|
|
92
|
+
|
|
93
|
+
# squash branch commit
|
|
94
|
+
git merge --squash ${STUB}-${VERSION} || exit 1
|
|
95
|
+
git commit -m "$(commit-message)" || exit 1
|
|
93
96
|
|
|
94
|
-
|
|
97
|
+
# tag release
|
|
98
|
+
git tag -a @audius/${STUB}@${VERSION} -m "$(commit-message)" || exit 1
|
|
99
|
+
git push origin --tags || exit 1
|
|
95
100
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
101
|
+
# if pushing fails, ensure we cleanup()
|
|
102
|
+
git push -u origin master || exit 1
|
|
103
|
+
git push origin :${STUB}-${VERSION}
|
|
104
|
+
)
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
# publish to npm
|
|
@@ -104,6 +109,14 @@ function publish () {
|
|
|
104
109
|
npm publish . --access public
|
|
105
110
|
}
|
|
106
111
|
|
|
112
|
+
# informative links
|
|
113
|
+
function info () {
|
|
114
|
+
echo "Released to:
|
|
115
|
+
https://github.com/AudiusProject/audius-protocol/commits/master
|
|
116
|
+
https://github.com/AudiusProject/audius-protocol/tags
|
|
117
|
+
https://www.npmjs.com/package/@audius/sdk?activeTab=versions"
|
|
118
|
+
}
|
|
119
|
+
|
|
107
120
|
# cleanup when merging step fails
|
|
108
121
|
function cleanup () {
|
|
109
122
|
git push origin :${STUB}-${VERSION} || true
|
|
@@ -117,4 +130,4 @@ cd ${PROTOCOL_DIR}/libs
|
|
|
117
130
|
|
|
118
131
|
# perform release
|
|
119
132
|
bump-npm
|
|
120
|
-
merge-bump && publish || cleanup
|
|
133
|
+
merge-bump && publish && info || cleanup
|