Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
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
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"sourceType": "module",
"project": ["tsconfig.json", "tsconfig.test.json"]
},
"extends": ["@doist/eslint-config/recommended-requiring-type-checking"],
"extends": ["@doist/eslint-config/recommended-type-checked"],
"env": {
"browser": true,
"jest": true
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/deploy-docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Docs to Pages
on:
push:
branches:
- v4
- main
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand Down Expand Up @@ -34,7 +34,10 @@ jobs:
with:
node-version-file: .nvmrc

- name: Install dependencies
- name: Install SDK dependencies
run: npm ci

- name: Install docusaurus dependencies
working-directory: ./website
run: npm ci

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ node_modules/
scratch.ts

.vscode/
.DS_Store
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ignore auto-generated documentation website
website
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ api.getTasks()

### Documentation

For more detailed reference documentation, have a look at the [API documentation with TypeScript examples](https://developer.todoist.com/rest/v2/?javascript).
For more detailed reference documentation, have a look at the [Todoist API v1 Documentation](https://todoist.com/api/v1).

### Migration Guide

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.

Key changes in v1 include:

- Updated endpoint structure
- New pagination system
- Unified error response format
- Object renames (e.g., items → tasks, notes → comments)
- URL renames and endpoint signature changes

## Development and Testing

Expand Down
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
preset: "ts-jest",
preset: 'ts-jest',
transform: { '^.+\\.ts': 'ts-jest' },
testMatch: ['**/*.test.ts'],
clearMocks: true,
testEnvironment: 'node'
testEnvironment: 'node',
}
Loading