Skip to content

Commit

Permalink
Merge branch 'KartikTalwar:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kstubs authored Aug 13, 2024
2 parents afe54fe + 82c299a commit 7d2e9b1
Show file tree
Hide file tree
Showing 22 changed files with 10,920 additions and 1,198 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false

[*.{ts,js,json}]
quote_type = double
indent_style = space
indent_size = 4
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"GLOBALS": true,
"VIEW_DATA": true
},
"ecmaFeatures": {},
"rules": {
"no-alert": "off",
"no-array-constructor": "error",
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run ci

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: junit.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.DS_Store
.idea
node_modules
**/*~
**/.#*
coverage
junit.xml
173 changes: 173 additions & 0 deletions CHANGELOG.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,179 @@

# Changelog

## Version 1.1.14

- Fix regression in DOM observers, introduced in 1.1.13. Thanks @kinkoazc!

## Version 1.1.13

- Drop bundled jQuery, support jQuery 4, support explicit no-jQuery mode
- Fix reply button selector to support Gmail in text labels mode
- Fix `api.get.user_email()`.

## Version 1.1.12

- Use MutationObserver for DOM Node changes. Thanks @cancan101!
- Fix issue in `api.dom.compose.is_inline()`. Thanks @MadcowD!

## Version 1.1.11

- Fix `api.observe.on("view_email", ...)` not working.

## Version 1.1.10

- Fix `api.dom.right_toolbar()`, by @stevepeak.

## Version 1.1.9

- Fix `api.helper.get.is_delegated_inbox`, by @moodsey211.

## Version 1.1.8

- Fix incorrect variable name in GmailCache definition

## Version 1.1.7

- Fix for `api.tools.parse_attachment_url`.

## Version 1.1.6

- Better fix for `view_thread` event not triggeriong, by @cancan101.

## Version 1.1.5

- Improved parsing of embedded json data, by @onestep.
- Tentative fix for `view_thread` event not triggeriong, by @cancan101.

## Version 1.1.4

- Fix subject-value in `api.observe.on("send_message")` event-data, by @cancan101.

## Version 1.1.3

- Even more fixes for `api.observe.on("send_message")` by @huksley.

## Version 1.1.2

- Try some fixes for `api.observe.on("send_message")`.

## Version 1.1.1

- More fixes for `api.new.get.email_data()` and `api.new.get.thread_data()`.

## Version 1.1.0

- First release to fix new XHR format in Gmail. This fixes
`api.new.get.email_data()` and `api.new.get.thread_data()`.

## Version 1.0.23

- Fix error in `insertion_observer()`.
- Remove no longer working functions: `gmail.get.loggedin_accounts()`,
`gmail.get.manager_email()` and `gmail.get.delegated_to_email()`.

## Version 1.0.22

- Fix incompatibility with Mixmax extension. Thanks @DrParanoia!

## Version 1.0.21

- Various typescript type-improvements. Thanks again @cancan101!
- Fix errors when trying to prefetch email-data. Once again, thanks to @cancan101!
- Introduce new function `gmail.tools.add_more_send_option()`. Even more thanks to @cancan101!
- Make `gmail.get.email_source_*()` handle new-style and old-style identifiers natively.

## Version 1.0.20

- Fix error in TypeScript type-definitions. No functional/runtime changes. Thanks @cancan101

## Version 1.0.19

- Fix compose button being duplicated when using `gmail.tools.add_compose_button` more than once.

## Version 1.0.18

- Fix parsing of attachments in emails form embedded JSON. Thanks @onestep!

## Version 1.0.17

- Fix ussyes with `gmail.dom.visible_messages()`. Thanks @mhatvan!

## Version 1.0.16

- Fix `gmail.observe.on("http_event")` and `gmail.observe.after("http_event")` triggers to receive all XHR requests.
- Fix issue of `api.tools.parse_requests` mutating the `xhrParams` variable, causing stacked instances of `gmail-js` to not work as expected around XHR events. This closes [issue 662](https://github.com/KartikTalwar/gmail.js/issues/662).

## Version 1.0.15

- Fix issue with accessing to(), cc() and bcc() in compose-fields with
new Gmail "PeopleKit" UI. Thanks @huksley!

## Version 1.0.14

- Persist if a message is a draft during request parsing.

## Version 1.0.13

- Fix error in `gmail.get.localization()`, which should have been caught by CI.

## Version 1.0.12

- Fix error in `gmail.get.localization()`. This closes [issue 652](https://github.com/KartikTalwar/gmail.js/issues/652).

## Version 1.0.11

- Fix cursor when hovering over button created using `gmail.tools.add_compose_button`.

## Version 1.0.10

- Better attempt at fixing incorrect triggering of custom buttons created through GmailJS.

## Version 1.0.9 - unpublished

- Fix incorrect triggering of custom buttons created through GmailJS.

## Version 1.0.8 - unpublished

- Fix Firefox-compatibility issue in Gmail click-jack prevention.

## Version 1.0.7 - unpublished

- Fix issues with Gmail preventing click-events on buttons registered
thourgh GmailJS. Closes #648.

## Version 1.0.6

- Fix `gmail.compose.start_compose()`.

## Version 1.0.5

- Improve ergonomics of `gmail.dom.email()`. Support new email-id in constructor.

## Version 1.0.4

- Fix `gmail.check.is_inside_email()`

## Version 1.0.3

- Make `compose` cc() and bcc() methods force show cc and bcc-fields
before updating.

## Version 1.0.2

- Fix for `compose` to(), cc() and bcc() methods not updating
email correctly.

## Version 1.0.1

- Fix selector for start-compose button. Thanks @mikob!

## Version 1.0.0

- major improvements in populating the email-cache. Thanks @Fabi1Sc!
NOTE: requires changes to extension-loading. See README!
- deprecate more old-style APIs

## Version 0.9.9

- add support for getting visible emails through DOM
Expand Down
Loading

0 comments on commit 7d2e9b1

Please sign in to comment.