Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update types for @rails/activestorage v7.0.2 #59098

Merged
merged 1 commit into from Mar 21, 2022

Conversation

imustafin
Copy link
Contributor

Please fill in this template.

If changing an existing definition:

This PR basically reverts #57781 (following rails/rails#44287).

Relevant discussion: #59071

@Oleksii14 and @AlfonsoUceda, please review this PR if you can.

Versioning

The original package @rails/activestorage has bumped its patch version with a breaking change. In DT we can't specify that typings are for 7.0.2 and not for >= 7.0.0, < 7.0.2. In DT we can only specify the major and minor versions.

Basically, users of @types/rails__activestorage should somehow understand themselves which version they need.

@sandersn, sorry for disturbing (didn't know whom to ask). Can you please clarify this?

Just wanted to confirm because this was not mentioned explicitly [enough] in the readme 😱

@typescript-bot
Copy link
Contributor

typescript-bot commented Mar 3, 2022

@imustafin Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by type definition owners, DT maintainers or others

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 59098,
  "author": "imustafin",
  "headCommitOid": "15afda891ecd047d5c24ae203173d84b4d13c6da",
  "mergeBaseOid": "3320c953b238a6f8a3f45c8178133f39ba52a082",
  "lastPushDate": "2022-03-03T18:11:09.000Z",
  "lastActivityDate": "2022-03-21T20:07:17.000Z",
  "mergeOfferDate": "2022-03-21T19:56:12.000Z",
  "mergeRequestDate": "2022-03-21T20:07:17.000Z",
  "mergeRequestUser": "imustafin",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "rails__activestorage",
      "kind": "edit",
      "files": [
        {
          "path": "types/rails__activestorage/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/rails__activestorage/rails__activestorage-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "imustafin",
        "cbothner"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "AlfonsoUceda",
      "date": "2022-03-21T19:55:32.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 1058356769,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Author is Owner The author of this PR is a listed owner of the package. label Mar 3, 2022
@typescript-bot
Copy link
Contributor

🔔 @cbothner — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Mar 3, 2022
@DangerBotOSS
Copy link

Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files.
The check for missing properties isn't always right, so take this list as advice, not a requirement.

rails__activestorage (unpkg)

was missing the following properties:

  1. The declaration doesn't match the JavaScript module 'rails__activestorage'. Reason:
    The JavaScript module can be called or constructed, but the declaration module cannot.

The most common way to resolve this error is to use 'export =' syntax.
To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require.

  1. hash
  2. hashBinary
  3. ArrayBuffer

Generated by 🚫 dangerJS against 15afda8

@sandersn
Copy link
Contributor

sandersn commented Mar 3, 2022

I don't think there's any good way to do this within DT's publishing setup because it really assumes that only major.minor matters. Would a comment in the package source help? Probably not many people would think to look there, though.

@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label Mar 15, 2022
@typescript-bot
Copy link
Contributor

Re-ping @cbothner:

This PR has been out for over a week, yet I haven't seen any reviews.

Could someone please give it some attention? Thanks!

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Action in New Pull Request Status Board Mar 21, 2022
@typescript-bot
Copy link
Contributor

It has been more than two weeks and this PR still has no reviews.

I'll bump it to the DT maintainer queue. Thank you for your patience, @imustafin.

(Ping @cbothner.)

@typescript-bot typescript-bot added Other Approved This PR was reviewed and signed-off by a community member. Self Merge This PR can now be self-merged by the PR author or an owner and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels Mar 21, 2022
@typescript-bot typescript-bot moved this from Needs Maintainer Action to Waiting for Author to Merge in New Pull Request Status Board Mar 21, 2022
@typescript-bot
Copy link
Contributor

@imustafin: Everything looks good here. I am ready to merge this PR (at 15afda8) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@cbothner: you can do this too.)

@imustafin
Copy link
Contributor Author

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Mar 21, 2022
@typescript-bot typescript-bot merged commit 5e9de86 into DefinitelyTyped:master Mar 21, 2022
@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author is Owner The author of this PR is a listed owner of the package. Other Approved This PR was reviewed and signed-off by a community member. Self Merge This PR can now be self-merged by the PR author or an owner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants