prismarine-physics 1.4.0 → 1.5.2

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.
@@ -13,13 +13,20 @@ jobs:
13
13
  - name: Set up Node.js
14
14
  uses: actions/setup-node@master
15
15
  with:
16
- node-version: 10.0.0
17
- - name: Publish if version has been updated
18
- uses: pascalgn/npm-publish-action@4f4bf159e299f65d21cd1cbd96fc5d53228036df
19
- with: # All of theses inputs are optional
20
- tag_name: "%s"
21
- tag_message: "%s"
22
- commit_pattern: "^Release (\\S+)"
23
- env: # More info about the environment variables in the README
24
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
25
- NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
16
+ node-version: 14.0.0
17
+ - id: publish
18
+ uses: JS-DevTools/npm-publish@v1
19
+ with:
20
+ token: ${{ secrets.NPM_AUTH_TOKEN }}
21
+ - name: Create Release
22
+ if: steps.publish.outputs.type != 'none'
23
+ id: create_release
24
+ uses: actions/create-release@v1
25
+ env:
26
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27
+ with:
28
+ tag_name: ${{ steps.publish.outputs.version }}
29
+ release_name: Release ${{ steps.publish.outputs.version }}
30
+ body: ${{ steps.publish.outputs.version }}
31
+ draft: false
32
+ prerelease: false
package/HISTORY.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## History
2
2
 
3
+ ### 1.5.2
4
+
5
+ * Fix publish.yml
6
+
7
+ ### 1.5.1
8
+
9
+ * fix deleteAttributeModifier function (@bendgk)
10
+
11
+ ### 1.5.0
12
+
13
+ * bump mcdata
14
+
3
15
  ### 1.4.0
4
16
 
5
17
  * add movementSpeed attribute support
package/lib/attribute.js CHANGED
@@ -39,8 +39,6 @@ exports.checkAttributeModifier = function (attributes, uuid) {
39
39
  }
40
40
 
41
41
  exports.deleteAttributeModifier = function (attributes, uuid) {
42
- for (const modifier of attributes.modifiers) {
43
- if (modifier.uuid === uuid) delete attributes.modifiers[modifier]
44
- }
42
+ attributes.modifiers = attributes.modifiers.filter(modifier => modifier.uuid !== uuid)
45
43
  return attributes
46
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prismarine-physics",
3
- "version": "1.4.0",
3
+ "version": "1.5.2",
4
4
  "description": "Provide the physics engine for minecraft entities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -29,13 +29,13 @@
29
29
  "homepage": "https://github.com/PrismarineJS/prismarine-physics#readme",
30
30
  "devDependencies": {
31
31
  "expect": "^27.3.1",
32
- "mocha": "^9.1.3",
32
+ "mocha": "^10.0.0",
33
33
  "prismarine-block": "^1.7.3",
34
34
  "prismarine-physics": "file:./",
35
- "standard": "^16.0.3"
35
+ "standard": "^17.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "minecraft-data": "^2.100.1",
38
+ "minecraft-data": "^3.0.0",
39
39
  "prismarine-nbt": "^2.0.0",
40
40
  "vec3": "^0.1.7"
41
41
  }