r/Devvit • Admin • 14d ago

Announcement Devvit Blocks Deprecation - Phase 2

Post image

Devvit Team: What about Blocks deprecation?
App Developers: We’ve already had it.
Devvit Team: We’ve had one, yes. But what about second Blocks deprecation?
Devvit Team Members stare at each other.
Devvit Team: I don’t think they know about second Blocks deprecation.

If you missed the previous communications on Blocks deprecation (Announcement • Update), the gist is that an older architecture of how we configure and render Devvit apps is going away. Instead, Devvit Web is the final frontier! 🖖

We’ll be completing the deprecation of Blocks in the Devvit 0.15.0 release by removing remaining blocks-based app configs. As most apps using the Blocks renderer have now migrated to Devvit Web, we hope the forthcoming changes will have a minimal impact.

Deprecation Phase 1: No More Blocks Rendering (Completed June 30th):

  • Deprecated and rejecting all new or updated apps using addCustomPostType for post rendering

Deprecation Phase 2: No More Blocks Configuration (Monday, October, 19th):

  • All apps using devvit.yaml need to fully move to devvit.json
  • Reminder: The blocks property of devvit.json is deprecated

Apps that do not upgrade to the new version of Devvit will not be disrupted due to these changes. However, anyone who has not migrated their apps to Devvit Web should do so to continue development of their app.

You can find our migration guide here, along with more resources in the full Devvit docs. If you have questions, reach out in r/Devvit, join our official Discord, or leave a comment here and we’ll do our best to help!

Thanks for your attention, may Devvit Web protect you, and be ever in your favor.

27 Upvotes

15 comments sorted by

10

u/Alan-Foster 14d ago

After second blocks depreciation comes elevensies deprecation and afternoon tea deprecation.

It's a slippery slope.

Any news on adopting abandoned blocks (or web) projects?

3

u/RedditParadox 14d ago

We don't currently have a program for adopting abandoned apps. If a moderator is seeking functionality that is not currently available, we encourage them to see if the dev community can support their needs

1

u/SeeTigerLearn 14d ago

I hope we revive the coliseum. It was so elegant and final.

4

u/emily_in_boots 13d ago

Everything is just getting deprecated. It's impossible to keep up. There's more coming too - automod will go away. It has become just impossible to mod, and at this point, even trying is just a waste of time.

4

u/Beach-Brews 14d ago

Clarification question(s):

Does this mean the Devvit Singleton pattern and/or the @devvit/public-api is no longer allowed to be used? Will there be a "Phase 3" that phases out the use of the "devvit.json blocks property"?

devvit.json

{
  "blocks": {
    "entry": "blocks/main.ts",
    // ... This is deprecated and will be removed in a phase3?
  }
}

Singleton Pattern / "Blocks" Entry (main.ts)

// Still allowed for the time being, but will be removed in a phase3
Devvit.configure({
  http: true,
  redditAPI: true,
  redis: true
});

Devvit.addTrigger({
  event: 'AppUpgrade',
  onEvent: async (_, context) => {
    // Do stuff
  }
});

// More Singleton stuff

export default Devvit;

4

u/RedditParadox 14d ago

devvit/public-api is still supported but deprecated. No current plans for removal of it or the devvit.json blocks property.

The recommended guidance is still to move to devvit/web

3

u/ryry50583583 14d ago

Can devvit web still do/read comments and such?

5

u/Beach-Brews 14d ago

Yes, it definitely can read comments and post comments! It is through the same Reddit API client methods available in public-api.

3

u/ryry50583583 14d ago

Just different phrasing i imagine for the calls?

2

u/emily_in_boots 13d ago

As if I don’t already have enough to do migrating api apps. Care to add more to my workload? TBH I just feel like giving up at this point.

2

u/Software-fullstack 14d ago

one great step towards something better.
thanks ❤️

0

u/DangKilla 14d ago

Coolio