Skip to content

Commit a1ac76c

Browse files
authored
chore: [BREAKING] bump version to v4.0.0 (migration from Todoist REST API to Todoist API v1) (#280)
1 parent 8295c4b commit a1ac76c

File tree

107 files changed

+21763
-923
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+21763
-923
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"sourceType": "module",
55
"project": ["tsconfig.json", "tsconfig.test.json"]
66
},
7-
"extends": ["@doist/eslint-config/recommended-requiring-type-checking"],
7+
"extends": ["@doist/eslint-config/recommended-type-checked"],
88
"env": {
99
"browser": true,
1010
"jest": true

.github/workflows/deploy-docusaurus.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy Docs to Pages
33
on:
44
push:
55
branches:
6-
- v4
6+
- main
77
workflow_dispatch:
88

99
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
@@ -34,7 +34,10 @@ jobs:
3434
with:
3535
node-version-file: .nvmrc
3636

37-
- name: Install dependencies
37+
- name: Install SDK dependencies
38+
run: npm ci
39+
40+
- name: Install docusaurus dependencies
3841
working-directory: ./website
3942
run: npm ci
4043

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_modules/
66
scratch.ts
77

88
.vscode/
9+
.DS_Store

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# ignore auto-generated documentation website
2+
website

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,19 @@ api.getTasks()
2424

2525
### Documentation
2626

27-
For more detailed reference documentation, have a look at the [API documentation with TypeScript examples](https://developer.todoist.com/rest/v2/?javascript).
27+
For more detailed reference documentation, have a look at the [Todoist API v1 Documentation](https://todoist.com/api/v1).
28+
29+
### Migration Guide
30+
31+
If you're migrating from an older version of the Todoist API (v9), please refer to the [official migration guide](https://todoist.com/api/v1/docs#tag/Migrating-from-v9) for detailed information about the changes and breaking updates.
32+
33+
Key changes in v1 include:
34+
35+
- Updated endpoint structure
36+
- New pagination system
37+
- Unified error response format
38+
- Object renames (e.g., items → tasks, notes → comments)
39+
- URL renames and endpoint signature changes
2840

2941
## Development and Testing
3042

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
2-
preset: "ts-jest",
2+
preset: 'ts-jest',
33
transform: { '^.+\\.ts': 'ts-jest' },
44
testMatch: ['**/*.test.ts'],
55
clearMocks: true,
6-
testEnvironment: 'node'
6+
testEnvironment: 'node',
77
}

0 commit comments

Comments
 (0)