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
Conversation
@imustafin Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PRCode ReviewsBecause 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
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"
} |
🔔 @cbothner — please review this PR in the next few days. Be sure to explicitly select |
Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files. rails__activestorage (unpkg)was missing the following properties:
The most common way to resolve this error is to use 'export =' syntax.
|
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. |
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! |
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.) |
@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:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@cbothner: you can do this too.) |
Ready to merge |
Please fill in this template.
npm test <package to test>
.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 for7.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 😱