Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion docs/api/public-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@
- [~~Data~~](type-aliases/Data.md)
- [DeleteNotesOptions](type-aliases/DeleteNotesOptions.md)
- [DevvitDebug](type-aliases/DevvitDebug.md)
- [Dispatch](type-aliases/Dispatch.md)
- [Document](type-aliases/Document.md)
- [DocumentNode](type-aliases/DocumentNode.md)
- [EditCommentOptions](type-aliases/EditCommentOptions.md)
Expand Down Expand Up @@ -324,6 +323,7 @@
- [ScheduledJobOptions](type-aliases/ScheduledJobOptions.md)
- [ScheduledJobType](type-aliases/ScheduledJobType.md)
- [Scheduler](type-aliases/Scheduler.md)
- [SearchPostsOptions](type-aliases/SearchPostsOptions.md)
- [SecureMedia](type-aliases/SecureMedia.md)
- [SelectField](type-aliases/SelectField.md)
- [SendPrivateMessageAsSubredditOptions](type-aliases/SendPrivateMessageAsSubredditOptions.md)
Expand Down
40 changes: 40 additions & 0 deletions docs/api/public-api/classes/RedditAPIClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -3492,6 +3492,46 @@ The name of the subreddit to revoke the invite for. e.g. 'memes'

***

<a id="searchposts"></a>

### searchPosts()

> **searchPosts**(`options`): [`Listing`](Listing.md)\<[`Post`](Post.md)\>

Search for posts in a subreddit.

#### Parameters

##### options

[`SearchPostsOptions`](../type-aliases/SearchPostsOptions.md)

Options for the search

#### Returns

[`Listing`](Listing.md)\<[`Post`](Post.md)\>

A Listing of Post objects.

#### Example

```ts
const posts = await reddit.searchPosts({
query: 'developer platform',
subredditName: 'devvit',
sort: 'new',
timeframe: 'month',
limit: 100,
}).all();
```

#### Inherited from

