Skip to content

Commit

Permalink
release: v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Siyu1017 committed Jul 6, 2024
1 parent c8cf255 commit f672fe8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
# Changelog

## v1.2.1 ( 2024-07-06 )

### Fixed
- Changelog.md syntax
- Fix npm not publishing issue

## v1.2.0 ( 2024-07-06 )

### Changed
- Functions used to get the turtle's state will not return a value, they return a Promise object, you can use `.then()` to get the return value.
- Now you can use `.then()` after all the available functions of turtle
> [!WARNING]
> Some functions may not return a value

```js
// method is a function available in the current version
turtle.method().then(res => {
// Do something...
})
```
> [!WARNING]
> Some functions may not return a value

### Fixed
- When using `turtle.left()`, `turtle.right()`, the turtle's heading changes, but the direction does not change.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@siyu971017/turtle.js",
"version": "1.2.0",
"version": "1.2.1",
"description": "JavaScript version of turtle graphics",
"main": "dist/turtle.umd.js",
"module": "dist/turtle.esm.js",
Expand Down

0 comments on commit f672fe8

Please sign in to comment.