[`RedditClient`](RedditClient.md).[`searchPosts`](RedditClient.md#searchposts)

***

<a id="sendprivatemessage"></a>

### sendPrivateMessage()
Expand Down
36 changes: 36 additions & 0 deletions docs/api/public-api/classes/RedditClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -3044,6 +3044,42 @@ The name of the subreddit to revoke the invite for. e.g. 'memes'

***

<a id="searchposts"></a>

### searchPosts()

> **searchPosts**(`options`): [`Listing`](Listing.md)\<[`Post`](Post.md)\>

Search for posts in a subreddit.

#### Parameters

##### options

[`SearchPostsOptions`](../type-aliases/SearchPostsOptions.md)

Options for the search

#### Returns

[`Listing`](Listing.md)\<[`Post`](Post.md)\>

A Listing of Post objects.

#### Example

```ts
const posts = await reddit.searchPosts({
query: 'developer platform',
subredditName: 'devvit',
sort: 'new',
timeframe: 'month',
limit: 100,
}).all();
```

***

<a id="sendprivatemessage"></a>

### sendPrivateMessage()
Expand Down
20 changes: 20 additions & 0 deletions docs/api/public-api/classes/Subreddit.md
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,26 @@ const userFlairList = response.users

***

<a id="searchposts"></a>

### searchPosts()

> **searchPosts**(`options`): [`Listing`](Listing.md)\<[`Post`](Post.md)\>

Search for posts in this subreddit.

#### Parameters

##### options

`Omit`\<[`SearchPostsOptions`](../type-aliases/SearchPostsOptions.md), `"subredditName"`\>

#### Returns

[`Listing`](Listing.md)\<[`Post`](Post.md)\>

***

<a id="setmoderatorpermissions"></a>

### setModeratorPermissions()
Expand Down
23 changes: 0 additions & 23 deletions docs/api/public-api/type-aliases/Dispatch.md

This file was deleted.

33 changes: 33 additions & 0 deletions docs/api/public-api/type-aliases/SearchPostsOptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[**@devvit/public-api v0.14.1-dev**](../README.md)

***

# Type Alias: SearchPostsOptions

> **SearchPostsOptions** = [`ListingFetchOptions`](ListingFetchOptions.md) & `object`

## Type declaration

### query

> **query**: `string`

Search query.

### sort?

> `optional` **sort**: `"relevance"` \| `"hot"` \| `"top"` \| `"new"` \| `"comments"`

How to sort the search results. Defaults to `relevance`.

### subredditName?

> `optional` **subredditName**: `string`

The subreddit to search without 'r/' prefix. If specified, will restrict the search to posts in this subreddit

### timeframe?

> `optional` **timeframe**: `"hour"` \| `"day"` \| `"week"` \| `"month"` \| `"year"` \| `"all"`

Limit search results to a timeframe. Defaults to `all`.
36 changes: 36 additions & 0 deletions docs/api/redditapi/RedditClient/classes/RedditClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -3040,6 +3040,42 @@ The name of the subreddit to revoke the invite for. e.g. 'memes'

***

<a id="searchposts"></a>

### searchPosts()

> **searchPosts**(`options`): [`Listing`](../../models/classes/Listing.md)\<[`Post`](../../models/classes/Post.md)\>

Search for posts in a subreddit.

#### Parameters

##### options

[`SearchPostsOptions`](../../models/type-aliases/SearchPostsOptions.md)

Options for the search

#### Returns

[`Listing`](../../models/classes/Listing.md)\<[`Post`](../../models/classes/Post.md)\>

A Listing of Post objects.

#### Example

```ts
const posts = await reddit.searchPosts({
query: 'developer platform',
subredditName: 'devvit',
sort: 'new',
timeframe: 'month',
limit: 100,
}).all();
```

***

<a id="sendprivatemessage"></a>

### sendPrivateMessage()
Expand Down
1 change: 1 addition & 0 deletions docs/api/redditapi/models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
- [RemovalReason](type-aliases/RemovalReason.md)
- [RemoveRelationshipOptions](type-aliases/RemoveRelationshipOptions.md)
- [ReplyToCommentOptions](type-aliases/ReplyToCommentOptions.md)
- [SearchPostsOptions](type-aliases/SearchPostsOptions.md)
- [SecureMedia](type-aliases/SecureMedia.md)
- [SendPrivateMessageAsSubredditOptions](type-aliases/SendPrivateMessageAsSubredditOptions.md)
- [SendPrivateMessageOptions](type-aliases/SendPrivateMessageOptions.md)
Expand Down
20 changes: 20 additions & 0 deletions docs/api/redditapi/models/classes/Subreddit.md
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,26 @@ const userFlairList = response.users

***

<a id="searchposts"></a>

### searchPosts()

> **searchPosts**(`options`): [`Listing`](Listing.md)\<[`Post`](Post.md)\>

Search for posts in this subreddit.

#### Parameters

##### options

`Omit`\<[`SearchPostsOptions`](../type-aliases/SearchPostsOptions.md), `"subredditName"`\>

#### Returns

[`Listing`](Listing.md)\<[`Post`](Post.md)\>

***

<a id="setmoderatorpermissions"></a>

### setModeratorPermissions()
Expand Down
33 changes: 33 additions & 0 deletions docs/api/redditapi/models/type-aliases/SearchPostsOptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[**@devvit/reddit v0.14.1-dev**](../../README.md)

***

# Type Alias: SearchPostsOptions

> **SearchPostsOptions** = [`ListingFetchOptions`](ListingFetchOptions.md) & `object`

## Type declaration

### query

> **query**: `string`

Search query.

### sort?

> `optional` **sort**: `"relevance"` \| `"hot"` \| `"top"` \| `"new"` \| `"comments"`

How to sort the search results. Defaults to `relevance`.

### subredditName?

> `optional` **subredditName**: `string`

The subreddit to search without 'r/' prefix. If specified, will restrict the search to posts in this subreddit

### timeframe?

> `optional` **timeframe**: `"hour"` \| `"day"` \| `"week"` \| `"month"` \| `"year"` \| `"all"`

Limit search results to a timeframe. Defaults to `all`.
26 changes: 26 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,32 @@ To use the latest version of Devvit:

**Please note**: you may see features available across Devvit packages that are not documented or noted in our changelog. These are experimental features that are not stable and are subject to change, or removal, from the platform. Please use caution when testing or implementing experimental features.

## Release 0.14.1: Additional Source Roots and Post Search
**Release Date: August 17, 2026**

**Additional Source Roots**

Add `additionalSourceRoots` to `devvit.json` to include source files outside your project directory in source packages submitted for review. This helps apps with unconventional builds, such as external source folders that compile into `dist/`.

`additionalSourceRoots` works with existing source ignore behavior, so you can include the extra root paths reviewers need while still excluding files covered by your ignore rules.

**Post Search**

Use `reddit.searchPosts()` and `subreddit.searchPosts()` to search for posts with a query and other search parameters.

**Form Context Fix**

`context.postId` is now defined in form submission handlers when a form is opened from a post menu item, matching the existing `context.commentId` behavior for comment menu items.

**Wiki Deprecation Correction**

Corrected the 0.14.0 wiki deprecation notice: `reddit.getWikiPage(subredditName, pageName)` remains supported. Only `reddit.getWikiPage(subredditName, pageName, revisionId)` is deprecated.

**CLI Node.js Warning**

The Devvit CLI now warns once during `playtest`, `upload`, and `publish` if your local Node.js version is older than the supported version. The warning is informational and does not block the command.


## Release 0.14.0: Node.js v24, Wiki Integration, Devvit Skills (Experimental)
**Release Date: August 10, 2026**

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[**@devvit/public-api v0.14.0-dev**](../../../README.md)
[**@devvit/public-api v0.14.1-dev**](../../../README.md)

***

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[**@devvit/public-api v0.14.0-dev**](../../../../README.md)
[**@devvit/public-api v0.14.1-dev**](../../../../README.md)

***

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[**@devvit/public-api v0.14.0-dev**](../../../README.md)
[**@devvit/public-api v0.14.1-dev**](../../../README.md)

***

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[**@devvit/public-api v0.14.0-dev**](../../../../README.md)
[**@devvit/public-api v0.14.1-dev**](../../../../README.md)

***

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[**@devvit/public-api v0.14.0-dev**](../../../../README.md)
[**@devvit/public-api v0.14.1-dev**](../../../../README.md)

***

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[**@devvit/public-api v0.14.0-dev**](../../../../README.md)
[**@devvit/public-api v0.14.1-dev**](../../../../README.md)

***

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[**@devvit/public-api v0.14.0-dev**](../../../../README.md)
[**@devvit/public-api v0.14.1-dev**](../../../../README.md)

***

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[**@devvit/public-api v0.14.0-dev**](../../../../README.md)
[**@devvit/public-api v0.14.1-dev**](../../../../README.md)

***

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[**@devvit/public-api v0.14.0-dev**](../../../../README.md)
[**@devvit/public-api v0.14.1-dev**](../../../../README.md)

***

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[**@devvit/public-api v0.14.0-dev**](../../../../README.md)
[**@devvit/public-api v0.14.1-dev**](../../../../README.md)

***

Expand Down
Loading
Loading